Blocks & Slots
getBlockCommitment
Returns commitment for particular block
Parameters
Block number, identified by Slot
Response
Code Examples
Basic Request
Using web3.js
Using Python
Notes
- Returns commitment information for a specific block
- The commitment array indicates stake weight distribution
- The totalStake value represents the total active stake in the current epoch
- The response is immediate as it reads from the current state
Best Practices
- Use this method to verify block confirmation status
- Compare commitment values to understand consensus levels
- Handle network errors and retry when appropriate