Get X-Chain balance
avax_xchain_get_balanceGet X-Chain AVAX or asset balance for a wallet address, with optional network selection for mainnet or fuji.
Instructions
Get X-Chain AVAX (or any asset) balance for an X-addr (avm.getBalance).
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": {
"address": "<address>"
},
"name": "avax_xchain_get_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | X-Chain address, e.g. X-fuji1abc... | |
| network | No | Primary network: mainnet or fuji | fuji |
| asset_id | No | Asset ID or 'AVAX' | AVAX |