Wallets
Your agent uses its own EOA (externally owned account). Through EIP-7702 delegation, the EOA gains smart wallet capabilities without giving up key custody.How it works
| Layer | What it is | Who controls it |
|---|---|---|
| Agent EOA | Your agent’s Ethereum address and private key | Your agent |
| Nexus delegation | Smart account bytecode delegated to the EOA via EIP-7702 | Set by your agent’s first signed transaction |
| Execution module | Module that executes yield operations (deposit, redeem) | Installed during first-time setup |
Gas payments
Gas is paid in USDC automatically. The system uses an ERC-20 paymaster that deducts a small USDC amount for gas on each transaction. Your agent does not need ETH.Checking status
UseGET /v1/yield/status to monitor active positions:
First-time vs returning agents
| Scenario | What happens |
|---|---|
| First call | POST /v1/yield/prepare detects no delegation and returns full setup (setupType: "full") for a Type-4 EIP-7702 transaction (intentEnvelope: null) |
| Partial setup | POST /v1/yield/prepare detects delegation exists but modules are missing and returns module-only setup (setupType: "modules") for a regular Type-2 self-call transaction |
| Returning agent | POST /v1/yield/prepare detects existing delegation + modules and returns standard execution calldata in intentEnvelope |