Skip to main content
Aomi is non-custodial: it never holds your private keys or funds. You remain in full control of your wallet at all times. Every transaction is simulated on a forked network before it reaches your wallet, so you can review the exact onchain outcome before approving.

How Signing Works

Wallet connection and account management run through Para. Transaction signing still happens locally in your connected wallet through wagmi-compatible connectors. Aomi constructs and proposes transactions; your wallet signs them. The private key never leaves your device.

Transaction Simulation: The Safety Guardrail

Before any transaction reaches your wallet for approval, Aomi simulates it on a forked network. This is a deliberate guardrail for AI-generated transactions. The LLM cannot send anything to your wallet without first passing through simulation.

What simulation does

  1. Aomi forks the current network state using Anvil
  2. The transaction is executed against the fork, not the real chain
  3. The exact outcome is captured: token balance changes, gas cost, contract calls made
  4. The result is shown to you before you’re asked to sign

What you’ll see

Before your wallet prompt appears, you’ll see a simulation result showing:
  • Tokens sent / received: exact amounts and token addresses
  • Gas estimate: expected cost in ETH
  • Contracts called: which protocols are involved
  • Net balance change: what your wallet will look like after the transaction
Only after you review and confirm the simulation result does Aomi send the transaction to your wallet for signing.

Why this matters

LLMs can generate incorrect transaction parameters. Simulation catches problems like wrong amounts, unexpected contract calls, and reverts before they become irreversible onchain. You always have the final say.

Supported Chains

Simulation and transaction execution is supported on:
  • Ethereum Mainnet
  • Base
  • Arbitrum One
  • Major testnets (Sepolia, etc.)

Wallet Integration

Aomi widgets use the Para + wagmi provider tree directly. The registry install gives you the wallet UI plus RuntimeTxHandler; you provide the Para and wagmi providers in your host app.

Setup

Install Dependencies

If you installed the widget through npx shadcn add https://aomi.dev/r/aomi-frame.json, the wallet UI is already included. Use the setup below when you want to wire Para-based auth and external wallets in your host app.

Configure Para

Supported Chains

Configure which chains are available by passing them to Para’s EVM connector:
The NetworkSelect component in the widget (or getChainInfo / SUPPORTED_CHAINS in the headless library) will reflect the configured chains.

Transaction Signing Flow

When the AI assistant determines a transaction is needed, the following flow occurs:

In the Widget

The widget includes RuntimeTxHandler automatically. When a transaction request arrives, it executes through wagmi inside your Para provider tree and prompts the user to sign.

In the Headless Library

Handle transaction requests manually:

EIP-712 Typed Data Signing

The AI can also request EIP-712 typed data signatures (used for gasless transactions, permit approvals, etc.). The flow is identical to transaction signing but uses signTypedData instead of sendTransaction.

Network Switching

In the Widget

The NetworkSelect component provides a dropdown for switching chains. When the user selects a network, it calls useSwitchChain from wagmi and updates the Aomi runtime.

Programmatically

ConnectButton Component (Widget)

The widget’s ConnectButton component handles the full lifecycle:
  1. Renders a connect/manage account button
  2. On connect: opens the Para auth modal
  3. On successful connection: syncs address, chainId, and connection status to useUser
  4. When already connected: opens the Para account modal

Utilities

The headless library provides wallet-related utilities:

Simulation Details

Simulation runs on a forked network using Anvil:
  • No gas costs for simulation
  • No state changes on the real network
  • Exact output visible before signing
  • Multiple transactions can be simulated in batch
  • Error detection before execution

Account Abstraction

Account abstraction is supported for session keys, gas sponsorship, and batched operations.

Next Steps

Last modified on June 10, 2026