Parameters
slotu64 required Slot number.
configobject optional Configuration object.
commitmentstringCommitment level ("finalized" or "confirmed").
encodingstringEncoding for each returned transaction: "json", "jsonParsed", "base58", "base64".
transactionDetailsstringLevel of transaction detail: "full", "accounts", "signatures", or "none".
maxSupportedTransactionVersionnumberHighest transaction version to return. Set to 1 to include v1 transactions.
rewardsboolWhether to populate the rewards array.
Result
object | nullIf specified block is not confirmed, result will be null.
blockHeightu64 | nullThe number of blocks beneath this block.
blockTimei64 | nullEstimated production time, as Unix timestamp.
blockhashstringThe blockhash of this block, as base-58 encoded string.
parentSlotu64The slot index of this block's parent.
previousBlockhashstringThe blockhash of this block's parent.
transactionsarrayArray of transaction objects.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlock",
"params": [
430,
{ "commitment": "finalized", "encoding": "json", "maxSupportedTransactionVersion": 1, "transactionDetails": "full", "rewards": false }
]
}'Response
JSON{
"jsonrpc": "2.0",
"result": {
"blockHeight": 428,
"blockTime": null,
"blockhash": "3Eq21vXNB5s86c62bVuUfTeaMif1N2kUqRPBmGRJhyTA",
"parentSlot": 429,
"previousBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B",
"transactions": []
},
"id": 1
}