Skip to main content

What is account data?

Every piece of state on Solana lives in an account — wallets, token accounts, and program (smart-contract) state. Account methods read that state directly by address: the raw or parsed data, the owning program, the lamport (SOL) balance, and rent metadata. For higher-level token and NFT data, use the Tokens & NFTs APIs instead of raw account reads. For transaction history, see Transactions.

Which method should I use?

What you needUse this
The full contents of one accountgetAccountInfo
Several accounts in a single request (up to 100)getMultipleAccounts
Every account owned by a program, with filtersgetProgramAccounts
Just the SOL balance of an accountgetBalance

Key methods

getAccountInfo

Full account state for a single address — data, owner, lamports, and rent epoch.

getMultipleAccounts

Fetch up to 100 accounts in one call — the efficient way to read many accounts at once.

getProgramAccounts

Every account owned by a program, with memcmp and dataSize filters for targeted queries.

getBalance

The lamport (SOL) balance of a single account.

Quickstart

Read a single account with getAccountInfo. Every Solana RPC call goes to the same endpoint with your API key from dashboard.helius.dev.
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: 'getAccountInfo',
    params: ['86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY', { encoding: 'jsonParsed' }],
  }),
});

const { result } = await response.json();
console.log(result.value);
Reading many accounts? Use getMultipleAccounts with an array of addresses instead of looping getAccountInfo — one request returns up to 100 accounts.

Next steps

getAccountInfo reference

Full parameters, encodings, and response schema.

Tokens & NFTs

For token balances and NFT data, the DAS API is higher-level than raw account reads.

Transactions

Query transaction and transfer history for an address.

All RPC methods

Browse the complete Solana RPC method reference.