Solana RPC Too Slow or Hitting 429s? Diagnose and Fix It
DevRel
August 19, 2026
11 min read
Your dApp was working perfectly fine yesterday. This morning, you woke up with tons of messages from users saying they can't access your dApp. After you found the issue, you realized you had a 429 error message as seen below:
1
{ "error": { "code": 429, "message": "Too Many Requests" } }
Most of the time, the endpoint is fine. The problem is the shape of the traffic you're sending, and the fix is almost always something you can control in your own client.
But here is the part that trips people up: "slow" and "429" are not the same problem. A 429 means you sent too many requests per second. A slow response means one call took too long to come back. A transaction that never confirms is a third thing entirely, and it has nothing to do with either. Chase the wrong one and you'll spend a day tuning something that was never broken.
The fix isn't a new provider. It's figuring out which of three problems you actually have, then applying the change that targets it.
TL;DR:
A 429 means you crossed your requests-per-second limit. On GetBlock, requests above your RPS tier get a standard rate-limit response with no overage charge, so this is a signal to slow down or size up, not an outage.
A slow response is a latency problem, usually a heavy method like getProgramAccounts or a commitment level set higher than you need.
A transaction that won't land is a priority-fee problem, not an RPC problem.
Fix 429s with backoff, caching, WebSocket subscriptions, and burst smoothing.
Fix slowness by tuning getProgramAccounts, choosing the right commitment, and reusing connections.
Fix landing with ComputeUnitPrice, ComputeUnitLimit, and simulation.
Every fix below runs on a standard GetBlock Solana endpoint. Grab free Solana RPC access and diagnose your own app as you read.
First, figure out which problem you have
You cannot fix what you haven't identified, and these three failures produce very different logs. Read the actual error before you touch anything.
If you see 429 Too Many Requests: you exceeded your rate limit. On GetBlock, this is tied to the requests-per-second ceiling of your plan. Shared Nodes meter both Compute Units and RPS. Limitless Nodes remove CU metering and give you unlimited requests within a fixed RPS tier. Dedicated Nodes lift the limits entirely. A 429 is not a sign the node is down. It is the node telling you that you asked for more per second than your tier allows. You fix it two ways: send fewer requests per second, or raise the ceiling.
If your calls are slow but succeed: this is latency, not rate limiting. The request goes through; it just takes too long. On Solana, this almost always points to a heavy method (getProgramAccounts at the top of the list), a commitment level stricter than you need, or a new connection opened for every call.
If your transaction takes forever to confirm, it is a landing problem and belongs in a different mental bucket. Your RPC is delivering the transaction fine. The network is deprioritizing it because it carries no priority fee. No amount of RPC tuning fixes this. Priority fees do.
Once you know which bucket you're in, jump to the moves that apply. Most production Solana apps have some of all three.
How to Fix it
1: Measure your real request rate
Before you tune anything, find out how many requests per second you actually send. Guessing leads you to optimize the wrong call. The Solana Connection accepts a custom fetch, which gives you a clean place to count:
1
2
3
4
5
6
7
8
9
10
11
12
import { Connection } from "@solana/web3.js";
let requests = 0;
const connection = new Connection(GETBLOCK_SOLANA_RPC, {
commitment: "confirmed", fetch: (url, options) => { requests++; return fetch(url, options); },
});
//Rough requests-per-second over a 10s window
setInterval(() => {
console.log(`~${(requests / 10).toFixed(1)} req/s`); requests = 0;
}, 10_000);
Watch that number under real load and compare it against your plan's RPS. If your peaks sit above the ceiling, you now know your 429s are a rate problem and roughly how far over you are. Parse options.body in the same wrapper if you want the count broken down by method, which tells you exactly what to attack first.
2: Back off without making it worse
When a 429 hits, how you retry determines whether the problem clears in two seconds or two minutes. Retrying instantly turns one rejected request into a burst of them, which keeps you pinned over the limit. Back off, and add jitter so many clients don't all retry on the same beat:
1
2
3
4
5
6
7
8
9
10
11
12
async function withBackoff(fn, maxAttempts = 5) {
for (let attempt = 0; attempt < maxAttempts; attempt++) {
try {
return await fn();
} catch (err) {
const rateLimited = err?.message?.includes("429");
if (!rateLimited || attempt === maxAttempts - 1) throw err;
const base = 2 ** attempt * 200; // 200ms, 400ms, 800ms...
await new Promise((r) => setTimeout(r, base + Math.random() * base));
}
}
}
The cap matters as much as the backoff. Unbounded retries are how a brief rate-limit blip becomes a self-inflicted outage, because your client keeps hammering an endpoint that is already telling you to ease off. Five attempts with growing gaps recover cleanly. Infinite attempts never.
3: Stop polling, start subscribing
This is usually the single biggest source of 429s on Solana. A loop that calls getSignaturesForAddress or getAccountInfo every second fires 3,600 times an hour, whether or not anything has changed, and most of those calls return no new data. Every one of them counts against your RPS.
Swap the loop for a WebSocket subscription that only pushes when something actually happens:
1
2
3
4
5
6
7
8
9
//Instead of polling getAccountInfo in a loop:
const accountSub = connection.onAccountChange(
accountPubkey, (accountInfo) => handleAccountUpdate(accountInfo), "confirmed"
);
// Instead of polling for a program's activity:
const logsSub = connection.onLogs( programId, (logs) => handleLogs(logs), "confirmed"
);
Under the hood, these use accountSubscribe and logsSubscribe, with matching subscriptions for slots and individual signatures. You go from thousands of speculative calls an hour to one push per real event.
The thing you have to build alongside this is recovery. WebSocket connections drop, and a dropped subscription fails silently: your app stops receiving updates and nothing tells you. So when the socket reconnects, resubscribe and backfill the gap by querying what happened while you were disconnected before resuming the live stream. A subscription without backfill will eventually miss the one event you most needed to catch.
4: Cache what's already final
A large share of Solana RPC traffic is re-fetching data that will never change. A finalized block is finalized forever. A confirmed transaction is permanent. Token mint metadata does not move. Fetching any of it twice is a request you spent for nothing, and on a busy app those wasted calls are often what pushes you over the RPS line.
1
2
3
4
5
6
7
8
9
const blockCache = new Map();
async function getBlockCached(slot) {
if (blockCache.has(slot)) return blockCache.get(slot);
const block = await connection.getBlock(slot, { maxSupportedTransactionVersion: 0,
});
if (block) blockCache.set(slot, block); // finalized blocks are immutable
return block;
}
Cache based on whether the data can change, not on what is convenient. Finalized blocks, confirmed transactions, and mint metadata are safe to keep forever. Live account balances, the current slot, and anything still processed need a short TTL or no cache at all, because serving a stale balance is the fast way to break trust in your UI.
5: Fix getProgramAccounts, your biggest latency sink
If your calls are slow rather than rate-limited, getProgramAccounts is the first place to look. An unfiltered call asks the node to scan and return every account a program owns, which is slow to compute, huge to transfer, and heavy enough that it often triggers rate limiting on top of the latency. It manages to be both of your problems at once.
Three changes cut it down. Filter server-side so the node returns only the accounts you want. Slice the data to return only the bytes you need. Choose an encoding on purpose.
1
2
3
4
5
6
7
const accounts = await connection.getProgramAccounts(TOKEN_PROGRAM_ID, {
commitment: "confirmed",
filters: [
{ dataSize: 165 }, // SPL token accounts are 165 bytes
{ memcmp: { offset: 32, bytes: ownerPubkey.toBase58() } }, // owner field ],
dataSlice: { offset: 0, length: 0 }, // return keys only, skip the payload
});
The dataSize and memcmp filters cause the node to perform the narrowing instead of your client, so you receive a handful of accounts rather than thousands. The dataSlice of zero length is the trick people miss: when you only need the account addresses, tell the node to send no account data at all and the response shrinks dramatically. Add the bytes back only when you actually need to read them.
6: Match commitment to the stakes
Every read carries a commitment level, and asking for more finality than you need slows down calls for no benefit. There are three, and they trade speed against certainty. processed is fastest and can still be rolled back. confirmed is the sensible default for most reads. finalized is the slowest and safest.
Use confirmed for the bulk of your app. Reserve finalized for state you genuinely cannot afford to see reverted, like crediting a deposit. Keep processed away from anything a user sees as settled, because data at that level can still disappear. Reaching for finalized everywhere is a common, quiet cause of an app feeling sluggish, for reasons the profiler doesn't obviously explain.
While you're here, reuse a single Connection across your app instead of creating a new one per request. A fresh connection re-pays setup cost on every call, and that overhead shows up as latency you can delete for free.
7: Make your transactions land
If the complaint is that transactions take forever to confirm, no RPC change will help, because the RPC is not the bottleneck. Solana orders transactions partly by the priority fee they carry, and a transaction with none sits behind everything that does during busy periods.
You set a priority fee with two compute-budget instructions, and you size them with simulation:
1
2
3
4
5
6
7
import { ComputeBudgetProgram } from "@solana/web3.js";
//1. Simulate to learn what the transaction actually uses
const sim = await connection.simulateTransaction(tx); const used = sim.value.unitsConsumed ?? 200_000;
//2. Set a limit just above real usage, plus a per-CU price tx.add( ComputeBudgetProgram.setComputeUnitLimit({ units: Math.ceil(used * 1.1) }), ComputeBudgetProgram.setComputeUnitPrice({ microLamports: priorityFee }) );
Simulation is not optional here because of billing. You are charged for the compute-unit limit you set, not the amount you actually use. Set a limit of 200,000 and burn 50,000, and you still pay for 200,000. Size the limit too low, and the transaction fails outright. Simulating gives you the actual number, so you can set a tight limit with a small margin. For the price itself, sample recent prioritization fees on the network rather than guessing, and raise it during congestion.
Here is a full walkthrough of this in the Solana priority fees guide.
8: Right-size your plan
Every move above removes waste, and for many apps that alone ends the 429s. This one is for when it doesn't: if your traffic is clean and you still reach the ceiling, the ceiling is the problem, and the docs say as much. Consistently hitting your limit is the signal to size up.
Shared Node meters Compute Units and RPS. It suits early-stage and spiky workloads where you don't want to pay for idle capacity.
Limitless Node drops CU metering and offers unlimited requests within a fixed RPS tier, from 5 RPS at $150 per month to 50 RPS at $1,500 per month, with annual billing that saves 20 percent and no lock-in between tiers. It fits steady, higher-volume apps where per-call metering is no longer the cheaper model.
Dedicated Node removes the CU and rate limits, using a private server for production apps at scale that need predictable performance.
Conclusion
Slow RPC and 429 errors feel like the same emergency, but they are three separate problems wearing one alarm: a rate limit, a latency cost, and a transaction that won't land. Once you can tell them apart, each one has a direct and undramatic fix. Back off and subscribe instead of polling to clear the rate limits. Filter your heavy reads and match your commitment level to clear the latency. Size your priority fees from simulation to clear the landing delays. None of it requires a new provider, and most of it makes the app faster and steadier at the same time.
Every fix here runs on a standard GetBlock Solana endpoint, backed by nodes across 130+ chains.
Want reliable blockchain infrastructure to power your dApp? Create your free GetBlock account and get instant access to 130+ blockchain networks.
DevRel
August 19, 2026
11 min read
DevRel at GetBlock with over five years of experience in building and writing developer documentation.
Popular Posts
December 4, 2026
8 分鐘閱讀
September 14, 2026
4 分鐘閱讀