testnet
GitHub

agent.fund

fund(agentId, amount) → Receipt

Transfer OKRW from the owner's primary wallet to the agent's AA wallet. The agent must be ACTIVE.

Parameters

Name Type Required Description
agentId string The UUID of the agent to fund.
amount string Amount of OKRW to send, as a decimal string (e.g., '10.5').

Returns

Type: object

Transaction receipt containing the txHash.

Errors

Code Name Description
AGENT_PENDING AgentPending The agent is not yet registered on-chain. Retryable.

Examples

Fund Agent with 50 OKRW

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