Skip to main content

getBlock RPC Method

Returns identity and transaction information about a confirmed block in the ledger.

Updated on
Oct 21, 2026
Though getBlock is supported, Solana Foundation recommends using jsonParsed encoding because it resolves Address Lookup Table addresses into the account keys of version 0 transactions. Version 1 transactions carry every account inline in any encoding. To do this with JavaScript, please refer to the getParsedBlock RPC method.
Block footers aren't part of the getBlock response. Stream them with the block_footer filter on Solana gRPC.

Parameters

slot
integer

The slot number of the block to retrieve encoded as u64 (64-bit unsigned integer) integer

object
object

The configuration object with the following fields:

encoding
string

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

transactionDetails
string

(default:full) The level of transaction detail to return. It could be full, accounts, signatures, or none

rewards
boolean

(default:false) A boolean flag that indicates whether to include reward information in the block response

commitment
string

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

finalized
string

The node will query the most recent block the cluster has recognized as finalized

confirmed
string

The node will query the most recent block that has been voted on by 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

Returns

result

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

blockHeight

The number of blocks beneath this block

blockTime

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

blockhash

The hash of the block encoded as base-58 string

parentSlot

The slot index of this block's parent

previousBlockhash

The blockhash of this block's parent encoded as base-58 string; if the parent block is not available due to ledger cleanup, the field will return 11111111111111111111111111111111

transactions

It is present if full transaction details are requested; an array of JSON objects with the following fields:

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:

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)

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)

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:

pubkey

The address of the account that received the award encoded as a base-58 string

lamports

The number of reward lamports credited or debited by the account

postBalance

The account balance in lamports after the reward was applied

rewardType

The type of reward. It could be fee, rent, voting, staking

commission

The vote account commission when the reward was credited, only present for voting and staking rewards

status

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

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 addresses associated with the accounts that were accessed during the execution of transactions in the block

pubkey

The address associated with the block producer who created the block

signer

It is used to sign transactions in the block. It can also be used to identify the signers involved in the block's transactions and to verify the authenticity of the signatures

source

It is used to identify the accounts that provided the funds for the block's transactions

writable

A boolean value that indicates whether the accounts associated with the given addresses 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

Instruction-specific fields decoded by the program's parser

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 address of the program that was executed in the block's transactions

stackHeight

