NoLimitNodes
PricingDocsBlogAcademyAboutSupportContact
Log in
Blog/Guides

Solana RPC Explained: How It Works and How to Use It in Production

What a Solana RPC node actually does with your request, the handful of methods that matter, and the four settings that decide whether your app holds up on mainnet.

N
NoLimitNodes Engineering
Infrastructure Team
Nov 23, 202611 min read
On this page +
  • 01What is Solana RPC?
  • 02What happens when you call an RPC node
  • 03The RPC methods you'll actually use
  • 04Commitment levels
  • 05Public, private, or self-hosted
  • 06Rate limits and expensive methods
  • 07Sending transactions that land
  • 08When RPC is the wrong tool
  • 09Production checklist
  • 10Frequently asked questions

Every Solana app talks to the chain through Solana RPC, including wallets, trading bots, explorers and indexers. You send a JSON request to a node and get account data, a block, or a transaction signature back. That part takes five minutes to learn. The hard part comes later, when your app stalls on 429 errors, reads a balance that isn't settled, or sends a transaction that never lands even though you got a signature back.

This guide covers both parts. It explains what an RPC node does with your request and which methods you'll use most. Then it covers the four settings that decide whether your app holds up in production: commitment levels, rate limits, transaction landing, and knowing when to stop polling.

01What is Solana RPC?#

Solana RPC is the JSON-RPC 2.0 interface that Solana nodes expose over HTTP and WebSocket. Apps use it to read accounts, blocks and transactions, to simulate and submit transactions, and to subscribe to changes. Each request is a small JSON object naming a method and its parameters, and the node replies with JSON.

RPC stands for remote procedure call: your code calls a function that runs on someone else's machine. On Solana that machine is an RPC node, a server that runs the same validator software as the rest of the network but doesn't vote. Its whole job is answering questions about the chain and passing transactions along. A minimal request looks like this:

terminal
bash
curl https://api.mainnet-beta.solana.com \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'

Every SDK, whether @solana/web3.js, @solana/kit, solana-py or the Rust client, is a wrapper that builds these JSON bodies for you. When something goes wrong, it helps to remember that's all that's happening underneath.

02What happens when you call an RPC node#

An RPC node keeps its own copy of recent ledger and account state, which it updates as new blocks arrive from the network. That explains most of its behaviour.

Reads are local. When you call getAccountInfo or getBalance, the node answers from its own state. Nothing goes to the validator set, so a read is only as fresh as the node is caught up. A node that has fallen a few slots behind gives you correct-looking data that is a second or two old. That's why getHealth and getSlot are worth calling as probes: they tell you whether the node you're reading from is current.

Writes are forwarded. When you call sendTransaction, the node doesn't execute your transaction. It runs a quick preflight simulation (unless you skip it), then forwards the signed transaction to the current and upcoming block leaders over QUIC. It returns the signature straight away. That signature means "accepted for forwarding", not "landed". We'll come back to that.

How a Solana RPC node handles a read request from local state versus a sendTransaction write that is simulated and forwarded to the leader
Figure 1: Reads come from the node's own copy of state. Writes are simulated, forwarded to leaders, and the signature comes back before the transaction lands.

History has a horizon. A node only keeps a limited window of recent ledger on disk. Requests for older blocks or transactions (getBlock, getTransaction, getSignaturesForAddress deep into the past) need archival storage behind the node. Public and budget endpoints often can't serve them.

RPC nodes and validators are different jobs. A validator votes and produces blocks. An RPC node serves requests. Anza, which maintains the main validator client, recommends against running both roles on one machine: heavy RPC traffic slows voting, and voting duties starve RPC.

03The RPC methods you'll actually use#

The Solana RPC API has more than 50 HTTP methods and a set of WebSocket subscriptions. Most production apps use about a dozen. Grouped by job:

