bor_getCurrentValidators

Returns the current list of validators.

Parameters

None

Returns

  1. DATA, 20 Bytes - Signer. The address of the validator

  2. QUANTITY, Integer - ID. The id of the validator

  3. QUANTITY, Integer - accum. The proposer priority for the validator

  4. QUANTITY, Integer - power. The voting power of the validator

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{"jsonrpc":"2.0","method":"bor_getCurrentValidators","params":[], "id":1}
'

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "ID": 0,
            "signer": "0x09385a960a2e0b6b4516d341534da92cb2a50085",
            "power": 1,
            "accum": -21
        },
        {
            "ID": 0,
            "signer": "0x127685d6dd6683085da4b6a041efcef1681e5c9c",
            "power": 3,
            "accum": -1
        },
        {
            "ID": 0,
            "signer": "0x1efecb61a2f80aa34d3b9218b564a64d05946290",
            "power": 3,
            "accum": -25
        },
        {
            "ID": 0,
            "signer": "0x26c80cc193b27d73d2c40943acec77f4da2c5bd8",
            "power": 1,
            "accum": 1
        },
        {
            "ID": 0,
            "signer": "0x365b3d473d137995ebf776e46a8ad233006c0049",
            "power": 1,
            "accum": -21
        },
        {
            "ID": 0,
            "signer": "0x40314efbc35bc0db441969bce451bf0167efded1",
            "power": 1,
            "accum": 22
        },
        {
            "ID": 0,
            "signer": "0x46a3a41bd932244dd08186e4c19f1a7e48cbcdf4",
            "power": 2,
            "accum": -9
        },
                        ...
    ]
}

Last updated