Linea API

Token balances with prices, transaction history and token approvals for any Linea address, indexed from genesis to the latest block, plus JSON-RPC for Linea with archive depth. One API key, no nodes to run.

// Token balances on Linea: 1 credit
const chain = "linea-mainnet";
const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
const url = "https://api.covalenthq.com/v1/" + chain +
  "/address/" + address + "/balances_v2/";

const key = process.env.GOLDRUSH_API_KEY;
const res = await fetch(url, {
  headers: { Authorization: `Bearer ${key}` },
});
const { data } = await res.json();

for (const token of data.items) {
  // balance, quote (USD value), quote_rate …
  console.log(token.contract_ticker_symbol, token.pretty_quote);
}

Used by EY, Fidelity and Consensys

  • EY
  • Fidelity
  • Consensys
  • Jump
  • Ondo
  • ThorWallet
  • Rainbow
  • Matcha
  • Velora
  • AtomicWallet
  • Atlas Wallet
  • OneKey

Query Linea data

REST endpoints that return decoded, priced Linea data in one call, billed in credits per request. The same key works on every other chain GoldRush supports.

Every endpoint supported on Linea

Linea RPC endpoint

Standard eth_*, net_* and web3_* methods plus debug_* and trace_*, with archive depth, drop-in for viem, ethers, web3.js and web3.py. GoldRush routes each call to the best of several upstream providers, from regional edge locations, with a 99.9% production SLA. It uses the same API key and credits as the rest of GoldRush.

  • Standard: eth_*, net_* and web3_* methods0.01 credits per call
  • Trace: debug_* and trace_* methods0.015 credits per call
// ethers v6, pointed at the GoldRush endpoint
import { ethers } from "ethers";

const url = "https://rpc.goldrushdata.com/v1/linea-mainnet";
const req = new ethers.FetchRequest(url);
const key = process.env.GOLDRUSH_API_KEY;
req.setHeader("Authorization", `Bearer ${key}`);
const provider = new ethers.JsonRpcProvider(req);

console.log(await provider.getBlockNumber());

Linea on GoldRush

GoldRush serves decoded Linea data through one REST API. Network covered: linea-mainnet (chain ID 59144, 10-second blocks), with block explorer data from lineascan.build. The Foundational API returns token balances, historical transactions and wallet activity, and token approvals data.

linea-mainnetFrontier chain
Chain name
linea-mainnet
Chain ID
59144
Block time
10 s
Gas token
ETH
Block explorer
lineascan.build
Last synced block
Loading...
JSON-RPC endpoint
https://rpc.goldrushdata.com/v1/linea-mainnet
Data last updated . The last synced block refreshes every 5 seconds.

Chain details from the Linea chain reference.

What teams build on Linea

  • Wallets and portfolio trackers

    Show what any Linea address holds, priced in USD, next to its full transaction history.

    Crypto wallet API
  • Crypto tax and accounting

    Pull every Linea transaction for a client's addresses and reconcile it into reports.

    Tax and accounting data
  • DeFi dashboards

    Track Linea positions, tokens and protocol activity without running an indexer.

    DeFi data
  • Risk and compliance

    Review Linea counterparties and their activity before you onboard or pay them.

    Risk and compliance data
  • Analytics and research

    Answer questions about Linea wallets and tokens from indexed history instead of raw RPC.

    Analytics data
  • AI agents

    Give Claude, Cursor and other agents Linea data through the hosted GoldRush MCP server.

    GoldRush MCP server

Start building on Linea

Every account starts with a 14-day free trial: 25,000 credits at 4 requests per second, no credit card. After that, Vibe Coding is $10 a month for prototypes and side projects, and Professional is $250 a month with 50 requests per second for production.

Linea FAQ

Yes. https://rpc.goldrushdata.com/v1/linea-mainnet serves Linea JSON-RPC on your GoldRush API key, sent as an Authorization: Bearer header. Standard methods cost 0.01 credits per call and debug and trace methods 0.015. See the JSON-RPC quickstart.

Linea API docs

Start here

Reference

More