← Solana overview

Solana · solana

getSlot

Solana RPC: getSlot

HTTP JSON-RPC method getSlot on a Solana validator/RPC node. Official reference: solana.com/docs/rpc/http

Parameters

  • config

    Commitment and minContextSlot

    Schema
    {
      "type": "object"
    }

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":"getSlot","params":[{"commitment":"finalized"}]}'

Example request

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

Result

See node response

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