> For the complete documentation index, see [llms.txt](/llms.txt).

# `getBlockCommitment`

Returns the commitment for a block identified by the given slot number. This method uses [160 credits](/services/get-started/pricing/) from your daily balance.

## Parameters[​](#parameters "Direct link to Parameters")

`slot`: (integer) _[required]_ - The slot number of the block to query.

## Returns[​](#returns "Direct link to Returns")

`result` - An object with the following fields:

- `commitment` - The commitment values for the block. Returns either:  
  - `null` if the block is not found.
  - 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`.
- `totalStake` - The total number of lamports being used by validators to participate in the block production and voting process

### Request[​](#request "Direct link to Request")

- curl

```
curl https://solana-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "getBlockCommitment", "params": [5]}'

```

### Response[​](#response "Direct link to Response")

- JSON

```
{
  "jsonrpc": "2.0",
  "result": {
    "commitment": [
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 10, 32
    ],
    "totalStake": 42
  },
  "id": 1
}

```
