How an aggregator works
You send a JSON-RPC request to the aggregator. A load balancer picks a provider for it, based on health, latency, price or region, forwards the call and returns the answer. If a provider fails, the next request goes elsewhere. Billing is done by the aggregator, usually in compute units per method.
For calls about the chain head this works well: any synced node gives the same eth_blockNumber. For history it is less simple. Providers run different clients, prune different amounts of state and sit at slightly different heights. A backfill that walks eth_getLogs over millions of blocks can see a gap, a timeout or a different error shape depending on which node answered.
Aggregator vs single archive provider
| Aggregator | Single archive provider (L0vd) | |
|---|---|---|
| Who runs the node | Many independent providers behind one URL | One operator runs every node you hit |
| Pricing | Usually compute units or per request | Often a fixed plan; on L0vd a flat price per RPS cap |
| Uptime | High: a failing provider is skipped | Depends on the operator; add your own fallback |
| Consistency of history reads | Two calls may hit different nodes with different pruning, clients or sync height | Same archive nodes every time, so the same query gives the same answer |
| Debugging slow or odd answers | Hard: you rarely know which node answered | One team to ask, with logs for your key |
| Best for | Many chains, bursty dapp traffic, latest-block reads | Backfills, indexers, historical eth_call and eth_getLogs at steady RPS |
Use both: archive provider first, fallback second
Most teams do not have to choose. Send history reads to one archive provider so answers stay consistent, and keep a second endpoint, an aggregator or another provider, as a fallback for outages. Both libraries below do this in a few lines.
viem
import { createPublicClient, fallback, http } from "viem";
import { mainnet } from "viem/chains";
// L0vd first for archive reads; any other endpoint as a backup.
const client = createPublicClient({
chain: mainnet,
transport: fallback([
http(process.env.L0VD_URL), // https://eth.l0vdinfra.com/<key>
http(process.env.BACKUP_RPC_URL),
]),
});ethers v6
import { FallbackProvider, JsonRpcProvider } from "ethers";
const provider = new FallbackProvider([
{ provider: new JsonRpcProvider(process.env.L0VD_URL), priority: 1, weight: 2 },
{ provider: new JsonRpcProvider(process.env.BACKUP_RPC_URL), priority: 2, weight: 1 },
]);When to pick which
- Many chains, light traffic each: an aggregator saves you from managing a key per chain.
- Steady archive load on a few chains: a single archive provider with a flat price is cheaper and more predictable. On L0vd, 75 RPS around the clock is $385 a month with no per-request bill.
- Production that must not go down: one primary, one fallback, whichever kinds they are.