> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbitflare.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getBlockCommitment

> Belirli bir blok için onay bilgisi döndürür

## Parametreler

<ParamField query="slot" type="number" required>
  Slot ile tanımlanan blok numarası
</ParamField>

## Yanıt

<ResponseField name="result" type="object">
  <Expandable title="result fields">
    <ResponseField name="commitment" type="array | null">
      0'dan `MAX_LOCKOUT_HISTORY`'ye kadar her derinlikte blok için oy kullanan küme stake miktarını lamport cinsinden gösteren u64 tamsayıları dizisi.
    </ResponseField>

    <ResponseField name="totalStake" type="number">
      Mevcut dönemde lamport cinsinden toplam aktif stake.
    </ResponseField>
  </Expandable>
</ResponseField>

## Kod Örnekleri

### Temel İstek

```bash theme={null}
curl http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlockCommitment",
  "params": [5]
}'
```

### web3.js Kullanımı

```typescript theme={null}
import { Connection } from '@solana/web3.js';

const connection = new Connection('http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY');
const commitment = await connection.getBlockCommitment(5);
console.log(commitment);
```

### Python Kullanımı

```python theme={null}
from solana.rpc.api import Client

client = Client("http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY")
response = client.get_block_commitment(5)
print(response)
```

## Notlar

1. Belirli bir blok için onay bilgisi döndürür
2. Onay dizisi, stake ağırlığı dağılımını gösterir
3. totalStake değeri, mevcut dönemdeki toplam aktif stake'i temsil eder
4. Mevcut durumdan okuduğu için yanıt anında gelir

## En İyi Uygulamalar

1. Blok onay durumunu doğrulamak için bu metodu kullanın
2. Konsensüs seviyelerini anlamak için onay değerlerini karşılaştırın
3. Ağ hatalarını yönetin ve gerektiğinde yeniden deneyin
