getBlockProduction

Returns recent block production information from the current or previous epoch.

getBlockProduction

https://mainnet.rapidnode-rpc.com/?api-key=<api-key>

const response = await fetch('https://mainnet.rapidnode-rpc.com/?api-key=<api-key>', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "jsonrpc": "2.0",
      "id": "1",
      "method": "getBlockProduction",
      "params": [
        {}
      ]
    }),
});
const data = await response.json();
{
  "jsonrpc": "2.0",
  "id": "text",
  "result": {
    "context": {
      "slot": 9887
    },
    "value": {
      "byIdentity": {
        "85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
          9888,
          9886
        ]

Last updated