bor_getCurrentValidators
Returns the current list of validators. The Bor documentation contains more information about Polygon validators.
None
Array of validator objects with the following fields:
ID
: validator IDaccum
: the validator's proposer prioritypower
: the validator's voting powersigner
: validator address
## 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}'
{
"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"
},
...
]
}
Last modified 9mo ago