agent.balance
balance(agentId) → Balance Retrieve the current OKRW balance of the specified agent's AA wallet.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agentId | string | ✓ | The UUID of the agent. |
Returns
Type:
object Object with the balance in aokrw (base units, decimal string; 18 decimals, mirroring Ethereum's wei↔ETH relationship).
Examples
Get Balance
{
"agentId": "123e4567-e89b-12d3-a456-426614174000"
}