L0vdL0vd

Guide

RPC aggregator or a single provider?

An RPC aggregator puts many node providers behind one endpoint and routes each request to one of them. That buys uptime and chain coverage. For archive work it can cost you consistency. Here is how to choose, and how to use both.

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

AggregatorSingle archive provider (L0vd)
Who runs the nodeMany independent providers behind one URLOne operator runs every node you hit
PricingUsually compute units or per requestOften a fixed plan; on L0vd a flat price per RPS cap
UptimeHigh: a failing provider is skippedDepends on the operator; add your own fallback
Consistency of history readsTwo calls may hit different nodes with different pruning, clients or sync heightSame archive nodes every time, so the same query gives the same answer
Debugging slow or odd answersHard: you rarely know which node answeredOne team to ask, with logs for your key
Best forMany chains, bursty dapp traffic, latest-block readsBackfills, 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

Test it on your own workload

Get a free 30-day archive key, run your real backfill or fork, and compare speed and cost with what you use now.

Get a free key