Links

bor_getCurrentValidators

Returns the current list of validators. The Bor documentation contains more information about Polygon validators.

Parameters

None

Returns

Array of validator objects with the following fields:
  • ID: validator ID
  • accum: the validator's proposer priority
  • power: the validator's voting power
  • signer: validator address

Example

Request

## JSON-RPC over HTTPS POST
## Replace YOUR-API-KEY with an API key from your Infura dashboard
## You can also replace mainnet with a different supported network
curl https://polygon-mainnet.infura.io/v3/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"bor_getCurrentValidators","params":[], "id":1}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"ID": 0,
"accum": 14,
"power": 1,
"signer": "0x055bd801ca712b4ddf67db8bc23fb6c8510d52b9"
},
{
"ID": 0,
"accum": 0,
"power": 4,
"signer": "0x1ca971963bdb4ba2bf337c90660674acff5beb3f"
},
{
"ID": 0,
"accum": -15,
"power": 1,
"signer": "0x26c80cc193b27d73d2c40943acec77f4da2c5bd8"
},
...
]
}