HTTP Methods
getTransaction Solana RPC Method
API Reference
Solana RPC APIs
- HTTP Methods
- Overview
- POSTgetAccountInfo
- POSTgetBalance
- POSTgetBlock
- POSTgetBlockCommitment
- POSTgetBlockHeight
- POSTgetBlockProduction
- POSTgetBlocks
- POSTgetBlocksWithLimit
- POSTgetBlockTime
- POSTgetClusterNodes
- POSTgetEpochInfo
- POSTgetEpochSchedule
- POSTgetFeeForMessage
- POSTgetFirstAvailableBlock
- POSTgetGenesisHash
- POSTgetHealth
- POSTgetHighestSnapshotSlot
- POSTgetIdentity
- POSTgetInflationGovernor
- POSTgetInflationRate
- POSTgetInflationReward
- POSTgetLargestAccounts
- POSTgetLatestBlockhash
- POSTgetLeaderSchedule
- POSTgetMaxRetransmitSlot
- POSTgetMaxShredInsertSlot
- POSTgetMinimumBalanceForRentExemption
- POSTgetMultipleAccounts
- POSTgetProgramAccounts
- POSTgetRecentPerformanceSamples
- POSTgetRecentPrioritizationFees
- POSTgetSignaturesForAddress
- POSTgetSignatureStatuses
- POSTgetSlot
- POSTgetSlotLeader
- POSTgetSlotLeaders
- POSTgetStakeMinimumDelegation
- POSTgetSupply
- POSTgetTokenAccountBalance
- POSTgetTokenAccountsByDelegate
- POSTgetTokenAccountsByOwner
- POSTgetTokenLargestAccounts
- POSTgetTokenSupply
- POSTgetTransaction
- POSTgetTransactionCount
- POSTgetVersion
- POSTgetVoteAccounts
- POSTisBlockhashValid
- POSTminimumLedgerSlot
- POSTrequestAirdrop
- POSTsendTransaction
- POSTsimulateTransaction
- WebSocket Methods
Solana APIs
- Digital Asset Standard (DAS)
- Priority Fee
- Enhanced Transactions
- ZK Compression
Data Streaming APIs
- LaserStream gRPC
Event Listening APIs
- Webhooks
Deprecated APIs
- Token Metadata
- Mint
HTTP Methods
getTransaction Solana RPC Method
Returns transaction details for a confirmed transaction.
POST
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "1",
"method": "getTransaction",
"params": [
"2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv",
{
"commitment": "finalized"
}
]
}'
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"slot": 430,
"transaction": {
"message": {
"accountKeys": [
"3UVYmECPPMZSCqWKfENfuoTv51fTDTWicX9xmBD2euKe"
],
"header": {
"numReadonlySignedAccounts": 0,
"numReadonlyUnsignedAccounts": 3,
"numRequiredSignatures": 1
},
"instructions": [
{
"accounts": [
1
],
"data": "37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1",
"programIdIndex": 4
}
],
"recentBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B"
},
"signatures": [
"2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv"
]
},
"meta": {
"err": null,
"fee": 5000,
"innerInstructions": [
{}
]
}
}
}
Authorizations
Body
application/json
Response
200
application/json
Successfully retrieved the detailed Solana transaction data.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "1",
"method": "getTransaction",
"params": [
"2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv",
{
"commitment": "finalized"
}
]
}'
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"slot": 430,
"transaction": {
"message": {
"accountKeys": [
"3UVYmECPPMZSCqWKfENfuoTv51fTDTWicX9xmBD2euKe"
],
"header": {
"numReadonlySignedAccounts": 0,
"numReadonlyUnsignedAccounts": 3,
"numRequiredSignatures": 1
},
"instructions": [
{
"accounts": [
1
],
"data": "37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1",
"programIdIndex": 4
}
],
"recentBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B"
},
"signatures": [
"2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv"
]
},
"meta": {
"err": null,
"fee": 5000,
"innerInstructions": [
{}
]
}
}
}