Ethereum data without the RPC bill. Leani is an indexing node you run next
to your app: it backfills history from public datasets, follows Ethereum and
its rollups live, labels every block with how final it is, and serves the
data your app needs over JSON-RPC, HTTP, and a TypeScript SDK. No API key, no
archive node.
Status: release candidate (v0.2.0-rc.3). Read the
known limitations before deploying.
Or take a checksummed archive from
GitHub releases, run the
container image ghcr.io/smart-byte/leani:v0.2.0-rc.3, or
build from source.
Using a coding agent? npx skills add smart-byte/leani -g installs the Leani
skill for Codex, Claude Code, Cursor, and others.
Follow the chain
No configuration file:
leani subscribe blocks
On first use you approve a finalized checkpoint, the trusted starting point
Leani verifies the chain from. Then every new Ethereum block streams to
stdout. Add --finality finalized to print only blocks that can no longer
change, or --format json for NDJSON.
Run a node for your app
leani init blocks # Ethereum Mainnet
leani init blocks --network base # or a rollup: base, op, arbitrum-one, robinhood, ...
leani serve # HTTP API on 18080, JSON-RPC on 18545
A node replaces three services you would otherwise rent:
A metered RPC. JSON-RPC from your own node: blocks, transactions,
receipts, logs, and reorg-correct subscriptions. Point viem at
http://127.0.0.1:18545. Leani keeps no EVM state, so eth_call, balances,
and traces fail explicitly; keep a provider for those. See the
method matrix.
A hosted indexer.Processors
keep only your app's data: built-in ones for blocks, blobs, token balances,
events, and Uniswap pools, or
your own in Rust or
TypeScript.
A streaming service. Change streams resume from a cursor, undo reorgs,
and say how final each block is: attested, confirmed, finalized, and
on rollups settled. See
choose a finality level.
TypeScript SDK
Install the SDK version that matches your node release: