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

# getVersion

> Düğümün mevcut sürümünü döndürür

## Parametreler

Yok

## Yanıt

<ResponseField name="result" type="object">
  Şunları içeren nesne:

  <ResponseField name="solana-core" type="string">
    Solana temel yazılımının sürümü
  </ResponseField>

  <ResponseField name="feature-set" type="number" optional>
    Özellik seti sürümü
  </ResponseField>
</ResponseField>

## Kod Örnekleri

### Temel İstek

```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": "getVersion"
}'
```

### web3.js Kullanımı

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

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

// Get version
const version = await connection.getVersion();
console.log('Node version:', version);

// Get version with analysis
async function getVersionWithAnalysis() {
  const version = await connection.getVersion();
  
  return {
    version,
    analysis: {
      timestamp: Date.now(),
      isLatest: await checkLatestVersion(version['solana-core'])
    }
  };
}

async function checkLatestVersion(currentVersion: string): Promise<boolean> {
  // Implementation to check if current version is latest
  // This would typically involve calling an external API
  return true;
}
```

## Notlar

1. Düğümün mevcut sürümünü döndürür
2. Sürüm, Solana temel yazılım sürümünü içerir
3. Mevcut durumdan okuduğu için yanıt anında gelir
4. Sürüm, düğüm güncellemeleriyle değişebilir
5. Farklı düğümler farklı sürümler çalıştırabilir

## En İyi Uygulamalar

1. RPC yükünü azaltmak için uygun durumlarda sonuçları önbelleğe alın
2. Sürüm değişikliklerini izleyin
3. Gerçek zamanlı güncellemeler için WebSocket aboneliği kullanmayı düşünün
4. Ağ hatalarını yönetin ve gerektiğinde yeniden deneyin
5. Sürüm uyumluluğunu takip edin

## Yaygın Hatalar

| Kod    | Mesaj            | Çözüm                                               |
| ------ | ---------------- | --------------------------------------------------- |
| -32601 | Method not found | Bir Solana RPC düğümüne bağlı olduğunuzu doğrulayın |
