getLeaderSchedule

getLeaderSchedule RPC Method

post

Returns the leader schedule for an epoch, showing which validator is assigned to each slot.

Authorizations
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getLeaderSchedulePossible values:
Responses
200
Successful Response
application/json
post
curl -X POST https://public.rpc.solanavibestation.com \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getLeaderSchedule",
    "params": [
      null,
      {
        "identity": "B94PGWcxE9iEDov8sZobTkqEY96Yb5gfcsYWSWpQxh6S"
      }
    ]
  }'
{
  "jsonrpc": "2.0",
  "result": {
    "B94PGWcxE9iEDov8sZobTkqEY96Yb5gfcsYWSWpQxh6S": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15
    ],
    "7K8DVxtNJGnMtUY1CQJT5jcs8sFGSZTDiG7kowvFpECh": [
      16,
      17,
      18,
      19,
      20,
      21,
      22,
      23
    ],
    "GE6atKoWiQ2pt3zL7N13pjNHjdLVys8LinG8qeJLcAuS": [
      24,
      25,
      26,
      27,
      28,
      29,
      30,
      31
    ]
  },
  "id": 1
}

Last updated