> ## 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.

# getRecentBlockhash

> [KULLANIM DIŞI] Yakın tarihli bir blockhash ve ücret çizelgesini döndürür

# getRecentBlockhash

<Warning>
  Bu metod kullanım dışıdır. Lütfen bunun yerine daha doğru ve güvenilir blockhash bilgisi sağlayan [`getLatestBlockhash`](/tr/rpc/methods/getLatestBlockhash) metodunu kullanın.
</Warning>

Yakın tarihli bir blockhash ve ücret çizelgesini döndürür. Bu metod gelecekteki bir sürümde kaldırılacaktır.

## Parametreler

<ResponseField name="config" type="object" optional>
  <Expandable title="yapılandırma alanları">
    <ResponseField name="commitment" type="string" optional>
      Onay seviyesi (processed, confirmed, finalized)
    </ResponseField>
  </Expandable>
</ResponseField>

## Yanıt

<ResponseField name="result" type="object">
  <Expandable title="sonuç alanları">
    <ResponseField name="context" type="object">
      <ResponseField name="slot" type="number">
        İsteğin işlendiği slot
      </ResponseField>
    </ResponseField>

    <ResponseField name="value" type="object">
      <ResponseField name="blockhash" type="string">
        Yakın tarihli blockhash (base-58 kodlu)
      </ResponseField>

      <ResponseField name="feeCalculator" type="object">
        <ResponseField name="lamportsPerSignature" type="number">
          İmza başına lamport cinsinden ücret
        </ResponseField>
      </ResponseField>
    </ResponseField>
  </Expandable>
</ResponseField>

## Geçiş Kılavuzu

`getRecentBlockhash`'ten `getLatestBlockhash`'e geçiş için:

1. Metod çağrılarını değiştirin:

```diff theme={null}
- const { blockhash, feeCalculator } = await connection.getRecentBlockhash();
+ const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash();
```

2. Ücret hesaplamalarını güncelleyin:

```typescript theme={null}
// Eski yöntem
const fee = feeCalculator.lamportsPerSignature * numSignatures;

// Yeni yöntem
const fee = await connection.getFeeForMessage(message);
```

## Kod Örnekleri

### Temel İstek (Eski)

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

### web3.js Kullanımı (Eski)

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

const connection = new Connection('https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY');

// Get recent blockhash (deprecated)
const { value: { blockhash, feeCalculator } } = await connection.getRecentBlockhash();
console.log('Blockhash:', blockhash);
console.log('Fee per signature:', feeCalculator.lamportsPerSignature);
```

## Notlar

1. Bu metod kullanım dışıdır ve gelecekteki bir sürümde kaldırılacaktır
2. Yeni geliştirme için `getLatestBlockhash` kullanın
3. Blockhash sınırlı bir süre için geçerlidir (genellikle 150 slot)
4. Farklı onay seviyeleri belirtilebilir
5. Mevcut kodu yeni metodları kullanacak şekilde güncellemeyi düşünün

## En İyi Uygulamalar

1. Yeni geliştirme için `getLatestBlockhash`'e geçin
2. Ücret hesaplamaları için `getFeeForMessage` kullanın
3. `lastValidBlockHeight` kullanarak blockhash süresini izleyin
4. Ağ hatalarını yönetin ve gerektiğinde yeniden deneyin
5. İhtiyacınıza göre uygun onay seviyesini kullanın

## Yaygın Hatalar

| Kod    | Mesaj                             | Çözüm                                                |
| ------ | --------------------------------- | ---------------------------------------------------- |
| -32601 | Method not found                  | Bir Solana RPC düğümüne bağlı olduğunuzu doğrulayın  |
| -32602 | Invalid params                    | Yapılandırma parametrelerini kontrol edin            |
| -32007 | Blockhash information unavailable | Düğüm başlatılıyor veya senkronize ediliyor olabilir |
