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

{ address, balance, balanceWei, unit } for the agent wallet: balance is a human-readable decimal OKRW string (e.g. "4800.129"), balanceWei is the same amount in base units as an integer string (atokrw on the testnet, where 1 wei = 1 atokrw), and unit is "OKRW".

Examples

Get Balance

{
  "agentId": "123e4567-e89b-12d3-a456-426614174000"
}
ESC
Type to search