JobMethodsNotes
HealthgetHealth, getSlot, getVersionCheap. Use as probes before trusting a node.
AccountsgetAccountInfo, getMultipleAccounts, getBalance, getTokenAccountsByOwnergetMultipleAccounts takes up to 100 keys per call.
Program scansgetProgramAccountsThe heaviest read. Always filter.
HistorygetSignaturesForAddress, getTransaction, getBlockPaginated. Pass maxSupportedTransactionVersion: 0 or versioned transactions return an error.
Building transactionsgetLatestBlockhash, getRecentPrioritizationFees, simulateTransactionCall these right before you sign.
Sending and confirmingsendTransaction, getSignatureStatusesSending and confirming are separate steps.
Push updates (WebSocket)accountSubscribe, programSubscribe, logsSubscribe, signatureSubscribeSame node, different transport.
Table 1: The methods most production apps rely on.

Two habits save a lot of trouble. First, batch reads: one getMultipleAccounts call for 100 accounts is far cheaper than 100 getAccountInfo calls, for you and for whoever runs the node. Second, ask for the encoding you need. jsonParsed is convenient for token accounts, but base64 with your own decoder is smaller and faster when you know the account layout.

04Commitment levels: the setting behind most RPC bugs#

Almost every read and every send takes a commitment parameter. It tells the node how settled the data must be before it answers. There are three levels:

LevelWhat it meansTypical ageUse it for
processedThe node has seen this block. It may still be skipped by the cluster.NewestLatency-sensitive reads where you can tolerate a rare rollback
confirmedA supermajority of stake has voted on the block. Rollback is very rare.~1 slot behind processedThe sensible default for most apps
finalizedThe block is rooted and can't change.~32 slots behind (often 10+ seconds)Balances you credit to users, payouts, accounting
Table 2: Solana commitment levels.

If you don't pass a commitment, the RPC server uses finalized. Many SDKs set their own default, so check what yours does. The bugs come from mixing levels without meaning to:

  • Fetching a blockhash at processed. If that block is later skipped, its blockhash was never valid on the main fork, and your transaction is rejected. Fetch blockhashes at confirmed.
  • Simulating at one level and reading at another. Preflight runs at preflightCommitment. If that's finalized but your account reads are processed, the simulation sees older state than your app does, and preflight fails on state your app has already seen.
  • Crediting on confirmed. For deposits and anything else that moves money between users, wait for finalized or accept the small risk on purpose.

A rule that works for most teams: read UI state at confirmed, build transactions at confirmed, and settle anything financial at finalized. For a deeper explanation, see our glossary entry on processed, confirmed and finalized.

05Public, private, or self-hosted endpoints#

You have three ways to get a Solana RPC endpoint.

OptionCostLimitsGood for
Public (api.mainnet-beta.solana.com)FreeStrict per-IP rate limits. Heavy methods may be restricted. No support.Learning, scripts, quick tests
Private providerMonthly plan or usage-basedSet by plan: requests per second, method caps, connection countsMost production apps
Self-hosted nodeHardware plus your timeWhatever your machine can serveTeams with ops staff and a need for full control
Table 3: Where your RPC requests can go.

The public endpoints are run by the Solana Foundation and are explicitly not meant for production. The official docs list per-IP limits that include 100 requests per 10 seconds overall and 40 per 10 seconds for a single method, plus caps on connections and data. These figures change, so check the Solana RPC docs before relying on them. A wallet with a few hundred users exceeds those limits quickly.

Self-hosting gives you full control, but an RPC node needs more memory and storage than a validator. You also take on upgrades, snapshots and catching up after restarts. Our hardware requirements guide covers the real numbers.

For most teams a private provider is the right call. If you're choosing one, start with our Solana RPC providers comparison and the real monthly cost breakdown. The key questions are how each provider counts a "request", which methods are capped, and whether you need archival history.

06Rate limits and the methods that eat them#

