Skip to content
Fourohtwo

1gateway.dev/v1/onchain/token-info

Use when an agent needs an ERC-20's basics before quoting, transferring or approving it. Input: address; chain (base default, ethereum, arbitrum, monad); optional holder (balance, share of supply) and spender (allowance, flags unlimited). Output: JSON block+time, name, symbol, decimals, totalSupply, known issuer if curated. Name/symbol are self-reported. EOA or non-ERC-20: 4xx, not charged. Exampl

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/onchain/token-info

Uptime100% 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://1gateway.dev/v1/onchain/token-info?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base&holder=0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1&spender=0x000000000022D473030F116dDEE9F6B43aC78BA3");
console.log(await res.json());

Example input

{
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "chain": "base",
  "holder": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}

More from 1gatewayProvider status