Agent Delegation
Useagent-delegation to grant scoped permissions to an agent.
Basic Delegation
Full Example with Spending Limits
Fields
| Field | Required | Description |
|---|---|---|
controllerWallet | Yes | Must match signer |
agentWallet | Yes | Agent’s wallet |
scope | No | Permission scope (e.g., payments:x402) |
permissions | No | execute, read, etc. |
maxSpend | No | Maximum spend in wei |
allowedPaymentTypes | No | Payment types allowed |
receiptDisclosure | No | summary, full, none |
expiresAt | No | Expiration timestamp |
instructions | No | Policy instructions (max 4000 chars) |
skills | No | Allowed skills |