Query Operations
Tools for querying balances and transaction status.
Note: All query tools support the optional
userIdparameter for session persistence. Include it in every call to maintain chain state across reconnections.
get_balance
Get the balance of any address on the blockchain.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
address | string | Yes | The address to check balance for |
denom | string | No | Specific denomination to check. Returns all balances if not specified. |
Example - All Balances
{
"address": "andr1abc..."
}Example - Specific Denomination
{
"address": "andr1abc...",
"denom": "uandr"
}Response
Returns balance information with denomination and amount.
get_transaction_status
Get the status of a transaction by its hash.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
txHash | string | Yes | The transaction hash to check |
Example
{
"txHash": "A1B2C3D4E5F6..."
}Response
Returns transaction status, including:
- Success/failure status
- Block height
- Gas used
- Error message (if failed)
- Logs and events