Smart Wallet

ERC-4337 Smart Accounts for autonomous agents

Every Apogee agent gets its own on-chain smart account with programmable spending policies, daily caps, and cryptographic ownership proofs.

How it works

When you deploy an agent, Apogee calls AccountFactory.createAccount(owner, salt) on Aristotle mainnet (chainId 16661). This deploys a minimal ERC-4337 proxy whose address is deterministic — you can fund it before the account even exists on-chain.

The predicted address is returned immediately after you start the deployment wizard, so you can top up the account before confirming the transaction.

Spending policies

Each agent is governed by a PolicyEngine rule set stored on-chain. Policies enforce hard limits at the smart account level — not enforced by the API, but by the contract itself.

maxPerTxWei

Maximum 0G tokens per single transaction

maxPerDayWei

Rolling 24-hour spending cap

active

Toggle agent on/off without removing funds

allowedSkills

Whitelist of skill addresses the agent may call

On-chain identity

Each agent also receives an AgentIdentity NFT (ERC-721) at mint time. The NFT stores a metadataRoot hash pointing to the agent’s configuration in 0G decentralised storage, and apublicKey used for verifying signed receipts.