81trust / 100

Onchain Token

by dt0ur.online in Onchain & crypto

x402 APIPassing, checked 8 min ago

ERC-20 token lookup by contract address on base, ethereum, arbitrum, optimism, polygon, bsc: name, symbol, decimals, total supply, live USD price, fully diluted value, and whether the token is an upgradeable proxy (EIP-1967/EIP-1167, with implementation address).

POST https://dt0ur.online/api/onchain/token

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
199 ms typical, 224 ms slowest 5%
Last check
8 min ago
Next check
in 20 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://dt0ur.online/api/onchain/token" \
  -H "content-type: application/json" \
  -d '{"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%2Fdt0ur.online%2Fapi%2Fonchain%2Ftoken
const res = await pay("https://dt0ur.online/api/onchain/token", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"base","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}),
});
console.log(await res.json());

Example input

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

Example output

{
  "chain": "base",
  "decimals": 6,
  "explorer_url": "https://basescan.org/token/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "fully_diluted_value_usd": 4324277748.96,
  "is_contract": true,
  "is_erc20": true,
  "name": "USD Coin",
  "price_usd": 0.9999,
  "proxy": {
    "admin": null,
    "beacon": null,
    "implementation": null,
    "is_proxy": false,
    "proxy_type": null
  },
  "symbol": "USDC",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "total_supply": 4324612976.79,
  "total_supply_raw": "4324612976792973",
  "upgradeable": false
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
8 min agoPassed402331 ms$0.01
3 h agoPassed402194 ms$0.01
7 h agoPassed402224 ms$0.01
12 h agoPassed402199 ms$0.01