← Solana overview
Solana · solana
getBlocks
Solana RPC: getBlocks
HTTP JSON-RPC method getBlocks on a Solana validator/RPC node. Official reference: solana.com/docs/rpc/http
Result
See node response
Schema
{
"type": "unknown"
}Example request
Endpoint: https://your-sol-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlocks",
"params": []
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}cURL
curl -X POST https://your-sol-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getBlocks","params":[]}'