getTokenBalance
Retrieve the token balance for a wallet address on the Somnia blockchain using the token's address and authentication token.
Instructions
Get token balance for address for provided token address in query params
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": {
"chainName": "<chainName>",
"walletAddress": "<walletAddress>",
"authToken": "<authToken>"
},
"name": "getTokenBalance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authToken | Yes | Authorization token for accessing the Somnia API | |
| chainName | Yes | ||
| walletAddress | Yes | Wallet address to fetch balance for |