> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/solana/rpc-methods/historical-data/getblockcommitment.md).

# getBlockCommitment

Returns the stake-weighted commitment information recorded for a slot.

## Request

{% tabs %}
{% tab title="cURL" %}

```bash
curl "https://<your-endpoint>.mainnet.rpcpool.com/<your-token>" -s -X POST \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlockCommitment",
  "params": [
    5
  ]
}'
```

{% endtab %}

{% tab title="Kit" %}

```typescript
import { createSolanaRpc } from "@solana/kit";

const rpc_url = "https://<your-endpoint>.mainnet.rpcpool.com/<your-token>";
const rpc = createSolanaRpc(rpc_url);

const slot_number = BigInt(5);

let blockCommitment = await rpc.getBlockCommitment(slot_number).send();

console.log("block commitment:", blockCommitment);
```

{% endtab %}
{% endtabs %}

## Parameters

**`slot number`** · u64 · required

Slot to query.

## Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "commitment": null,
    "totalStake": 0
  },
  "id": 1
}
```

## Result

Commitment response object containing:

**`commitment`** · array | null

Array of stake totals, in lamports, that voted on the block at each lockout depth from `0` through [`MAX_LOCKOUT_HISTORY`](https://github.com/anza-xyz/solana-sdk/blob/clock%40v2.2.3/vote-interface/src/state/mod.rs#L33). On Alpenglow clusters it is `null`.

**`totalStake`** · u64

Total active stake, in lamports, of the current epoch. On Alpenglow clusters it is `0`.

***

*Adapted from the* [*Solana `getBlockCommitment` reference*](https://solana.com/docs/rpc/http/getblockcommitment)*, maintained by the Solana Foundation.*

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
