Developer Questions
What is the type of response for api call (get transaction details using transaction id)
over 1 year ago by John
We are retrieving transaction details using transaction id using JSON-RPC method but we need to know the type of response for API call. For example, if we try to retrieve Account NFTs we'll get response of type AccountNFTsResponse, likewise need response type for API call get transaction details using transaction id.
Sample code to retrieve transaction details,
const txInfo = await fetch({
method: 'tx',
params: [
{
transaction: txid,
binary: false
}
]
});
What is the type of txInfo object?