Solana RPC · Blocks & slots

POST getBlock

Identity and transactions of a confirmed block.

Endpoint

POST  https://solrpc.infinityblocks.io/<API_KEY>

Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.

Parameters

ParamTypeRequiredDescription
slotnumberyesSlot number.
configobjectnoencoding, transactionDetails, rewards, maxSupportedTransactionVersion.

Request

curl -s https://solrpc.infinityblocks.io/<API_KEY> \
  -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getBlock","params":[423214000,{"encoding":"json","transactionDetails":"signatures","rewards":false,"maxSupportedTransactionVersion":0}]}'

With @solana/web3.js

const block = await rpc.getBlock(423214000, { maxSupportedTransactionVersion: 0 });

Response

{ "jsonrpc": "2.0", "id": 1, "result": { "blockhash": "EkSn…", "previousBlockhash": "9xQ…", "parentSlot": 423213999, "blockHeight": 401299900, "blockTime": 1780165220, "signatures": ["<SIGNATURE>", "…"] } }

Try it

Run getBlocklive · POST

Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.