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

# Metode RPC Blok & Jaringan Solana

> Metode RPC Solana untuk blok, slot, epoch, pasokan, biaya, dan jaringan — getBlock, getSlot, getEpochInfo, getLatestBlockhash, getFeeForMessage, dan lainnya.

## Yang tersedia di sini

Selain [transaksi](/docs/id/rpc/historical-data), [akun](/docs/id/rpc/accounts), dan [token & NFT](/docs/id/das-api), Solana menyediakan metode RPC untuk blok, slot, epoch, pasokan, biaya, dan status node. Halaman ini mengelompokkan metode yang paling berguna; setiap kartu tertaut ke panduan lengkapnya.

## Blok & slot

<CardGroup cols={2}>
  <Card title="getBlock" icon="cube" href="/docs/id/rpc/guides/getblock">
    Semua transaksi dan metadata untuk blok yang telah dikonfirmasi.
  </Card>

  <Card title="getBlocks" icon="cubes" href="/docs/id/rpc/guides/getblocks">
    Daftar blok yang telah dikonfirmasi di antara dua slot.
  </Card>

  <Card title="getBlockTime" icon="clock" href="/docs/id/rpc/guides/getblocktime">
    Perkiraan waktu produksi blok, dalam bentuk stempel waktu Unix.
  </Card>

  <Card title="getSlot" icon="gauge" href="/docs/id/rpc/guides/getslot">
    Slot yang telah mencapai tingkat commitment yang ditentukan atau default.
  </Card>
</CardGroup>

## Epoch & jaringan

<CardGroup cols={2}>
  <Card title="getEpochInfo" icon="calendar" href="/docs/id/rpc/guides/getepochinfo">
    Informasi tentang epoch saat ini, termasuk progres slot.
  </Card>

  <Card title="getClusterNodes" icon="network-wired" href="/docs/id/rpc/guides/getclusternodes">
    Detail semua node yang berpartisipasi dalam klaster.
  </Card>

  <Card title="getVersion" icon="tag" href="/docs/id/rpc/guides/getversion">
    Versi Solana yang berjalan pada node.
  </Card>

  <Card title="getHealth" icon="heart-pulse" href="/docs/id/rpc/guides/gethealth">
    Status kesehatan node saat ini.
  </Card>
</CardGroup>

## Pasokan & biaya

<CardGroup cols={2}>
  <Card title="getSupply" icon="coins" href="/docs/id/rpc/guides/getsupply">
    Informasi tentang pasokan SOL yang beredar dan total pasokan saat ini.
  </Card>

  <Card title="getLatestBlockhash" icon="hashtag" href="/docs/id/rpc/guides/getlatestblockhash">
    Blockhash terbaru yang diperlukan untuk membuat dan menandatangani transaksi.
  </Card>

  <Card title="getFeeForMessage" icon="money-bill" href="/docs/id/rpc/guides/getfeeformessage">
    Biaya yang dikenakan untuk pesan tertentu saat dikirimkan.
  </Card>

  <Card title="getRecentPrioritizationFees" icon="gauge-high" href="/docs/id/rpc/guides/getrecentprioritizationfees">
    Biaya prioritas terbaru yang berguna untuk menetapkan biaya prioritas. Lihat juga [Priority Fee API](/docs/id/priority-fee-api).
  </Card>
</CardGroup>

## Mulai cepat

Banyak metode ini tidak memerlukan parameter. Misalnya, `getLatestBlockhash` mengembalikan blockhash yang dapat Anda gunakan untuk membuat transaksi:

<CodeGroup>
  ```typescript TypeScript theme={"system"}
  const response = await fetch(`https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: '1',
      method: 'getLatestBlockhash',
      params: [{ commitment: 'finalized' }],
    }),
  });

  const { result } = await response.json();
  console.log(result.value.blockhash);
  ```

  ```python Python theme={"system"}
  import requests

  url = "https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY"
  payload = {
      "jsonrpc": "2.0",
      "id": "1",
      "method": "getLatestBlockhash",
      "params": [{"commitment": "finalized"}],
  }
  print(requests.post(url, json=payload).json()["result"]["value"]["blockhash"])
  ```

  ```bash cURL theme={"system"}
  curl https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "id": "1",
      "method": "getLatestBlockhash",
      "params": [{ "commitment": "finalized" }]
    }'
  ```
</CodeGroup>

## Langkah berikutnya

<CardGroup cols={2}>
  <Card title="All RPC methods" icon="server" href="/docs/id/rpc/guides/overview">
    Telusuri referensi lengkap metode RPC Solana beserta panduan untuk setiap metode.
  </Card>

  <Card title="HTTP method reference" icon="code" href="/docs/id/api-reference/rpc/http-methods">
    Skema permintaan dan respons formal untuk semua metode RPC HTTP.
  </Card>

  <Card title="Accounts" icon="circle-info" href="/docs/id/rpc/accounts">
    Baca status akun dengan getAccountInfo dan metode terkait.
  </Card>

  <Card title="Transactions" icon="clock-rotate-left" href="/docs/id/rpc/historical-data">
    Kueri riwayat transaksi dan transfer untuk sebuah alamat.
  </Card>
</CardGroup>
