Tools · data
Wallet portfolio on Base (every token, priced)
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.
$0.0045 per call, paid in USDC on Base or Solana with x402 — no account, no API key. POST https://fiatdock.com/v1/chain/portfolio (or GET with the same fields as query parameters) · MCP tool wallet_portfolio. An answer the tool cannot produce is refused with 4xx/5xx and is not charged.
Inputs
| Field | Type | Description | Example |
|---|---|---|---|
address | string | A 40-hex EVM address (0x…) on Base. Omit the whole body to get the paying wallet | "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" |
Example
Request body
{"address":"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D"}
Answer (the published example)
{"network":"base","address":"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D","eth":{"wei":"1000000000000000","eth":"0.001","priceUsd":2706.7,"valueUsd":2.71},"tokens":[{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","name":"USDC","decimals":6,"balance":"8.47","priceUsd":0.99998,"valueUsd":8.47,"flagged":false}],"tokenCount":1,"pricedTokenCount":1,"flaggedTokenCount":0,"totalValueUsd":11.18,"truncated":false,"source":"Base RPC (ETH balance) + Coinbase CDP Data API (ERC-20 balances) + DefiLlama (token prices) + Coinbase (ETH price)","asOf":"2026-10-05T00:00:00.000Z","note":"totalValueUsd counts ETH plus every ERC-20 with a confident DefiLlama price that is not flagged as spam."}
Call it
curl
# 1) ask: an unpaid call answers 402 with the exact price (free)
curl -i -X POST https://fiatdock.com/v1/chain/portfolio -H 'content-type: application/json' -d '{"address":"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D"}'
# 2) pay: any x402 client signs that 402 and resends — see Node or Python below
Node
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:*", client: new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_PRIVATE_KEY)) }],
});
const r = await pay("https://fiatdock.com/v1/chain/portfolio", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D"}),
});
console.log(r.status, await r.json());
Python
# pip install "x402[httpx,evm]"
import asyncio, json, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm.exact import register_exact_evm_client
async def main():
client = register_exact_evm_client(x402Client(), Account.from_key(os.environ["AGENT_PRIVATE_KEY"]))
async with x402HttpxClient(client) as http:
r = await http.post("https://fiatdock.com/v1/chain/portfolio", json=json.loads("{\"address\":\"0xA3FAf4A611Df66FB54DD7545Ce3131f92A53666D\"}"))
print(r.status_code, r.json())
asyncio.run(main())
MCP (Claude, Cursor, any MCP client)
{"mcpServers":{"fiatdock":{"command":"npx","args":["-y","fiatdock-mcp"],"env":{"AGENT_PRIVATE_KEY":"0x<your agent wallet key>"}}}}
// then call the tool "wallet_portfolio" — the package pays each call from that wallet
The wallet needs USDC on Base. Prefer no install? The remote server https://fiatdock.com/mcp answers the 402 as tool output for an agent that signs its own payments.
Related tools
- Address intelligence on Base — $0.0045
- Base gas price — $0.001
- Base latest block — $0.001
- ETH balance on Base — $0.001
- USDC balance on Base — $0.001
- ERC-20 token metadata — $0.002
Machine-readable: OpenAPI · tools.json · llms.txt · /.well-known/x402