Skip to main content

getTransaction RPC Method

Returns transaction details for a confirmed transaction.

Updated on
Apr 30, 2025

Parameters

tx_sig
string

The transaction signature as base-58 encoded string

object
object

The configuration object with the following fields:

commitment
string

The level of commitment required for the query. The options include:

finalized
string

The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized

confirmed
string

The node will query the most recent block that has been voted on by the supermajority of the cluster

maxSupportedTransactionVersion
integer

The maximum transaction version to return, as a JSON integer. Set it to 1 to receive legacy, version 0, and version 1 transactions

encoding
string

(Default: json) The encoding format for the transaction data. It can be one of json, jsonParsed, base58, or base64

Returns

result

Null if the specified block is not confirmed otherwise RpcResponse JSON object with the following fields:

blockTime

The estimated production time, as Unix timestamp (seconds since the Unix epoch). It's null if not available

meta

The transaction status metadata object, which contains additional information about the block and its transactions. The meta object can be null, or it may contain the following fields:

err

Error code if the transaction failed or null if the transaction succeeds

fee

The total fees paid by all transactions in the block encoded as u64 integer

innerInstructions

An array of objects representing the inner instructions of all transactions in the block (omitted if inner instruction recording is not enabled). Each object has the following fields:

index

The index of the instruction in the transaction, which determines the order in which the operations were executed

instructions

An array of instructions that were executed in the block's transactions

parsed

An array of parsed instructions that were executed in the block's transactions

info

An array of information objects that provide additional details about the transactions in the block

lamports

The number of lamports assigned to this account as u64 (64-bit unsigned integer)

newAccount

The new account created as part of the transaction

owner

The base-58 encoded Pubkey of the program this account has been assigned to

source

The source account that funded the transaction

space

The amount of storage space required to store a specific transaction

type

The type of the block. It can be used to differentiate between regular blocks and special blocks such as snapshot or transaction confirmation blocks

program

The data associated with the program that was executed in the block's transactions

programId

The ID of the program that executed the instruction

stackHeight

The current depth of the execution stack

logMessages

An array of strings containing any log messages generated by the block's transactions (omitted if inner instruction recording is not enabled)

postBalances

An array of lamport balances for each account in the block after the transactions were processed

postTokenBalances

An array of token balances for each token account in the block after the transactions were processed (omitted if inner instruction recording is not enabled)

accountIndex

The index of an account within a transaction

mint

Provides information about the creation of new tokens

owner

The authority pubkey for the token account. Can be a normal wallet or a program-derived address (PDA) used by protocols like escrows, vaults, pools, etc

uiTokenAmount

The amount of a token transfer in a human-readable format

amount

The amount of a token transfer

decimals

The number of decimal places used by the token

uiAmount

The amount of a token transfer in the smallest unit of the token

uiAmountString

The amount of a token transfer as a string with the appropriate number of decimal places for the token

preBalances

An array of lamport balances for each account in the block before the transactions were processed

preTokenBalances

An array of token balances for each token account in the block before the transactions were processed (omitted if inner instruction recording is not enabled)

accountIndex

The index of an account within a transaction

mint

Provides information about the creation of new tokens

owner

The authority pubkey for the token account. Can be a normal wallet or a program-derived address (PDA) used by protocols like escrows, vaults, pools, etc

uiTokenAmount

The amount of a token transfer in a human-readable format

amount

The amount of a token transfer

decimals

The number of decimal places used by the token

uiAmount

The amount of a token transfer in the smallest unit of the token

uiAmountString

The amount of a token transfer as a string with the appropriate number of decimal places for the token

rewards

An object containing information about the rewards earned by the block's validators (only present if the rewards are requested). It has the following fields:

status

The status of the transaction. If the transaction was successful, returns Ok and if the transaction failed with TransactionError, returns Err

slot

The slot number to retrieve block production information

transaction

The transaction object. It could be either JSON format or encoded binary data, depending on the encoding parameter

message

An array of transactions included in the block

accountKeys

An array of public keys associated with the accounts that were accessed during the execution of transactions in the block

pubkey

The Pubkey of program encoded as base-58 string

signer

Used to sign transactions in the block. Also used to identify the signers involved in the block's transactions and to verify the authenticity of the signatures

source

The source account that funded the transaction

writable

A boolean value that indicates whether the accounts associated with the given public keys were modified by the transactions or not

instructions

An array of instructions that were executed in the block's transactions

parsed

An array of parsed instructions that were executed in the block's transactions

info

An array of information objects that provide additional details about the transactions in the block

account

An address on the Solana blockchain that is used to store assets

mint

Provides information about the creation of new tokens

source

The source account that funded the transaction

systemProgram

The system program that executed the transaction

tokenProgram

Responsible for maintaining the supply and balance of the token, and for executing transfers of the token between accounts

wallet

Wallet is used for managing and storing assets

type

The type of the block. It can be used to differentiate between regular blocks and special blocks such as snapshot or transaction confirmation blocks

program

The data associated with the program that was executed in the block's transactions

programId

