Get native and up to 20 ERC-20 balances per address
tanod.dev/v1/chain/portfolio
Get native and up to 20 ERC-20 balances per address; multi-wallet calls read at one block and charge per wallet. Read-only. Use when an agent needs an address's ETH balance and up to 20 token balances in one call.
POST
https://tanod.dev/v1/chain/portfolioUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://tanod.dev/v1/chain/portfolio", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"base","tokens":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]}),
});
console.log(await res.json());Example input
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"tokens": [
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
]
}More from Tanod chainpeekProvider status
- chain.tanod.dev/v1/solana/token-infoGet Solana SPL mint supply, decimals and authorities. Use when an agent needs an SPL token mint's supply, decimals and authorities on Solana.0.002
- tanod.dev/v1/chain/address-poisoningchainpeek (Tanod) address-poisoning check before a token transfer: is the recipient a lookalike (same first and last 4 hex characters) of an address in the sender's history or contacts? Use when an agent is about to send USDC or a token and must check the recipient is not an address-poisoning lookalike.0.002
- tanod.dev/v1/chain/allowancechainpeek (Tanod) allowance read: the ERC-20 allowance an owner gave a spender, with decimals, symbol and an unlimited-approval flag, on Ethereum, Base or Robinhood Chain. Read-only. Use when an agent must check how much an ERC-20 spender may take from an owner, and whether it is unlimited.0.002
- tanod.dev/v1/chain/approvalschainpeek (Tanod) live token approvals of a wallet: ERC-20 and Permit2 allowances with risk flags and unsigned revoke transactions, on Base or Ethereum. Use when an agent must list and revoke its wallet's live token approvals, on a schedule or after a risky signature.0.005
- tanod.dev/v1/chain/balancechainpeek (Tanod) balance read: the native (ETH) balance of an address on Ethereum, Base or Robinhood Chain, or its ERC-20 balance when a token contract is given. Read-only. On-chain strings are attacker-controlled. Use when an agent needs the ETH or ERC-20 balance of an address on Ethereum, Base or Robinhood Chain.0.002
- tanod.dev/v1/chain/blockchainpeek (Tanod) latest-block read: number, timestamp, hash, base fee and gas used/limit of the latest block on Ethereum, Base or Robinhood Chain. Read-only. Use when an agent needs the latest block number, timestamp and base fee of Ethereum, Base or Robinhood Chain.0.001
- tanod.dev/v1/chain/block-atchainpeek (Tanod) block at a time: the last block at or before a Unix or ISO 8601 time on Ethereum or Base, plus the next block. Read-only. Use when an agent must map a date or timestamp to the Ethereum, Base or Robinhood Chain block mined at that time.0.003
- tanod.dev/v1/chain/block-numberchainpeek (Tanod) latest block number, timestamp and age in seconds of Ethereum, Base or Robinhood Chain. Use when an agent needs the latest block number of Ethereum, Base or Robinhood Chain, with its timestamp and age in seconds.0.001
- tanod.dev/v1/chain/bolt11/decodechainpeek (Tanod) Lightning invoice decoder: BOLT11 payment request to amount, payee, payment hash, expiry and route hints. Pure computation. Use when an agent must read a Lightning invoice (lnbc...) before paying it: amount, payee, expiry, payment hash.0.001
- tanod.dev/v1/chain/callchainpeek (Tanod) read-only contract call (eth_call) on Ethereum, Base or Robinhood Chain: raw hex calldata in, raw hex result out. Use when an agent must read a contract function's return value without sending a transaction.0.002
- tanod.dev/v1/chain/calldatachainpeek (Tanod) calldata decode: decode EVM transaction calldata with a given signature, or look the selector up and return every candidate that decodes cleanly (unverified hints). Read-only. Use when an agent has raw transaction calldata and needs the function and arguments it encodes.0.003
- tanod.dev/v1/chain/candleschainpeek (Tanod) ETH and BTC OHLCV price candles (5m to 1d) computed from on-chain Uniswap v3 swaps on Base. Use when an agent needs ETH or BTC price history as OHLCV candles for charting or backtesting.0.003
