getBlock
JSON-RPC — Blocks & Slots
getBlock
Returns block metadata (blockhash, parent slot, block time) and optionally the full list of transactions for a slot. Wide hedging across history-enabled RPCs.
POST
getBlock
Body
application/json
Available options:
2.0 Example:
"2.0"
Available options:
getBlock Example:
"getBlock"
[slot, config?] — config supports encoding, transactionDetails (full/accounts/signatures/none), rewards, commitment, maxSupportedTransactionVersion
Example:
[
200000000,
{
"encoding": "json",
"maxSupportedTransactionVersion": 0,
"transactionDetails": "none",
"rewards": false
}
]Example:
1
