LiveRobinhood Chain now served from Frankfurt, Chicago and Singapore — a node on three continents.

Data API (balances & portfolio)

Native + ERC-20 token balances and USD-valued portfolios for any address across every EVM chain we run in one call — including young chains Alchemy and Moralis omit.

The Data API returns native + ERC-20 token balances — and USD-valued portfolios — for one address across every EVM chain NodeFlare runs in a single request. Its differentiator is coverage of the young chains other portfolio APIs skip: Robinhood Chain, Ink, Zircuit, Soneium, BOB and Mode land in the same response as Ethereum and Base. See the product overview for the pitch.

Endpoints

POST https://rpc.nodeflare.app/data/balances       # balances only
POST https://rpc.nodeflare.app/data/portfolio      # balances + USD valuation + total
POST https://rpc.nodeflare.app/data/allowances     # active ERC-20 approvals (revoke-risk view)
POST https://rpc.nodeflare.app/data/wallet-report  # balances, value and approvals in one report
POST https://rpc.nodeflare.app/data/simulate       # dry-run a transaction before sending it
POST https://rpc.nodeflare.app/data/token-safety   # risk signals for one token

All six are described with request and response schemas in the OpenAPI document.

The public endpoints above are free (rate-limited per IP) and serve explicit-token reads. Token discovery and the highest limits run over x402 — no account:

POST https://rpc.nodeflare.app/data/balances/x402
POST https://rpc.nodeflare.app/data/portfolio/x402

With an API key

Every endpoint also accepts your NodeFlare API key, on every plan including the free one. A keyed call runs the full version, with token discovery and approval scanning, and is charged to the plan's monthly compute units. Balances and portfolio cost a fixed amount per call; the approval scan is charged per chain, so name the chains you need. Without chains it scans every chain and is charged for every chain.

EndpointCompute units per call
/data/balances15
/data/portfolio20
/data/allowances75 for each chain scanned
/data/wallet-report90
/data/simulate90
/data/token-safety90
Terminal
curl -X POST https://rpc.nodeflare.app/data/allowances \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer nf_live_YOUR_KEY' \
  -d '{ "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "chains": ["eth", "base"] }'

x-api-key: nf_live_YOUR_KEY works as well. A key that is restricted to certain chains or methods cannot be used for the Data API; restrictions by origin or IP address still apply.

Request body

FieldTypeNotes
addressstringRequired. The 0x address to look up.
chainsstring[]Chains to include — slug (base), name (ethereum), or numeric ID (8453). Defaults to every supported chain.
tokensobjectERC-20 contracts per chain, e.g. { "base": ["0x833589…"] }.
discoverbooleanAuto-find every ERC-20 the address holds. Needs an API key (any plan) or the x402 endpoints.
fromBlockstringDiscovery start block (hex or "earliest").
minUsdnumberDiscovery: drop priced tokens worth less than this USD (default 0.01).
includeSpambooleanDiscovery: keep junk-symbol tokens (default off).
includeDustbooleanDiscovery: keep sub-1e-9 balances (default off).

Balances example

Terminal
curl -X POST https://rpc.nodeflare.app/data/balances \
  -H 'Content-Type: application/json' \
  -d '{
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chains": ["base", "eth", "robinhood"],
    "tokens": { "base": ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"] }
  }'

Each chain returns its native balance and one entry per token (symbol, decimals, human-readable balance, exact raw, and usdPrice/usdValue where priced). If decimals() can't be read, balance is null and raw is preserved — the value is never mis-scaled.

Portfolio example

/data/portfolio adds native-coin USD valuation and rolls everything into a totalUsd, with a per-chain breakdown sorted by value:

Terminal
curl -X POST https://rpc.nodeflare.app/data/portfolio \
  -H 'Content-Type: application/json' \
  -d '{ "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" }'

Allowances

/data/allowances returns the active ERC-20 approvals an address has granted across the chains we serve — for each spender: the token, the approved amount, and an unlimited flag. It's the revoke-risk view: which contracts can still move a wallet's tokens. The scan reads Approval logs, so it needs an API key (75 compute units for each chain scanned) or payment per call in USDC over x402; without either the endpoint answers 402.

Terminal
curl -X POST https://rpc.nodeflare.app/data/allowances \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer nf_live_YOUR_KEY' \
  -d '{ "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "chains": ["eth", "base"] }'

How far back the scan reads. Each chain in the result says it: fullHistory: true when the whole chain was read, otherwise scannedFromBlock, the block number from which the Approval history was read up to the latest block. Approvals granted before that block are not in the list, so an empty approvals list on a chain without fullHistory is not proof that the address has no older approvals. There is no fixed depth. The scan first asks for the whole history; where the nodes do not answer that, it reads from the newest block backwards for as long as its time allows and stops where the node's log history ends. A range counts as read only when the node is seen to hold logs there: a node that has dropped old logs answers with an empty list rather than an error, and such a range is not counted. On Ethereum the scan covers roughly the last 0.4 to 0.7 million blocks. A note on the chain gives the same in words, for example scanned the most recent ~1.2M blocks, and also says when windows of the scan failed or when the coverage could not be confirmed; a chain whose scan did not complete carries an error instead and no coverage fields. At most 200 token and spender pairs are checked per chain; when an address has more, the 200 most recently approved are listed, the note says so and fullHistory is false. Pass fromBlock to scan from a specific block; that range is then queried as given and reported as scannedFromBlock. In /data/wallet-report the same two fields are in approvalScan on each chain.

The same scan is available without code in the token approval checker.

Token discovery (x402)

Set discover: true to find holdings without passing contract addresses. Discovery scans incoming Transfer logs (eth_getLogs), so the keyless public endpoints do not run it. Send your API key (see With an API key above), or use the /x402 endpoints:

JavaScript
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY); // USDC on Base
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://rpc.nodeflare.app/data/portfolio/x402", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", discover: true }),
});

Discovered tokens are USD-priced via DefiLlama. On well-covered chains, junk-symbol spam (scam-airdrop URLs, emoji/non-Latin bait) is filtered and near-worthless tokens are dropped by default — a legitimate token that simply lacks a market price is still returned. Young chains stay unfiltered so discovery is comprehensive.

Pricing

CallPrice
Public balances / portfolio (explicit tokens)Free (rate-limited)
With an API key15 to 90 compute units a call (table above), 75 per chain for the approval scan, from the plan's monthly quota
x402 balances / portfolio~$0.0003 / chain
x402 token discovery~$0.0033 / chain

Paid in USDC on Base, Polygon or Arbitrum via x402. You only pay for calls that succeed.

For AI agents

The Data API is the get_multichain_balances tool in the NodeFlare MCP server — the npm package nodeflare-mcp and the remote endpoint at https://mcp.nodeflare.app/mcp, reachable from Claude, Cursor and ChatGPT connectors. The x402 endpoints are also listed in the x402 Bazaar and the /services.json manifest for autonomous discovery.