get_portfolio_tokens
Retrieve token balances, prices, and metadata for wallet addresses across multiple networks. Supports custom addresses or uses USER_ADDRESS from environment; optional native token inclusion enhances portfolio insights.
Instructions
Get tokens with balances, prices, and metadata for wallet addresses (uses USER_ADDRESS from env if addresses not provided)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addresses | No | Array of address and networks pairs (max 3 addresses, max 20 networks each). Optional - uses USER_ADDRESS from env if not provided | |
includeNativeTokens | No | Include native tokens like ETH (optional, default: false) | |
networks | No | Network identifiers to use with USER_ADDRESS (e.g., 'eth-mainnet', 'base-mainnet'). Only used when addresses not provided. Defaults to ['eth-mainnet', 'base-mainnet'] | |
withMetadata | No | Include token metadata (optional, default: true) | |
withPrices | No | Include token prices (optional, default: true) |
Input Schema (JSON Schema)
{
"properties": {
"addresses": {
"description": "Array of address and networks pairs (max 3 addresses, max 20 networks each). Optional - uses USER_ADDRESS from env if not provided",
"items": {
"properties": {
"address": {
"description": "Wallet address",
"type": "string"
},
"networks": {
"description": "Network identifiers (e.g., 'eth-mainnet', 'base-mainnet')",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"address",
"networks"
],
"type": "object"
},
"type": "array"
},
"includeNativeTokens": {
"description": "Include native tokens like ETH (optional, default: false)",
"type": "boolean"
},
"networks": {
"description": "Network identifiers to use with USER_ADDRESS (e.g., 'eth-mainnet', 'base-mainnet'). Only used when addresses not provided. Defaults to ['eth-mainnet', 'base-mainnet']",
"items": {
"type": "string"
},
"type": "array"
},
"withMetadata": {
"description": "Include token metadata (optional, default: true)",
"type": "boolean"
},
"withPrices": {
"description": "Include token prices (optional, default: true)",
"type": "boolean"
}
},
"required": [],
"type": "object"
}