azeth_create_account
Deploy a non-custodial smart account for AI agents or services with built-in spending limits and trust registry registration. Enables on-chain identity and recovery through guardian co-signing.
Instructions
Deploy a new Azeth smart account with guardian guardrails and register it on the ERC-8004 trust registry.
Use this when: An AI agent or service needs its own on-chain identity with spending limits and trust registry presence. One EOA can own multiple smart accounts.
Single atomic transaction: deploys smart account proxy, installs all 4 modules (Guardian, TrustRegistry, PaymentAgreement, Reputation), registers on ERC-8004, and permanently revokes factory access.
Returns: The deployed smart account address, trust registry token ID, and transaction hash.
Gas is automatically sponsored — no ETH required. The SDK uses a gasless relay (EIP-712 signature) so the account can be created without any pre-funding. On testnet, USDC is also auto-funded.
Guardian: By default, the guardian is derived from AZETH_GUARDIAN_KEY env var. If not set, falls back to self-guardian (owner address). For production, always use a separate guardian key. Set AZETH_GUARDIAN_KEY in your .env file.
Example: { "name": "PriceFeedBot", "entityType": "service", "description": "Real-time crypto price data", "capabilities": ["price-feed", "market-data"] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet"). | |
| name | Yes | Display name for this participant in the trust registry. | |
| entityType | Yes | Participant type: "agent" (AI agent), "service" (API/oracle), or "infrastructure" (bridge/relay). | |
| description | Yes | Human-readable description of what this participant does. | |
| capabilities | Yes | List of capabilities this participant offers (e.g., ["swap", "price-feed", "translation"]). | |
| endpoint | No | Optional HTTP endpoint (http:// or https://) where this participant can be reached. | |
| maxTxAmountUSD | No | Max USD per transaction (default: $100 testnet, $50 mainnet). | |
| dailySpendLimitUSD | No | Max USD per day (default: $1000 testnet, $500 mainnet). | |
| guardian | No | Guardian address for co-signing operations that exceed spending limits. If omitted, derived from AZETH_GUARDIAN_KEY env var. If neither is set, defaults to the owner address (self-guardian, NOT recommended for production). | |
| emergencyWithdrawTo | No | Address where funds are sent during emergency withdrawal. Defaults to the owner EOA address (derived from AZETH_PRIVATE_KEY). Must be a trusted address you control — this is your recovery destination. |