Solana getTransaction
method
getTransaction
methodThe Solana getTransaction
method returns detailed information about a specific transaction using its signature.
This method provides comprehensive data about the transaction, including its status, block information, instructions, and more. It's particularly useful for applications that need to verify transaction details or display transaction information to users.
Null response
The interactive API example is for the mint transaction of dogwifhat ($WIF). The call will respond with null because you need an archive node to retrieve the data in the past. Chainstack does provide Solana archive nodes, so get one.
Get your own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
signature
— the transaction signature as base-58 encoded string.config
(optional) — configuration object:encoding
— encoding for the returned transaction (default: "json").maxSupportedTransactionVersion
— the maximum transaction version to return in responses.
Response
slot
— the slot this transaction was processed in.transaction
— transaction object, either JSON format or encoded binary data.meta
— metadata object containing detailed information about the transaction.blockTime
— estimated production time of the block, as Unix timestamp.
Use case
A common use case for getTransaction
is in wallet applications or block explorers. These applications can use this method to fetch and display detailed information about a specific transaction, allowing users to view the status, involved accounts, and other relevant data for their transactions.
Try the getTransaction
RPC method yourself
getTransaction
RPC method yourself