Skip to main content

grandpa_roundState RPC method

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

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

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"grandpa_roundState","params":[],"id":1,"jsonrpc":"2.0"}'