🟪 Polygon
bor_getCurrentValidators

Polygon API Documentation


bor_getCurrentValidators RPC Method

The bor_getCurrentValidators returns the current list of validators for Polygon.

Parameters

None

Returns

  • Array of validator objects with the information:
    • ID - validator ID
    • accum - the validator's proposer priority
    • power - the voting power of the validator
    • signer - the public key of the validator

Need RPC API keys?

Get 12.5M archival requests for free today.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
  • You can use a different supported network by replacing polygon-mainnet
curl https://polygon-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"id": "1", "jsonrpc":"2.0","method":"bor_getCurrentValidators","params": []}'

Body

{"jsonrpc":"2.0",
"result":[
  {
    "power":1,
    "accum":-6,
    "ID":0,
    "signer":"0x048cfedf907c4c9ddd11ff882380906e78e84bbe"
  },
  {
    "power":1,
    "accum":-6,
    "ID":0,
    "signer":"0x06abe41e26db44ad94fe61db2ce56023347bcf0c"
  },
  {
    "power":2,
    "accum":25,
    "ID":0,
    "signer":"0x09385a960a2e0b6b4516d341534da92cb2a50085"
    },
    {
      "power":4,
      "accum":11,
      "ID":0,
      "signer":"0x127685d6dd6683085da4b6a041efcef1681e5c9c"
    },
    {
      "power":2,
      "accum":-21,
      "ID":0,
      "signer":"0x26c80cc193b27d73d2c40943acec77f4da2c5bd8"
    }
    ......
],
  "id":"1"}

💡 Confusing?

Ask our experienced blockchain developers in Telegram

JSON-RPC Polygon API Documentation by CHAINNODES is based on Erigon node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or reth