curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockCommitment",
"params": [
166974442
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockCommitment",
"params": [
166974442
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
getBlockCommitment
methodgetBlockCommitment
method returns the commitment information for a given block.
This method provides detailed information about the number of cluster nodes that have voted on the block, and the total stake of those nodes. It is useful for determining the level of consensus for a block in the network.
block
— the height of the block to retrieve commitment information for.value
— the block commitment information:
commitment
— an array of 32 integers representing the commitment for the block.totalStake
— the total stake of all nodes that have voted on the block.getBlockCommitment
is to determine the level of consensus for a block in the network. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.Block commitment details
The response is of type object
.
Was this page helpful?