Skip to main content

kaia_getCouncilSize RPC Method

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.

Updated on
Aug 7, 2024

kaia_getCouncilSize RPC Method

Parameters

blockNumber/tag
string
REQUIRED
The block number in hexadecimal format, block hash or the string latest or earliest

Returns

result
integer
The size of the council, or -1 when no council was found
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "kaia_getCouncilSize",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": [
9
"0x6e0431"
10
]
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free