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.
Name | Type | Description |
---|---|---|
QUANTITY | TAG | block number | (optional) Integer or hexadecimal block number, or the string "earliest" or "latest" |
Type | Description |
---|---|
QUANTITY | The size of the council |
// Request
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"klay_getCouncilSize", "params":["0x1b4"],"id":73}' http://klaytn.blockpi.network/v1/rpc/your-api-key
// Result
{
"jsonrpc":"2.0",
"id":73,
"result": 4
}
Last modified 11mo ago