Every endpoint has a rate limit, and when you exceed it you get HTTP 429. What surprises teams is that requests are not equal. Three methods cost far more to serve than the rest:

  • getProgramAccounts scans every account owned by a program. Unfiltered on a big program like the SPL Token program, it's enormous. Always pass a dataSize filter and at least one memcmp filter, so the node returns only the accounts you need.
  • getSignaturesForAddress walks a per-address index. On a busy wallet or a popular program, paging deep into history is slow.
  • getBlock with full transaction details serializes every transaction in a block. Ask for transactionDetails: "signatures" if that's all you need.

Providers often cap these methods separately from your overall requests per second. That's why an app well under its plan limit can still get throttled. When you do get a 429, back off and retry. Don't hammer the endpoint:

backoff.ts
typescript
async function rpcWithBackoff<T>(call: () => Promise<T>, maxAttempts = 5): Promise<T> {
  let delay = 250
  for (let attempt = 1; ; attempt++) {
    try {
      return await call()
    } catch (err: any) {
      const status = err?.status ?? err?.response?.status
      if (status !== 429 || attempt === maxAttempts) throw err
      // jitter so many workers don't retry in lockstep
      await new Promise(r => setTimeout(r, delay + Math.random() * delay))
      delay *= 2
    }
  }
}

Backoff handles the symptom. To reduce the cause, batch account reads, cache data that changes slowly (token metadata, program configs, mint decimals), and replace polling loops with subscriptions. If you're sizing a plan, average requests per second is the wrong number to plan around. Our guide on how many requests per second you actually need covers burst load and method weights.

NOTE / Not every error is a rate limit
Watch for the node-side JSON-RPC errors too. -32005 means the node is behind and unhealthy, so retry against another node. -32007 means the slot was skipped, so there's no block to fetch and you should move on.

07Sending transactions that actually land#

sendTransaction returning a signature is where many teams stop looking, and it's where many lost transactions go missing. A transaction lands only if a leader includes it before its blockhash expires. Four steps make that much more likely.

1. Simulate first. simulateTransaction returns logs, errors and the compute units used. Use the compute units to set an accurate setComputeUnitLimit instead of the default. A tighter limit makes your priority fee go further.

2. Set a priority fee. getRecentPrioritizationFees returns recent fees paid for the accounts you pass in. Pass the writable accounts your transaction touches, not an empty list, because demand is local to hot accounts. Pick a percentile of what recent transactions paid, then add it with ComputeBudgetProgram.setComputeUnitPrice. The price is in micro-lamports per compute unit.

3. Respect the blockhash window. A transaction is valid only while its blockhash is among the last 150 blocks. That's roughly 60 to 90 seconds. getLatestBlockhash returns a lastValidBlockHeight along with the hash. Once the chain passes that height, your transaction can never land, and you should rebuild it with a fresh blockhash rather than keep resending.

Solana RPC transaction lifecycle showing the 150-block blockhash validity window: fetch blockhash, sign, send, rebroadcast until confirmed, rebuild after lastValidBlockHeight
Figure 2: Rebroadcast inside the window. Once the chain passes lastValidBlockHeight, the transaction can never land, so rebuild it.

4. Confirm by status, not by hope. By default, the RPC node rebroadcasts your transaction for you. Under load, many teams take over by setting maxRetries: 0 and resending the same signed transaction every couple of seconds until it confirms or the blockhash expires:

send-and-confirm.ts
typescript
const { blockhash, lastValidBlockHeight } =
  await connection.getLatestBlockhash('confirmed')
// ...build tx with blockhash, sign it...
const raw = tx.serialize()
const sig = await connection.sendRawTransaction(raw, { maxRetries: 0 })

while (true) {
  const { value } = await connection.getSignatureStatuses([sig])
  const status = value[0]
  if (status?.err) throw new Error(`failed: ${JSON.stringify(status.err)}`)
  if (status?.confirmationStatus === 'confirmed' ||
      status?.confirmationStatus === 'finalized') break

  const height = await connection.getBlockHeight('confirmed')
  if (height > lastValidBlockHeight) throw new Error('blockhash expired; rebuild and resend')

  await connection.sendRawTransaction(raw, { maxRetries: 0, skipPreflight: true })
  await new Promise(r => setTimeout(r, 2000))
}

