L0vdL0vd

Quickstart

Make your first archive request in under a minute.

1. Get an endpoint

  • No account: on l0vd.com click Try our free endpoints, choose a network and copy the URL. Free endpoints last 30 days.

The URL looks like this. The last part is your key; treat the whole URL as a secret.

https://<network>.l0vdinfra.com/<your-key>

2. Send a request

curl https://eth.l0vdinfra.com/<your-key> \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
{"jsonrpc":"2.0","id":1,"result":"0x1529f3c"}

3. Use it from code

viem (TypeScript)

import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";

const client = createPublicClient({
  chain: mainnet,
  transport: http(process.env.L0VD_ETHEREUM_URL),
});

// Balance at a historical block: this is an archive read.
const balance = await client.getBalance({
  address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  blockNumber: 18_908_895n,
});

ethers v6

import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.L0VD_ETHEREUM_URL);
const block = await provider.getBlock(15_537_394); // The Merge

web3.py

import os
from web3 import Web3

w3 = Web3(Web3.HTTPProvider(os.environ["L0VD_ETHEREUM_URL"]))
print(w3.eth.get_balance("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", block_identifier=18_908_895))

Keep the URL in an environment variable or secret manager, never in client-side code or a public repository.

Next