Parameters
number
required
The slot number of the block to retrieve
object
Configuration object containing the following optional fields:
Response
object | null
Returns
null if the block is not found. Otherwise, returns an object containing:Code Examples
Basic Request
Request with Parsed Transaction Data
Using web3.js
Notes
- Block production time is an estimate based on genesis block time and slots elapsed.
- Not all blocks include rewards.
- The
jsonParsedencoding attempts to parse transaction instruction data based on known program layouts. - Some blocks might be skipped (no leader assigned or failed block production).
- Block data may be pruned from the node based on ledger configuration.
Best Practices
- Use
transactionDetails: "signatures"if you only need transaction signatures. - Set
rewards: falseif reward data is not needed. - Consider using
getBlockHeightfirst if you need the latest block. - For real-time updates, consider using websocket subscription instead.