81trust / 100

Chain Portfolio

by FiatDock in Onchain & crypto

x402 APIPassing, checked 5 h ago

What a Base address holds: the ETH balance read from the chain, every ERC-20 with its balance, market price and USD value, and a USD total - spam tokens imitating real ones are flagged and left out of the total, unpriced tokens listed but not counted. Send {} for the paying wallet. Pay-per-call via x402. An empty body is answered for the wallet that pays (the payment's signer); send {"address":"0x…"} for any other address.

POST https://fiatdock.com/v1/chain/portfolio

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://fiatdock.com/v1/chain/portfolio" \
  -H "content-type: application/json" \
  -d '{"address":"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D"}'
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%2Ffiatdock.com%2Fv1%2Fchain%2Fportfolio
const res = await pay("https://fiatdock.com/v1/chain/portfolio", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D"}),
});
console.log(await res.json());

Example input

{
  "address": "0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D"
}

Example output

{
  "address": "0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D",
  "asOf": "2026-10-05T00:00:00.000Z",
  "eth": {
    "eth": "0.001",
    "priceUsd": 2706.7,
    "valueUsd": 2.71,
    "wei": "1000000000000000"
  },
  "flaggedTokenCount": 0,
  "network": "base",
  "note": "totalValueUsd counts ETH plus every ERC-20 with a confident DefiLlama price that is not flagged as spam.",
  "pricedTokenCount": 1,
  "source": "Base RPC (ETH balance) + Coinbase CDP Data API (ERC-20 balances) + DefiLlama (token prices) + Coinbase (ETH price)",
  "tokenCount": 1,
  "tokens": [
    {
      "balance": "8.47",
      "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "decimals": 6,
      "flagged": false,
      "name": "USDC",
      "priceUsd": 0.99998,
      "symbol": "USDC",
      "valueUsd": 8.47
    }
  ],
  "totalValueUsd": 11.18,
  "truncated": false
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40252 ms$0.0045