Resending the same signed transaction is safe. A signature can only be processed once, so duplicates are dropped. If you trade, you may also send through Jito bundles, which have their own simulation and tip mechanics. That's outside plain RPC, but some providers expose bundle simulation on the same endpoint.

08When RPC is the wrong tool#

Request and response is the right model for "what is this account's state now?" It's the wrong model for "tell me the moment anything changes." If you're calling getAccountInfo in a loop every 400 ms, you're paying for a lot of answers that say nothing has changed.

You needUseWhy
Current state on demand, or sending transactionsHTTP RPCSimple, stateless, cacheable
Updates on a handful of accounts or signaturesWebSocket subscriptionsPush instead of poll, on the same node
Every transaction or account update for a program, at scaleYellowstone gRPCBinary stream, server-side filters, built for indexers and bots
The earliest possible view of transactions, before executionShredsRaw block fragments as leaders produce them
Table 4: Pick the transport by what you need.

A common production setup uses all of them. HTTP RPC handles reads and sends, gRPC feeds the indexer, and WebSocket covers the few accounts the UI watches. We compare the streaming options in Yellowstone gRPC vs WebSockets, and the Shredstream guide covers shreds.

09A production checklist for your Solana RPC setup#

Before you ship, check that:

  • You're on a private endpoint, with the API key kept server-side or restricted.
  • You have at least two endpoints and fail over on -32005 errors, timeouts, or a slot that lags behind.
  • Commitment is set explicitly on every call: confirmed for reads and blockhashes, finalized for settlement.
  • getProgramAccounts always has dataSize and memcmp filters.
  • Account reads are batched with getMultipleAccounts, and slow-changing data is cached.
  • 429s go through exponential backoff with jitter.
  • Transactions are simulated, carry a priority fee based on the writable accounts, and are confirmed by status within the blockhash window.
  • Any loop that polls faster than once a second has been reviewed for a move to WebSocket or gRPC.
  • You log the method, latency and error code for every RPC call, so you can see which method is eating your limit.

10Frequently asked questions#

What is a Solana RPC endpoint?

A Solana RPC endpoint is the URL of a node that accepts JSON-RPC requests, such as https://api.mainnet-beta.solana.com for the public mainnet. Private providers give you a dedicated URL with an API key. Your app sends HTTP requests there to read chain data and submit transactions, and opens WebSocket connections there for subscriptions.

Is the public Solana RPC free to use in production?

It's free, but it isn't meant for production. The Solana Foundation's public endpoints apply strict per-IP rate limits and may restrict heavy methods. They're fine for learning, scripts and testing. Real users quickly trigger 429 errors, so production apps should use a private provider or their own node.

Why does my Solana transaction not land even though I got a signature?

The signature only means the RPC node accepted the transaction for forwarding. It still has to be included by a leader before its blockhash expires, about 150 blocks later. Add a priority fee, check status with getSignatureStatuses, and rebroadcast until it confirms or the blockhash expires.

Which commitment level should I use?

Use confirmed for most reads and for fetching blockhashes. It's fast, and rollbacks are very rare. Use finalized when crediting deposits or settling funds, because finalized blocks can't change. Use processed only for latency-critical reads where you can handle the occasional rollback.

What's the difference between Solana RPC and Yellowstone gRPC?

Solana RPC is request and response: you ask for data and get an answer. Yellowstone gRPC is a stream: you subscribe with filters, and the node pushes every matching transaction, account update or slot as it happens. Use RPC for reads and sending, and gRPC when you need continuous, high-volume data.

///

Solana RPC is simple at the protocol level. What separates a working app from a fragile one is how you use it: set commitment on purpose, filter and batch your reads, confirm transactions inside their blockhash window, and stop polling once a stream is the better fit.

