Skip to main content

getBlock RPC Method

Loading...

Updated on
Sep 24, 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.

Parameters

slot
integer
Loading...
object
object
Loading...
encoding
string
Loading...
transactionDetails
string
Loading...
rewards
boolean
Loading...
commitment
string
Loading...
finalized
string
Loading...
confirmed
string
Loading...
maxSupportedTransactionVersion
integer
Loading...

Returns

result
Loading...
blockHeight
Loading...
blockTime
Loading...
blockhash
Loading...
parentSlot
Loading...
previousBlockhash
Loading...
transactions
Loading...
meta
Loading...
err
Loading...
fee
Loading...
innerInstructions
Loading...
logMessages
Loading...
postBalances
Loading...
postTokenBalances
Loading...
preBalances
Loading...
preTokenBalances
Loading...
rewards
Loading...
pubkey
Loading...
lamports
Loading...
postBalance
Loading...
rewardType
Loading...
commission
Loading...
status
Loading...
transaction
Loading...
message
Loading...
accountKeys
Loading...
pubkey
Loading...
signer
Loading...
source
Loading...
writable
Loading...
instructions
Loading...
parsed
Loading...
info
Loading...
clockSysvar
Loading...
slotHashesSysvar
Loading...
vote
Loading...
hash
Loading...
slots
Loading...
timestamp
Loading...
voteAccount
Loading...
voteAuthority
Loading...
type
Loading...
program
Loading...
programId
Loading...
stackHeight
Loading...
recentBlockhash
Loading...
addressTableLookups
array
Loading...
accountKey
string
Loading...
writableIndexes
array
Loading...
readonlyIndexes
array
Loading...
transactionConfig
object
Loading...
priorityFee
integer
Loading...
computeUnitLimit
integer
Loading...
loadedAccountsDataSizeLimit
integer
Loading...
heapSize
integer
Loading...
signatures
Loading...
version
string|integer
Loading...
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