← 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

cURL

Endpoint: https://sol-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .

Terminal
curl -X POST https://sol-mainnet.eu1.azxa.io/<api-key> \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getBlocks","params":[]}'

Example request

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlocks",
  "params": []
}

Result

See node response

Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null
}
Schema
{
  "type": "unknown"
}