Get SPL token accounts
get_token_accountsLists SPL Token and Token-2022 accounts owned by a wallet, returning mint, raw amount, decimals, and optional zero-balance accounts for balance and holdings analysis.
Instructions
Lists SPL Token and Token-2022 accounts owned by an address, with mint, raw amount and decimals.
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": {
"owner": "<owner>"
},
"name": "get_token_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Base58 wallet address that owns the token accounts | |
| includeEmpty | No | Include token accounts with a zero balance |