80trust / 100

Chain Total Supply

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 2 h ago

chainpeek (Tanod) ERC-20 total supply with decimals and symbol on Ethereum, Base or Robinhood Chain. Use when an agent needs the total supply of an ERC-20 token, with its decimals and symbol.

POST https://tanod.dev/v1/chain/total-supply

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
275 ms typical, 731 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/chain/total-supply' \
  -H 'content-type: application/json' \
  --data-raw '{"chain":"base","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fchain%2Ftotal-supply
const res = await pay("https://tanod.dev/v1/chain/total-supply", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"chain\":\"base\",\"token\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"}",
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

Example output

{
  "block": 52396571,
  "chain": "base",
  "decimals": 6,
  "note": "symbol and decimals come from the token contract, which can report anything: check the address",
  "symbol": "USDC",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "total_supply": "4399817144.81441",
  "total_supply_raw": "4399817144814410",
  "untrusted_content": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402731 ms$0.001
6 h agoPassed402260 ms$0.001
10 h agoPassed402262 ms$0.001
13 h agoPassed402670 ms$0.001
18 h agoPassed402280 ms$0.001
21 h agoPassed402294 ms$0.001
25 h agoPassed402417 ms$0.001
28 h agoPassed4022.2 s$0.001
32 h agoPassed402275 ms$0.001
36 h agoPassed402283 ms$0.001
39 h agoPassed402268 ms$0.001
43 h agoPassed402529 ms$0.001
47 h agoPassed402354 ms$0.001
2 days agoPassed402273 ms$0.001
2 days agoPassed402275 ms$0.001