Gas Source Modes
Three distinct modes determining who pays the OKRW gas fees for an agent's transactions.
MAWS agents operate as Account Abstraction (AA) wallets, meaning their gas fees can be sponsored or delegated. The gasSource setting chooses who covers the execution costs: the WaaS Paymaster, the agent itself, or (experimental, not yet routed on-chain) the human owner.
PAYMASTER Mode
The default mode. The Maroo WaaS Paymaster sponsors the transaction. The agent's OKRW balance is untouched by gas fees, making it ideal for onboarding and low-value autonomous operations.
await agent.set_gas_source({ agentId: "...", gasSource: "PAYMASTER" }); SELF Mode
The agent pays for its own gas from its OKRW balance. If the agent's balance drops below the required gas cost, transactions will fail with
INSUFFICIENT_BALANCE. This mode is used for fully self-sovereign agents.OWNER Mode
OWNER mode is meant to let the human owner's wallet pay the agent's gas, so an owner can fund a fleet of agents from one treasury without sending OKRW to each agent. It requires a
gasSourceAddress. Today it is experimental: m-aws records the address, but on-chain routing for OWNER mode is not implemented yet, so the agent's own OKRW pays gas, exactly as in SELF mode. Use PAYMASTER or SELF until routing ships.