# getBlockCommitment

## getBlockCommitment RPC Method

> Returns commitment for particular block. This method provides information about the cluster stake that has voted on a specific block at each depth.<br>

````json
{"openapi":"3.0.3","info":{"title":"Solana RPC API - getBlockCommitment Method","version":"1.0.0"},"servers":[{"url":"https://public.rpc.solanavibestation.com"},{"url":"https://basic.rpc.solanavibestation.com"},{"url":"https://ultra.rpc.solanavibestation.com"},{"url":"https://elite.rpc.solanavibestation.com"},{"url":"https://epic.rpc.solanavibestation.com"},{"url":"https://basic.swqos.solanavibestation.com"},{"url":"https://ultra.swqos.solanavibestation.com"},{"url":"https://elite.swqos.solanavibestation.com"}],"security":[{},{"AuthHeader":[]},{"URLParameter":[]}],"components":{"securitySchemes":{"AuthHeader":{"type":"apiKey","in":"header","name":"Authorization","description":"Authorization header for API key authentication.\n\n**Example:**\n```\nAuthorization: your-api-key-here\n```\n"},"URLParameter":{"type":"apiKey","in":"query","name":"api_key","description":"API key passed as a URL parameter for authentication.\n\n**Example:**\n```\nhttps://public.rpc.solanavibestation.com/?api_key=your-api-key-here\n```\n"}},"schemas":{"GetBlockCommitmentRequest":{"type":"object","required":["jsonrpc","id","method","params"],"properties":{"jsonrpc":{"type":"string","description":"JSON-RPC protocol version","enum":["2.0"]},"id":{"type":"number","description":"Request identifier that will be returned in the response"},"method":{"type":"string","description":"The RPC method name","enum":["getBlockCommitment"]},"params":{"type":"array","description":"Method parameters containing the slot number","minItems":1,"maxItems":1,"items":{"type":"integer","format":"int64","description":"Block number, identified by Slot","minimum":0}}}},"GetBlockCommitmentResponse":{"type":"object","description":"RPC response containing the block commitment information","required":["jsonrpc","id"],"properties":{"jsonrpc":{"type":"string","description":"JSON-RPC protocol version","enum":["2.0"]},"id":{"oneOf":[{"type":"string"},{"type":"number"}],"description":"Request identifier matching the original request"},"result":{"oneOf":[{"$ref":"#/components/schemas/BlockCommitmentInfo"},{"type":"null"}],"description":"The result object containing block commitment information, or null if block not found"},"error":{"$ref":"#/components/schemas/RpcError"}}},"BlockCommitmentInfo":{"type":"object","description":"Information about block commitment","required":["commitment","totalStake"],"properties":{"commitment":{"oneOf":[{"type":"array","items":{"type":"integer","format":"int64","minimum":0}},{"type":"null"}],"description":"Array of u64 integers logging the amount of cluster stake in lamports  that has voted on the block at each depth from 0 to MAX_LOCKOUT_HISTORY. In practice, this is typically null for most blocks, with the array only  appearing under very specific or rare conditions.\n"},"totalStake":{"type":"integer","format":"int64","description":"Total active stake, in lamports, of the current epoch","minimum":0}}},"RpcError":{"type":"object","description":"Standard JSON-RPC error object","required":["code","message"],"properties":{"code":{"type":"integer","description":"Numeric error code following JSON-RPC 2.0 specification:\n- `-32700`: Parse error\n- `-32600`: Invalid request  \n- `-32601`: Method not found\n- `-32602`: Invalid params\n- `-32603`: Internal error\n- `-32005`: Too Many Requests\n- `-32003`: Unauthorized\n"},"message":{"type":"string","description":"Human-readable error message"},"data":{"type":"object","description":"Additional structured error information (optional)","additionalProperties":true}}}}},"paths":{"/":{"post":{"summary":"getBlockCommitment RPC Method","description":"Returns commitment for particular block. This method provides information about the cluster stake that has voted on a specific block at each depth.\n","operationId":"getBlockCommitment","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBlockCommitmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBlockCommitmentResponse"}}}},"401":{"description":"Unauthorized","content":{"text/plain":{"schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Too Many Requests","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal Server Error","content":{"text/plain":{"schema":{"type":"string"}}}}}}}}}
````
