For the complete documentation index, see llms.txt. This page is also available as Markdown.

klay_getCouncilSize

Returns the size of the council at the specified block. If the parameter is not set, returns the size of the council at the latest block.

Parameters

Name
Type
Description

QUANTITY | TAG

block number

(optional) Integer or hexadecimal block number, or the string "earliest" or "latest"

Return Value

Type
Description

QUANTITY

The size of the council

Example

// Request
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"kaia_getCouncilSize", "params":["0x1b4"],"id":73}' http://kaia.blockpi.network/v1/rpc/your-api-key
// Result
{
    "jsonrpc":"2.0",
    "id":73,
    "result": 4
}

Last updated

Was this helpful?