The current depth of the execution stack

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
"blockHeight": 426205082,
5
"blockTime": 1789756026,
6
"blockhash": "GJK3MnAH2yfb3MdYsuPXohJ1UTp1KxEQv2mCtzr8aKxE",
7
"parentSlot": 448164150,
8
"previousBlockhash": "5NJEvrboB4Bt3CGXYXjMVTBmZqRxpgYTP7ELcMGbRKrp",
9
"transactions": [
10
{
11
"meta": {
12
"computeUnitsConsumed": 2100,
13
"costUnits": 3465,
14
"err": null,
15
"fee": 5000,
16
"innerInstructions": [],
17
"loadedAddresses": {
18
"readonly": [],
19
"writable": []
20
},
21
"logMessages": [
22
"Program Vote111111111111111111111111111111111111111 invoke [1]",
23
"Program Vote111111111111111111111111111111111111111 success"
24
],
25
"postBalances": [
26
383122690,
27
19761200,
28
1
29
],
30
"postTokenBalances": [],
31
"preBalances": [
32
383127690,
33
19761200,
34
1
35
],
36
"preTokenBalances": [],
37
"rewards": null,
38
"status": {
39
"Ok": null
40
}
41
},
42
"transaction": {
43
"message": {
44
"accountKeys": [
45
"adramSYKBv1yHoZTub4kepcmF5LybPxwyJcsz4fpfi7",
46
"adraBKLNY3DL3pg6SJRDYiMA8BsznaWpUdE42X41gbP",
47
"Vote111111111111111111111111111111111111111"
48
],
49
"header": {
50
"numReadonlySignedAccounts": 0,
51
"numReadonlyUnsignedAccounts": 1,
52
"numRequiredSignatures": 1
53
},
54
"instructions": [
55
{
56
"accounts": [
57
1,
58
0
59
],
60
"data": "67MGn1Qb2pHYymEWaP4DX7HDqZpi4tgyoQN7p6jVZtG3hpyb44fCkytHtiWZDnXMECysbtddKCbJpCUj59S2mSHMQ1dBHDAksneYsgAdd1m9JnZ4tcHavhoUuyqp1QqBbSKbZpmXy5hmbMZyftA7s3D88YUnhFiq9QydoZct8ZqErXzkxxJbgQkH5j7mj7gseNLDzh8rA8",
61
"programIdIndex": 2,
62
"stackHeight": 1
63
}
64
],
65
"recentBlockhash": "JBBgQj4C8pttbQdi6BFL9icxRNqdHpW4teLJyMynqNVC"
66
},
67
"signatures": [
68
"3WEamwKAxxihZ8bpoZ9TZ89KTdSveCDQiLZ8Z1g6eJm73TAn2iwtL6e47ZvRPyRduzKJVkTUwE5Nj4djryjmUVQd"
69
]
70
},
71
"version": "legacy"
72
},
73
{
74
"meta": {
75
"computeUnitsConsumed": 13251,
76
"costUnits": 14687,
77
"err": null,
78
"fee": 5000,
79
"innerInstructions": [
80
{
81
"index": 0,
82
"instructions": [
83
{
84
"accounts": [
85
0,
86
2
87
],
88
"data": "3Bxs4NQNnDSisSzK",
89
"programIdIndex": 3,
90
"stackHeight": 2
91
}
92
]
93
}
94
],
95
"loadedAddresses": {
96
"readonly": [
97
"11111111111111111111111111111111",
98
"Dodg2HifwU8rmaVVyMyUZDGTRbqAJTyVYxXPwcbNpBKc"
99
],
100
"writable": [
101
"7uTT8Xi5RWXzy7h9XL244GRgEycDYDhLjr3ZyNdXi8pZ"
102
]
103
},
104
"logMessages": [
105
"Program 99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2 invoke [1]",
106
"Program log: Instruction: DepositNative",
107
"Program 11111111111111111111111111111111 invoke [2]",
108
"Program 11111111111111111111111111111111 success",
109
"Program data: ePg9Ux+Oa5CFu81NjwK03bv0b867L9V8q6KSPr3sJPG2BUW55t6tcgCA0fAIAAAAAHR5MbgH4BF/B1pH8TeCIMaVJTitfEvi0VbsTXb997Vz",
110
"Program 99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2 consumed 13251 of 200000 compute units",
111
"Program 99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2 success"
112
],
113
"postBalances": [
114
1373271480,
115
144071564,
116
182802411167,
117
1,
118
1628641
119
],
120
"postTokenBalances": [],
121
"preBalances": [
122
1523276480,
123
144071564,
124
182652411167,
125
1,
126
1628641
127
],
128
"preTokenBalances": [],
129
"rewards": null,
130
"status": {
131
"Ok": null
132
}
133
},
134
"transaction": {
135
"message": {
136
"accountKeys": [
137
"A13KNkoE4BWiEm1xY5bnaZKYX9MC5tEGbNvQAK1jSxvm",
138
"99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2"
139
],
140
"addressTableLookups": [
141
{
142
"accountKey": "Hm9fUgcn7qwDaiNTFiGh6pNtVATgnaRcmK6Bbx6EMZfP",
143
"readonlyIndexes": [
144
14,
145
1
146
],
147
"writableIndexes": [
148
2
149
]
150
}
151
],
152
"header": {
153
"numReadonlySignedAccounts": 0,
154
"numReadonlyUnsignedAccounts": 1,
155
"numRequiredSignatures": 1
156
},
157
"instructions": [
158
{
159
"accounts": [
160
4,
161
0,
162
0,
163
2,
164
3
165
],
166
"data": "VyPN4WGD26G3fWUS6rECj1W6nB5MqSgTv1KiwgBQWM4g3613Sc6VW5BzA2TM5tqut",
167
"programIdIndex": 1,
168
"stackHeight": 1
169
}
170
],
171
"recentBlockhash": "HQqM26BafMRuz81zVy7ntPmpqZqKKWF42rbEswLyQx9h"
172
},
173
"signatures": [
174
"pzRp8PnPLRmEfbevxjAuX7md3ymE3MkrMakP2aMUHJoyVk8Xc6fyG6xL4WNtVLPLb5uptbce6D7GdPoMuSqKj8W"
175
]
176
},
177
"version": 0
178
},
179
{
180
"meta": {
181
"computeUnitsConsumed": 417,
182
"costUnits": 1829,
183
"err": null,
184
"fee": 5210,
185
"innerInstructions": [],
186
"loadedAddresses": {
187
"readonly": [],
188
"writable": []
189
},
190
"logMessages": [
191
"Program Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy invoke [1]",
192
"Program Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy consumed 417 of 420 compute units",
193
"Program Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy success"
194
],
195
"postBalances": [
196
1315357077,
197
6291840,
198
1141440
199
],
200
"postTokenBalances": [],
201
"preBalances": [
202
1315362287,
203
6291840,
204
1141440
205
],
206
"preTokenBalances": [],
207
"rewards": null,
208
"status": {
209
"Ok": null
210
}
211
},
212
"transaction": {
213
"message": {
214
"accountKeys": [
215
"6dJw4BELW3gqDYRoVFohivS1Fp1yZGeXwHQhMhsEAPsf",
216
"CnAMgRDK4DytrLH3uZpzYYGcF1c5vMwnGbjDVV1ViiB8",
217
"Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy"
218
],
219
"header": {
220
"numReadonlySignedAccounts": 0,
221
"numReadonlyUnsignedAccounts": 1,
222
"numRequiredSignatures": 1
223
},
224
"instructions": [
225
{
226
"accounts": [
227
0,
228
1
229
],
230
"data": "5TyiQ4CipEb8TEFxjMFAofd",
231
"programIdIndex": 2,
232
"stackHeight": 1
233
}
234
],
235
"recentBlockhash": "HNUXUDVYsWWzwfCHjg6a55d67ruFJLeDN7J5UMifabKq",
236
"transactionConfig": {
237
"computeUnitLimit": 420,
238
"heapSize": null,
239
"loadedAccountsDataSizeLimit": 393216,
240
"priorityFee": 210
241
}
242
},
243
"signatures": [
244
"3SpS5Td7Bn88xewjs5TeSVPZvqvvN1NuiQtzVCeteAv36q57v8Exibc53tMarXk26f6iNcxoyQYe3guKitnGKVNr"
245
]
246
},
247
"version": 1
248
}
249
]
250
},
251
"id": 1
252
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"blockHeight": 426205082,
5
"blockTime": 1789756026,
6
"blockhash": "GJK3MnAH2yfb3MdYsuPXohJ1UTp1KxEQv2mCtzr8aKxE",
7
"parentSlot": 448164150,
8
"previousBlockhash": "5NJEvrboB4Bt3CGXYXjMVTBmZqRxpgYTP7ELcMGbRKrp",
9
"transactions": [
10
{
11
"meta": {
12
"computeUnitsConsumed": 2100,
13
"costUnits": 3465,
14
"err": null,
15
"fee": 5000,
16
"innerInstructions": [],
17
"loadedAddresses": {
18
"readonly": [],
19
"writable": []
20
},
21
"logMessages": [
22
"Program Vote111111111111111111111111111111111111111 invoke [1]",
23
"Program Vote111111111111111111111111111111111111111 success"
24
],
25
"postBalances": [
26
383122690,
27
19761200,
28
1
29
],
30
"postTokenBalances": [],
31
"preBalances": [
32
383127690,
33
19761200,
34
1
35
],
36
"preTokenBalances": [],
37
"rewards": null,
38
"status": {
39
"Ok": null
40
}
41
},
42
"transaction": {
43
"message": {
44
"accountKeys": [
45
"adramSYKBv1yHoZTub4kepcmF5LybPxwyJcsz4fpfi7",
46
"adraBKLNY3DL3pg6SJRDYiMA8BsznaWpUdE42X41gbP",
47
"Vote111111111111111111111111111111111111111"
48
],
49
"header": {
50
"numReadonlySignedAccounts": 0,
51
"numReadonlyUnsignedAccounts": 1,
52
"numRequiredSignatures": 1
53
},
54
"instructions": [
55
{
56
"accounts": [
57
1,
58
0
59
],
60
"data": "67MGn1Qb2pHYymEWaP4DX7HDqZpi4tgyoQN7p6jVZtG3hpyb44fCkytHtiWZDnXMECysbtddKCbJpCUj59S2mSHMQ1dBHDAksneYsgAdd1m9JnZ4tcHavhoUuyqp1QqBbSKbZpmXy5hmbMZyftA7s3D88YUnhFiq9QydoZct8ZqErXzkxxJbgQkH5j7mj7gseNLDzh8rA8",
61
"programIdIndex": 2,
62
"stackHeight": 1
63
}
64
],
65
"recentBlockhash": "JBBgQj4C8pttbQdi6BFL9icxRNqdHpW4teLJyMynqNVC"
66
},
67
"signatures": [
68
"3WEamwKAxxihZ8bpoZ9TZ89KTdSveCDQiLZ8Z1g6eJm73TAn2iwtL6e47ZvRPyRduzKJVkTUwE5Nj4djryjmUVQd"
69
]
70
},
71
"version": "legacy"
72
},
73
{
74
"meta": {
75
"computeUnitsConsumed": 13251,
76
"costUnits": 14687,
77
"err": null,
78
"fee": 5000,
79
"innerInstructions": [
80
{
81
"index": 0,
82
"instructions": [
83
{
84
"accounts": [
85
0,
86
2
87
],
88
"data": "3Bxs4NQNnDSisSzK",
89
"programIdIndex": 3,
90
"stackHeight": 2
91
}
92
]
93
}
94
],
95
"loadedAddresses": {
96
"readonly": [
97
"11111111111111111111111111111111",
98
"Dodg2HifwU8rmaVVyMyUZDGTRbqAJTyVYxXPwcbNpBKc"
99
],
100
"writable": [
101
"7uTT8Xi5RWXzy7h9XL244GRgEycDYDhLjr3ZyNdXi8pZ"
102
]
103
},
104
"logMessages": [
105
"Program 99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2 invoke [1]",
106
"Program log: Instruction: DepositNative",
107
"Program 11111111111111111111111111111111 invoke [2]",
108
"Program 11111111111111111111111111111111 success",
109
"Program data: ePg9Ux+Oa5CFu81NjwK03bv0b867L9V8q6KSPr3sJPG2BUW55t6tcgCA0fAIAAAAAHR5MbgH4BF/B1pH8TeCIMaVJTitfEvi0VbsTXb997Vz",
110
"Program 99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2 consumed 13251 of 200000 compute units",
111
"Program 99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2 success"
112
],
113
"postBalances": [
114
1373271480,
115
144071564,
116
182802411167,
117
1,
118
1628641
119
],
120
"postTokenBalances": [],
121
"preBalances": [
122
1523276480,
123
144071564,
124
182652411167,
125
1,
126
1628641
127
],
128
"preTokenBalances": [],
129
"rewards": null,
130
"status": {
131
"Ok": null
132
}
133
},
134
"transaction": {
135
"message": {
136
"accountKeys": [
137
"A13KNkoE4BWiEm1xY5bnaZKYX9MC5tEGbNvQAK1jSxvm",
138
"99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2"
139
],
140
"addressTableLookups": [
141
{
142
"accountKey": "Hm9fUgcn7qwDaiNTFiGh6pNtVATgnaRcmK6Bbx6EMZfP",
143
"readonlyIndexes": [
144
14,
145
1
146
],
147
"writableIndexes": [
148
2
149
]
150
}
151
],
152
"header": {
153
"numReadonlySignedAccounts": 0,
154
"numReadonlyUnsignedAccounts": 1,
155
"numRequiredSignatures": 1
156
},
157
"instructions": [
158
{
159
"accounts": [
160
4,
161
0,
162
0,
163
2,
164
3
165
],
166
"data": "VyPN4WGD26G3fWUS6rECj1W6nB5MqSgTv1KiwgBQWM4g3613Sc6VW5BzA2TM5tqut",
167
"programIdIndex": 1,
168
"stackHeight": 1
169
}
170
],
171
"recentBlockhash": "HQqM26BafMRuz81zVy7ntPmpqZqKKWF42rbEswLyQx9h"
172
},
173
"signatures": [
174
"pzRp8PnPLRmEfbevxjAuX7md3ymE3MkrMakP2aMUHJoyVk8Xc6fyG6xL4WNtVLPLb5uptbce6D7GdPoMuSqKj8W"
175
]
176
},
177
"version": 0
178
},
179
{
180
"meta": {
181
"computeUnitsConsumed": 417,
182
"costUnits": 1829,
183
"err": null,
184
"fee": 5210,
185
"innerInstructions": [],
186
"loadedAddresses": {
187
"readonly": [],
188
"writable": []
189
},
190
"logMessages": [
191
"Program Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy invoke [1]",
192
"Program Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy consumed 417 of 420 compute units",
193
"Program Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy success"
194
],
195
"postBalances": [
196
1315357077,
197
6291840,
198
1141440
199
],
200
"postTokenBalances": [],
201
"preBalances": [
202
1315362287,
203
6291840,
204
1141440
205
],
206
"preTokenBalances": [],
207
"rewards": null,
208
"status": {
209
"Ok": null
210
}
211
},
212
"transaction": {
213
"message": {
214
"accountKeys": [
215
"6dJw4BELW3gqDYRoVFohivS1Fp1yZGeXwHQhMhsEAPsf",
216
"CnAMgRDK4DytrLH3uZpzYYGcF1c5vMwnGbjDVV1ViiB8",
217
"Archer8kgiavM61GyusMzaaS2ft5sALtNsD1HxkUPMhy"
218
],
219
"header": {
220
"numReadonlySignedAccounts": 0,
221
"numReadonlyUnsignedAccounts": 1,
222
"numRequiredSignatures": 1
223
},
224
"instructions": [
225
{
226
"accounts": [
227
0,
228
1
229
],
230
"data": "5TyiQ4CipEb8TEFxjMFAofd",
231
"programIdIndex": 2,
232
"stackHeight": 1
233
}
234
],
235
"recentBlockhash": "HNUXUDVYsWWzwfCHjg6a55d67ruFJLeDN7J5UMifabKq",
236
"transactionConfig": {
237
"computeUnitLimit": 420,
238
"heapSize": null,
239
"loadedAccountsDataSizeLimit": 393216,
240
"priorityFee": 210
241
}
242
},
243
"signatures": [
244
"3SpS5Td7Bn88xewjs5TeSVPZvqvvN1NuiQtzVCeteAv36q57v8Exibc53tMarXk26f6iNcxoyQYe3guKitnGKVNr"
245
]
246
},
247
"version": 1
248
}
249
]
250
},
251
"id": 1
252
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free