onchain_get_address_holdings
Get a wallet's on-chain holdings ON ONE CHAIN. includeNfts=true returns the FULL portfolio (native currency + all fungibles + NFT collection) — heavier. includeNfts=false (default) returns only native + fungibles, paginated via cursor — lighter and the right call when you only need token holdings (e.g. before placing a trade or computing USD totals). includePrice attaches USD values; includeMetadata attaches name/symbol/logo/decimals.
IMPORTANT — chainId takes exactly ONE chain (comma-separated values are rejected), so an open-ended "what do I hold?" / "what's my balance?" needs ONE CALL PER CHAIN, and any chain you skip is simply absent from the answer. Unless the user named a chain, cover at least: 1 (Ethereum), 8453 (Base), 42161 (Arbitrum), 137 (Polygon), 4663 (Robinhood Chain) and "solana". 4663 is the one most often missed — every Pons, wrapper and OpenFinance V4 launch lives there, along with USDG, so omitting it reports an empty wallet to a user who holds plenty. Say which chains you checked, so a real zero is distinguishable from a chain you didn't look at.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainId": "<chainId>",
"walletAddress": "<walletAddress>"
},
"name": "onchain_get_address_holdings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pagination cursor (only meaningful when includeNfts=false) | |
| chainId | Yes | ONE chain identifier — "1" Ethereum, "8453" Base, "42161" Arbitrum, "137" Polygon, "4663" Robinhood Chain (OpenFinance launches + USDG), "solana". Not comma-separated: call once per chain. | |
| provider | No | Force provider: Alchemy / GoldRush / Moralis / Tatum / BlockDaemon / Shyft | |
| includeRaw | No | ||
| includeNfts | No | Include NFTs (default false) | |
| includePrice | No | Attach USD values | |
| walletAddress | Yes | Wallet address to query | |
| includeMetadata | No | Attach token metadata |