Get information about a transaction
🌐 GET
/v1/transaction/:signature
This is a simple object representing a transaction. It contains the following properties:
signature: The transaction signaturetransaction: The transaction object containing:timestamp: The timestamp of the transactionerr: The error message if the transaction failedfee: The fee of the transaction in SOL.logMessages: An array of log messagespostTokenBalances: An array of token balances after the transactionpreTokenBalances: An array of token balances before the transactionstatus: The status of the transaction
Example:
{ "signature": "2B9aDEZkM3etwSvFmDLge3AcFBfAckLG4RyE4B4iSneFmBH9nVZiYz64WY5W51q6jHsJ282iWEt2WQQBhR65jmyq", "transaction": { "timestamp": 1643935415, "err": null, "fee": 5000, "logMessages": [ "Instruction: TransferChecked" ], "postTokenBalances": [ { "accountIndex": 1, "mint": "B5aZQwD2RTpAEZmtUK9EWmqz1tXF4tJoG2zmJtdCVayF", "owner": "5iewNXr9EVqS8myS62BjwCnoPyuSfhRYJXzwFSyprdxx", "uiTokenAmount": { "amount": "997910000", "decimals": 9, "uiAmount": 0.99791, "uiAmountString": "0.99791" } }, { "accountIndex": 2, "mint": "B5aZQwD2RTpAEZmtUK9EWmqz1tXF4tJoG2zmJtdCVayF", "owner": "2H9p2kdpGm8oya6jXEcL73RBMnxC2RE8GiSAYVAB9pA8", "uiTokenAmount": { "amount": "2090000", "decimals": 9, "uiAmount": 0.00209, "uiAmountString": "0.00209" } } ], "preTokenBalances": [ { "accountIndex": 1, "mint": "B5aZQwD2RTpAEZmtUK9EWmqz1tXF4tJoG2zmJtdCVayF", "owner": "5iewNXr9EVqS8myS62BjwCnoPyuSfhRYJXzwFSyprdxx", "uiTokenAmount": { "amount": "997920000", "decimals": 9, "uiAmount": 0.99792, "uiAmountString": "0.99792" } }, { "accountIndex": 2, "mint": "B5aZQwD2RTpAEZmtUK9EWmqz1tXF4tJoG2zmJtdCVayF", "owner": "2H9p2kdpGm8oya6jXEcL73RBMnxC2RE8GiSAYVAB9pA8", "uiTokenAmount": { "amount": "2080000", "decimals": 9, "uiAmount": 0.00208, "uiAmountString": "0.00208" } } ], "status": { "Ok": null } }}
Get a list of transactions
🌐 GET
/v1/transactions/:account
This is a list of transactions for a specific account. It contains the following properties:
account: The account numbertransactions: An array of transaction objects:signature: The transaction signaturetimestamp: The timestamp of the transactionerr: The error message if the transaction failedmemo: The memo of the transaction
Transactions are sorted by timestamp in descending order. The most recent will be first.