Skip to main content

What’s here

Beyond transactions, accounts, and tokens & NFTs, Solana exposes RPC methods for blocks, slots, epochs, supply, fees, and node status. This page groups the most useful ones; each card links to its full guide.

Blocks & slots

getBlock

All transactions and metadata for a confirmed block.

getBlocks

A list of confirmed blocks between two slots.

getBlockTime

The estimated production time of a block, as a Unix timestamp.

getSlot

The slot that has reached the given or default commitment level.

Epoch & network

getEpochInfo

Information about the current epoch, including slot progress.

getClusterNodes

Details of all nodes participating in the cluster.

getVersion

The Solana version running on the node.

getHealth

The current health of the node.

Supply & fees

getSupply

Information about the current circulating and total SOL supply.

getLatestBlockhash

A recent blockhash, required to build and sign transactions.

getFeeForMessage

The fee a given message will cost when submitted.

getRecentPrioritizationFees

Recent prioritization fees, useful for setting priority fees. See also the Priority Fee API.

Quickstart

Many of these methods take no parameters. For example, getLatestBlockhash returns a blockhash you can use to build a transaction:
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);

Next steps

All RPC methods

Browse the complete Solana RPC method reference with guides for every method.

HTTP method reference

Formal request and response schemas for all HTTP RPC methods.

Accounts

Read account state with getAccountInfo and friends.

Transactions

Query transaction and transfer history for an address.