getTransaction
Returns transaction details for a confirmed transaction signature. Provides comprehensive information about the transaction including its status, fees, logs, and account changes. This method is essential for transaction explorers, wallets, and dApps that need to analyze transaction execution details. Important : For most modern Solana transactions, you must include maxSupportedTransactionVersion: 0 in the request parameters, otherwise the request will fail with an error if the transaction is a versioned transaction. Parameters
signature(required) — Base-58 transaction signature.config(optional) — Optional configuration object. Every field is optional; omit the entire object to use defaults.
Pass Authorization: <api-key> on each request.
JSON-RPC protocol version.
2.0Possible values: Request identifier echoed back in the response.
1Must be getTransaction.
getTransactionPossible values: Successful getTransaction response.
Base envelope of every JSON-RPC 2.0 response.
2.0Possible values: Echoed request id.
1Authentication required or invalid.
Insufficient permissions for the request.
Rate limit exceeded for this tier.
Unexpected server error.
curl -X POST https://public.rpc.solanavibestation.com \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransaction",
"params": [
"4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWWPSAZBZSHptvWRL3BjCvzUXRdKvHL2b7yGrRQcWyaqsa",
{
"maxSupportedTransactionVersion": 0
}
]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"slot": 349392648,
"blockTime": 1777683570,
"transaction": {
"signatures": [
"..."
],
"message": {}
},
"meta": {
"err": null,
"fee": 5000,
"preBalances": [
1000000
],
"postBalances": [
995000
]
},
"version": 0
}
}Last updated