> ## Documentation Index
> Fetch the complete documentation index at: https://chainstack-docs-polygon-erigon-trace-deprecation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getBlockCommitment | Solana

> The Solana getBlockCommitment method returns the commitment information for a given block. getBlockCommitment on Solana via Chainstack.

# Solana `getBlockCommitment` method

The Solana `getBlockCommitment` 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.

## Parameters

* `block` — the height of the block to retrieve commitment information for.

## Response

* `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.

## Use case

A practical use case for `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.


## OpenAPI

````yaml openapi/solana_node_api/getBlockCommitment.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getBlockCommitment example
  version: 1.0.0
  description: This is an API example for Solana's getBlockCommitment.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getBlockCommitment
      operationId: getBlockCommitment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getBlockCommitment
                params:
                  type: array
                  items:
                    type: integer
                    description: The slot of the block
                    default: 166974442
                  default:
                    - 166974442
      responses:
        '200':
          description: Block commitment details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````