Skip to main content

getParsedBlock RPC Method

Loading...

Updated on
Apr 30, 2025

getParsedBlock RPC Method

The getParsedTransaction method is only supported with the @solana/web3.js SDK. To use cURL or solana.py, check out the getBlock method examples where the encoding is set to jsonParsed.

Parameters

slot_number
string
Loading...
object
object
Loading...
commitment
string
Loading...
encoding
string
Loading...
transactionDetails
string
Loading...
rewards
boolean
Loading...
maxSupportedTransactionVersion
boolean
Loading...
legacy
boolean
Loading...
0
boolean
Loading...

Returns

result
Loading...
blockhash
Loading...
previousBlockhash
Loading...
parentSlot
Loading...
transactions
Loading...
meta
Loading...
err
Loading...
fee
Loading...
innerInstructions
Loading...
loadedAddresses
Loading...
readonly
Loading...
writable
Loading...
logMessages
Loading...
postBalances
Loading...
postTokenBalances
Loading...
preBalances
Loading...
preTokenBalances
Loading...
rewards
Loading...
pubkey
Loading...
lamports
Loading...
postBalance
Loading...
rewardType
Loading...
comission
Loading...
status
Loading...
transaction
Loading...
message
Loading...
accountKeys
Loading...
header
Loading...
numRequiredSignatures
Loading...
numReadonlySignedAccounts
Loading...
numReadonlyUnsignedAccounts
Loading...
instructions
Loading...
accounts
Loading...
data
Loading...
programIdIndex
Loading...
recentBlockhash
Loading...
signatures
Loading...
Request
1
const web3 = require("@solana/web3.js");
2
(async () => {
3
const solana = new web3.Connection("https://docs-demo.solana-mainnet.quiknode.pro/");
4
console.log(
5
await solana.getParsedBlock(94101948, { maxSupportedTransactionVersion: 0 })
6
);
7
})();
8
Response
1
{
2
"meta": {
3
"err": null,
4
"fee": 5000,
5
"innerInstructions": [],
6
"logMessages": [
7
"Program Vote111111111111111111111111111111111111111 invoke [1]",
8
"Program Vote111111111111111111111111111111111111111 success"
9
],
10
"postBalances": [
11
1069937886367,
12
20362105262556,
13
1,
14
1,
15
1
16
],
17
"postTokenBalances": [],
18
"preBalances": [
19
1069937891367,
20
20362105262556,
21
1,
22
1,
23
1
24
],
25
"preTokenBalances": [],
26
"rewards": [],
27
"status": {
28
"Ok": null
29
}
30
},
31
"transaction": {
32
"message": {
33
"accountKeys": [
34
{
35
"pubkey": "3ab2iWqdSjyaVVrPTJXRR9e9orqK4AMCrnc5EMEHGu2e",
36
"signer": true,
37
"source": "transaction",
38
"writable": true
39
},
40
{
41
"pubkey": "AEf73zebQDu19NGW8R4G8HSoNos2cJe8n3Q1sRTh6XvV",
42
"signer": false,
43
"source": "transaction",
44
"writable": true
45
},
46
{
47
"pubkey": "SysvarS1otHashes111111111111111111111111111",
48
"signer": false,
49
"source": "transaction",
50
"writable": false
51
},
52
{
53
"pubkey": "SysvarC1ock11111111111111111111111111111111",
54
"signer": false,
55
"source": "transaction",
56
"writable": false
57
},
58
{
59
"pubkey": "Vote111111111111111111111111111111111111111",
60
"signer": false,
61
"source": "transaction",
62
"writable": false
63
}
64
],
65
"instructions": [
66
{
67
"parsed": {
68
"info": {
69
"clockSysvar": "SysvarC1ock11111111111111111111111111111111",
70
"slotHashesSysvar": "SysvarS1otHashes111111111111111111111111111",
71
"vote": {
72
"hash": "DUe3NToPicQXHtXeCY7c5qbUkg6x4Wmh2PXj95CGYgSj",
73
"slots": [
74
94101946,
75
94101947
76
],
77
"timestamp": 1630351521
78
},
79
"voteAccount": "AEf73zebQDu19NGW8R4G8HSoNos2cJe8n3Q1sRTh6XvV",
80
"voteAuthority": "3ab2iWqdSjyaVVrPTJXRR9e9orqK4AMCrnc5EMEHGu2e"
81
},
82
"type": "vote"
83
},
84
"program": "vote",
85
"programId": "Vote111111111111111111111111111111111111111",
86
"stackHeight": null
87
}
88
],
89
"recentBlockhash": "HTha2e7ZTag9oT8mDyQxTBrcP2HaBfqJs4q3etV61okZ"
90
},
91
"signatures": [
92
"5FEqJP5xZSqbhYYyTPBQoH7ti3Y1NaqbqCFZR8xjndAKkVBpv5pKboKh18UGeEeyfZEwXNM5wPjdQkpCPewcJRpe"
93
]
94
},
95
"version": "legacy"
96
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free