81trust / 100
Chain Portfolio
by Wallet Portfolio Value in Onchain & crypto
x402 APIPassing, checked 3 h ago
Wallet portfolio value for AI agents: give a Base, Ethereum or Solana wallet address, get its native coin, USDC/USDT and any tokens you list, each with balance, USD price read on-chain from DEX pools and USD value, plus the wallet's total and warnings for thinly traded tokens. One call instead of a balance lookup and a price lookup per token.
POST https://chain.tollkit.dev/chain/portfolio
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 205 ms typical, 205 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://chain.tollkit.dev/chain/portfolio" \
-H "content-type: application/json" \
-d '{"address":"0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704","chain":"base"}'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%2Fchain.tollkit.dev%2Fchain%2Fportfolio
const res = await pay("https://chain.tollkit.dev/chain/portfolio", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704","chain":"base"}),
});
console.log(await res.json());Example input
{
"address": "0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704",
"chain": "base"
}Example output
{
"address": "0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704",
"chain": "base",
"checked_at": "2026-10-04T07:45:41.538Z",
"explorer_url": "https://basescan.org/address/0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704",
"holdings": [
{
"amount": 2.222,
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"pool_depth_usd": null,
"price_usd": 1,
"symbol": "USDC",
"value_usd": 2.22,
"warning": null
}
],
"note": "Covers the native coin, USDC/USDT and any tokens you list in `tokens`. Prices are read from on-chain pools at this moment.",
"total_value_usd": 2.22,
"unpriced_holdings": 0
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 216 ms | $0.005 |
| 8 h ago | Passed | 402 | 205 ms | $0.005 |