Developer Questions

Ask a Question
Back to All

What is the type of response for api call (get transaction details using transaction id)

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?