⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
neo
NEO (NEO)

Method: POST getnextblockvalidators

dropdown

# getnextblockvalidators example for NEO (NEO)

POST getnextblockvalidators

Gets the validators list of the next block.

result returns an array containing multiple validators.

Every validator contains information about the public key, the votes, and whether it is a validator or not.

The default vote of validator is 0 when voting has not started.

Parameters

-

Request

curl --location --request POST 'https://neo.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getnextblockvalidators",
"params": [],
"id": "getblock.io"}'


Response

{
    "result": [
        {
            "publickey": "03aa052fbcb8e5b33a4eefd662536f8684641f04109f1d5e69cdda6f084890286a",
            "votes": "0",
            "active": true
        }
    ],
    "id": "getblock.io",
    "jsonrpc": "2.0"
}