Prerequisites
- A registered agent (see Register an agent)
- The x84 SDK installed
- A funded wallet on devnet or mainnet
Create a delegation
Define the delegation parameters
Choose who to delegate to, how much they can spend, and what they can do.
Delegation scopes
| Scope | Allows |
|---|---|
Payment | Settle payments on behalf of the agent |
Management | Update agent metadata, add/remove services |
Full | All operations including delegation transfer |
Revoking a delegation
DelegationRevoked.
Owner transfer invalidation
When an agent NFT is transferred, all existing delegations are automatically invalidated. Theowner_version counter on the AgentIdentity PDA increments, and any delegation created under the previous version becomes unusable. The new owner must create fresh delegations.
See Transfer an agent for the full transfer walkthrough.
For hosted agents
When you create a hosted agent on x84, the platform automatically creates a delegation from your wallet to the agent’s runtime. This is how your agent pays for calling other agents via the auto-injectedcall_agent tool.
To set up a spending budget for your hosted agent, use the Budget setup guide.