Skip to main content

grandpa_roundState RPC Method

Returns the state of the current best round state as well as the ongoing background rounds.

Updated on
Oct 4, 2023

grandpa_roundState RPC Method

Parameters

This method does not accept any parameters

Returns

result
object
An object containing information about the current best round state and ongoing background rounds:
setId
integer
The identifier for the round set, which represents a specific set of validators involved in the finality process
best
object
An object representing the current best round state
round
integer
The current round number or identifier
totalWeight
integer
The total weight or stake of validators participating in the current best round
thresholdWeight
integer
The threshold weight required for finality to be achieved
prevotes
array
The information about prevotes in the current best round
currentWeight
integer
The current weight or stake of validators who have prevoted
missing
array
Information about any missing prevotes in the current round
precommits
array
Information about precommits in the current best round
currentWeight
integer
The current weight or stake of validators who have precommitted
missing
array
Information about any missing precommits in the current round
background
array
Information about ongoing background rounds, which may include additional details about other rounds that are still being processed
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"grandpa_roundState","params":[],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free