getBlock RPC Method
Though getBlock is supported, Solana Foundation recommends using jsonParsed encoding because it includes all transaction account keys (including those from Lookup Tables). 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...
maxSupportedTransactionVersion
boolean
Loading...
legacy
boolean
Loading...
0
boolean
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...
signatures
Loading...
version
Loading...
Request
Response
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free