If you need a private endpoint for this, NoLimitNodes Solana RPC nodes run on bare-metal servers, authenticate with an x-api-key header, and work with the standard SDKs by swapping the URL. Plans start at 200 requests per second on Pro ($49/month). See pricing for the full tiers.

Related reading: The anatomy of a sub-50ms Solana RPC request · Solana gRPC API guide · Helius alternatives

#solana-rpc#solana-rpc-api#json-rpc#commitment-levels#rate-limiting#sendTransaction#priority-fees
N
NoLimitNodes Engineering
Infrastructure Team

The team that runs our RPC, WebSocket, gRPC, and streaming fleet. We write about what we operate: validators, Geyser pipelines, and the request paths in between.

On this page
  • 01What is Solana RPC?
  • 02What happens when you call an RPC node
  • 03The RPC methods you'll actually use
  • 04Commitment levels
  • 05Public, private, or self-hosted
  • 06Rate limits and expensive methods
  • 07Sending transactions that land
  • 08When RPC is the wrong tool
  • 09Production checklist
  • 10Frequently asked questions
↑ back to top
///Read next
EngineeringJul 5, 2026

How Many RPS Do You Actually Need? Sizing Your Solana RPC Plan

Solana RPC sizing guide: why your average RPS number misleads, how method weights multiply real load, and the formula operators use to stop getting throttled.

#solana#rpc#rpc-sizing
10 min read
GuidesDec 19, 2024

How to Use the Solana RPC API: Complete Developer Guide | NoLimitNodes

A Solana RPC API lets applications read blockchain data, submit transactions, and query Solana network state without operating their own RPC infrastructure. In this tutorial, you'll learn how to connect to a NoLimitNodes Solana RPC endpoint, authenticate requests with an API key, send your first JSON-RPC request, and subscribe to real-time Solana events over WebSocket.

#solana#rpc#tutorial
4 min read
///Relevant Solana infrastructure
Solana RPC Nodes

Private JSON-RPC endpoints for reads, transactions, and application backends.

Explore Solana RPC Nodes →
← Older
Migrating from WebSockets to Yellowstone gRPC Without Losing Updates
Run it yourself

Every benchmark in this blog runs against our public endpoints.

Spin up an RPC, WebSocket, or gRPC endpoint in under a minute. Flat monthly pricing. Reproduce the numbers for your own workload.

See pricing

Ready to get started?

Choose a plan and start building in under 30 seconds.

Talk to Sales
NoLimitNodes

Solana RPC infrastructure built for performance and scale.

RPC Access
  • Solana HTTP RPC nodes
  • Solana WebSocket nodes
  • Yellowstone gRPC nodes
  • Solana Shredstream
  • UltraSend transaction relay
Infrastructure
  • Compute Platform
  • VPS
  • VDS
  • Bare Metal
  • Geyser Plugin Hosting
Enhanced Streams
  • PumpFun
  • PumpSwap
  • Raydium
  • Orca
  • Meteora
  • System Events
  • Browse all Solana Enhanced Streams →
Program Streams
  • PumpFun
  • PumpSwap
  • Raydium CLMM
  • Orca Whirlpool
  • Meteora DLMM
  • Jupiter Swap
  • Jupiter Perps
  • Kamino Lending
  • Browse all 37 Solana programs →
Trading
  • EZWallet
Analytics
  • Historical Datasets
  • Historical Raw Blocks
Company
  • About
Resources
  • Pricing
  • RPC Rate Limits
  • Custom Development
  • Documentation
  • Blog
  • Academy
  • Support
  • Contact Sales
Compare
  • Yellowstone gRPC vs LaserStream
  • Triton vs Helius
  • Raydium API vs Helius
  • PumpSwap API vs Bitquery
  • QuickNode Streams vs NLN
  • All comparisons →
Legal
  • Terms & Conditions
  • Privacy Policy
© 2026 CLR3 Inc., operating as NoLimitNodes. Registered in Ontario, Canada. All rights reserved.solana mainnet