The ID of the program that executed the instruction

recentBlockhash

The recent block hash for the account's cluster

addressTableLookups
array

Version 0 transactions only. The Address Lookup Tables this transaction reads accounts from

accountKey
string

The base-58 encoded address of the lookup table account

writableIndexes
array

Indexes into the lookup table for the accounts loaded as writable

readonlyIndexes
array

Indexes into the lookup table for the accounts loaded as read-only

transactionConfig
object

Version 1 transactions only. The compute and fee settings for the transaction

priorityFee
integer

The priority fee for the transaction, in lamports

computeUnitLimit
integer

The maximum compute units the transaction may consume

loadedAccountsDataSizeLimit
integer

The maximum total size in bytes of the account data the transaction may load

heapSize
integer

The requested heap size in bytes, or null when not set

signatures

The list of transaction signatures contained within a particular block

version
string|integer

The transaction version, one of "legacy", 0, or 1

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"blockTime": 1789746410,
5
"meta": {
6
"computeUnitsConsumed": 13314,
7
"costUnits": 17840,
8
"err": null,
9
"fee": 5000,
10
"innerInstructions": [
11
{
12
"index": 1,
13
"instructions": [
14
{
15
"accounts": [
16
"Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1"
17
],
18
"data": "2qWhKzSZDTHiG5o2YQAAcRaTuWnFYRyYi4MxEXUKYBbQPnWK6f1UpjTKKF8GdXvKdb4JTGqZGaaGqwWsm7shqocgjAkYq2m9UMtrjrEcepWGVS9o1BJcrEwmy",
19
"programId": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
20
"stackHeight": 2
21
}
22
]
23
}
24
],
25
"logMessages": [
26
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]",
27
"Program log: Instruction: CloseAccount",
28
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 1464 of 1400000 compute units",
29
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success",
30
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [1]",
31
"Program log: Instruction: CloseUserVolumeAccumulator",
32
"Program data: kp+9rJJYOPTem7938TjppzME88QJmLkEKCGCdQnHWmbaxR8UXlqaRepcrWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
33
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [2]",
34
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 2143 of 1389207 compute units",
35
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success",
36
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 11850 of 1398536 compute units",
37
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success"
38
],
39
"postBalances": [
40
487977833,
41
0,
42
0,
43
8682612471,
44
70128638,
45
168261611
46
],
47
"postTokenBalances": [],
48
"preBalances": [
49
485122793,
50
1513840,
51
1346200,
52
8682612471,
53
70128638,
54
168261611
55
],
56
"preTokenBalances": [
57
{
58
"accountIndex": 1,
59
"mint": "Emg2qA9MiTUpqBe9BpNEqQxpHrmoYn2KkXX7TTHMpump",
60
"owner": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
61
"programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
62
"uiTokenAmount": {
63
"amount": "0",
64
"decimals": 6,
65
"uiAmount": null,
66
"uiAmountString": "0"
67
}
68
}
69
],
70
"rewards": [],
71
"status": {
72
"Ok": null
73
}
74
},
75
"slot": 448128142,
76
"transaction": {
77
"message": {
78
"accountKeys": [
79
{
80
"pubkey": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
81
"signer": true,
82
"source": "transaction",
83
"writable": true
84
},
85
{
86
"pubkey": "DC4nzBFipwWuZ4fmRPZKNNsKAqnM8FbAiJVTNspk14ZX",
87
"signer": false,
88
"source": "transaction",
89
"writable": true
90
},
91
{
92
"pubkey": "FEQSikhuhELGownTYhuewmCjHqbBmkpup9vFNQM9KtMt",
93
"signer": false,
94
"source": "transaction",
95
"writable": true
96
},
97
{
98
"pubkey": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
99
"signer": false,
100
"source": "transaction",
101
"writable": false
102
},
103
{
104
"pubkey": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
105
"signer": false,
106
"source": "transaction",
107
"writable": false
108
},
109
{
110
"pubkey": "Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1",
111
"signer": false,
112
"source": "transaction",
113
"writable": false
114
}
115
],
116
"instructions": [
117
{
118
"parsed": {
119
"info": {
120
"account": "DC4nzBFipwWuZ4fmRPZKNNsKAqnM8FbAiJVTNspk14ZX",
121
"destination": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
122
"owner": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt"
123
},
124
"type": "closeAccount"
125
},
126
"program": "spl-token",
127
"programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
128
"stackHeight": 1
129
},
130
{
131
"accounts": [
132
"FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
133
"FEQSikhuhELGownTYhuewmCjHqbBmkpup9vFNQM9KtMt",
134
"Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1",
135
"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
136
],
137
"data": "ihFZiQrP7CM",
138
"programId": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
139
"stackHeight": 1
140
}
141
],
142
"recentBlockhash": "2pQv1t78kYp8GfZ18CzZwqQkJWPr5NCjnHKLxa87e3LY",
143
"transactionConfig": {
144
"computeUnitLimit": 1400000,
145
"heapSize": null,
146
"loadedAccountsDataSizeLimit": 67108864,
147
"priorityFee": 0
148
}
149
},
150
"signatures": [
151
"3Bnud9MGrKRQgP5PFqNQqMS1NgiCn8bEXp2qX1EMYfZBkn36EmNJzqGR2xoXDi1SGJjxhUj7ePcx1FissWdiuFWH"
152
]
153
},
154
"transactionIndex": 171,
155
"version": 1
156
},
157
"id": 1
158
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"blockTime": 1789746410,
5
"meta": {
6
"computeUnitsConsumed": 13314,
7
"costUnits": 17840,
8
"err": null,
9
"fee": 5000,
10
"innerInstructions": [
11
{
12
"index": 1,
13
"instructions": [
14
{
15
"accounts": [
16
"Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1"
17
],
18
"data": "2qWhKzSZDTHiG5o2YQAAcRaTuWnFYRyYi4MxEXUKYBbQPnWK6f1UpjTKKF8GdXvKdb4JTGqZGaaGqwWsm7shqocgjAkYq2m9UMtrjrEcepWGVS9o1BJcrEwmy",
19
"programId": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
20
"stackHeight": 2
21
}
22
]
23
}
24
],
25
"logMessages": [
26
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]",
27
"Program log: Instruction: CloseAccount",
28
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 1464 of 1400000 compute units",
29
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success",
30
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [1]",
31
"Program log: Instruction: CloseUserVolumeAccumulator",
32
"Program data: kp+9rJJYOPTem7938TjppzME88QJmLkEKCGCdQnHWmbaxR8UXlqaRepcrWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
33
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [2]",
34
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 2143 of 1389207 compute units",
35
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success",
36
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 11850 of 1398536 compute units",
37
"Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success"
38
],
39
"postBalances": [
40
487977833,
41
0,
42
0,
43
8682612471,
44
70128638,
45
168261611
46
],
47
"postTokenBalances": [],
48
"preBalances": [
49
485122793,
50
1513840,
51
1346200,
52
8682612471,
53
70128638,
54
168261611
55
],
56
"preTokenBalances": [
57
{
58
"accountIndex": 1,
59
"mint": "Emg2qA9MiTUpqBe9BpNEqQxpHrmoYn2KkXX7TTHMpump",
60
"owner": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
61
"programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
62
"uiTokenAmount": {
63
"amount": "0",
64
"decimals": 6,
65
"uiAmount": null,
66
"uiAmountString": "0"
67
}
68
}
69
],
70
"rewards": [],
71
"status": {
72
"Ok": null
73
}
74
},
75
"slot": 448128142,
76
"transaction": {
77
"message": {
78
"accountKeys": [
79
{
80
"pubkey": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
81
"signer": true,
82
"source": "transaction",
83
"writable": true
84
},
85
{
86
"pubkey": "DC4nzBFipwWuZ4fmRPZKNNsKAqnM8FbAiJVTNspk14ZX",
87
"signer": false,
88
"source": "transaction",
89
"writable": true
90
},
91
{
92
"pubkey": "FEQSikhuhELGownTYhuewmCjHqbBmkpup9vFNQM9KtMt",
93
"signer": false,
94
"source": "transaction",
95
"writable": true
96
},
97
{
98
"pubkey": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
99
"signer": false,
100
"source": "transaction",
101
"writable": false
102
},
103
{
104
"pubkey": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
105
"signer": false,
106
"source": "transaction",
107
"writable": false
108
},
109
{
110
"pubkey": "Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1",
111
"signer": false,
112
"source": "transaction",
113
"writable": false
114
}
115
],
116
"instructions": [
117
{
118
"parsed": {
119
"info": {
120
"account": "DC4nzBFipwWuZ4fmRPZKNNsKAqnM8FbAiJVTNspk14ZX",
121
"destination": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
122
"owner": "FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt"
123
},
124
"type": "closeAccount"
125
},
126
"program": "spl-token",
127
"programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
128
"stackHeight": 1
129
},
130
{
131
"accounts": [
132
"FyyFgcs5PXqUTtdjen9c81HeobSGT8RLF6cBNAAUUVJt",
133
"FEQSikhuhELGownTYhuewmCjHqbBmkpup9vFNQM9KtMt",
134
"Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1",
135
"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
136
],
137
"data": "ihFZiQrP7CM",
138
"programId": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
139
"stackHeight": 1
140
}
141
],
142
"recentBlockhash": "2pQv1t78kYp8GfZ18CzZwqQkJWPr5NCjnHKLxa87e3LY",
143
"transactionConfig": {
144
"computeUnitLimit": 1400000,
145
"heapSize": null,
146
"loadedAccountsDataSizeLimit": 67108864,
147
"priorityFee": 0
148
}
149
},
150
"signatures": [
151
"3Bnud9MGrKRQgP5PFqNQqMS1NgiCn8bEXp2qX1EMYfZBkn36EmNJzqGR2xoXDi1SGJjxhUj7ePcx1FissWdiuFWH"
152
]
153
},
154
"transactionIndex": 171,
155
"version": 1
156
},
157
"id": 1
158
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free