OVERVIEW
A shared identity with separate authority.
The smart account is the payment identity. The human wallet remains its root owner. An AI agent operates through a separate delegated key and can request only the actions allowed by the active mandate. Manda evaluates the request before any UserOperation is submitted.
The agent does not receive the owner’s private key. Payment principal comes from the user’s smart account; Manda’s sponsor pays eligible network gas only. The service checks recipient, per-payment cap, UTC daily budget, expiry, approval, and replay protection; an onchain hook enforces the separate lifetime total payment cap.
Root owner
Creates the account, signs mandates, approves higher-value requests, and revokes delegated access.
Shared identity
Holds funds, installs validation modules, and executes ERC-4337 UserOperations.
Bounded delegate
Signs narrow payment intents using a separate service-side key.
Decision point
Checks every request and records an attributed success or rejection reason.
AUTHORITY MODEL
Ownership stays singular. Capability is delegated.
Manda combines onchain validation with runtime policy controls. The owner selects a per-payment cap, UTC daily budget, and cumulative total cap. The onchain total cap never resets; the service-enforced daily budget resets at UTC midnight. Every payment comes from the user’s account, while the sponsor pays eligible transaction gas only.
Onchain rules provide a hard account boundary. Runtime rules provide detailed operational controls and clear rejection reasons without pretending every policy field is enforced by the chain itself.
PAYMENT LIFECYCLE
From intent to evidence.
The agent creates a payment intent
The request specifies a unique request ID, chain, recipient, asset and amount in base units (wei for ETH, six decimals for USDG).
The service authenticates the caller
A trusted agent runtime uses the local bearer token. Browser control uses a short-lived owner-signed session.
The active mandate is evaluated
Manda checks identity, status, expiry, destination, amount, daily and total spend, available user funds, chain, replay, and approval requirements.
An approved UserOperation is submitted
Eligible Arbitrum operations use Candide sponsorship. Robinhood Chain operations use Alchemy Bundler and Gas Manager.
The outcome is recorded
The activity ledger stores the actor, intent, policy result, network, and transaction evidence where a transaction exists.
POLICY REFERENCE
The mandate fields that matter.
| Field | Purpose | Enforcement |
|---|---|---|
| recipient | Single approved service or destination address. | Runtime; native-asset calls also use account target checks |
| perPaymentWei | Maximum value allowed for one request. | Runtime |
| dailyLimitWei | Confirmed and reserved spend allowed per UTC day; resets at UTC midnight. | Runtime ledger |
| onchainAllowanceWei | Maximum total payment value the delegate can transfer during this mandate; does not reset. | Onchain hook and preflight service read |
| approvalThresholdWei | Value above which the owner must sign a fresh approval. | Runtime signature verification |
| balanceFloorWei | Minimum account balance that must remain after payment. | Runtime chain read |
| expiresAt | Time after which the mandate cannot authorize a request. | Runtime and module configuration |
| chainId | Network on which the policy is valid. | Runtime |
| entityId | Installed Modular Account validation entity. | Onchain |
AGENT API
A narrow tool surface.
The agent does not call arbitrary wallet methods. It sends a constrained payment request to the local service.
{
"requestId": "agent-run-unique-id",
"chainId": 421614,
"asset": "ETH",
"recipient": "0x...",
"amountWei": "100000000000"
}POST /auth/challenge
Creates a short-lived message for the connected owner to sign.
POST /auth/verify
Verifies the owner signature and returns an authenticated session.
GET /policy
Returns the active policy for the requested supported chain.
POST /pay
Evaluates and, when allowed, executes a payment through the delegated key.
GET /activity
Returns scoped policy decisions and confirmed transaction evidence.
NETWORK EVIDENCE
One address. Two independent deployments.
The same deterministic Modular Account V2 address is deployed on both test networks. Each chain maintains its own mandate, balance, allowance, and transaction history.
Arbitrum Sepolia
Authenticated production payment confirmed through the Vercel-to-VPS path with Candide sponsorship.
Inspect smart account ↗Inspect production payment ↗Robinhood Chain Testnet
Account deployment, mandate installation, and sponsored agent payments confirmed.
Inspect smart account ↗Inspect verified payment ↗SECURITY BOUNDARIES
What the implementation protects.
Secrets remain server-side and untracked
Agent keys, service tokens, owner pins, ledgers, environment values, and policy-state files are excluded from Git.
Private routes require authenticated callers
Payment, policy, and activity endpoints accept an agent bearer token or a verified owner session.
Request IDs are single-use
Confirmed, pending, and terminally rejected requests cannot be silently replayed.
Pending requests reserve daily capacity
Concurrent attempts cannot overrun the daily budget while an earlier operation is settling.
Revocation requires the connected owner
The implementation removes the validation entity and associated hooks on the policy’s chain.
LOCAL DEVELOPMENT
Run Manda locally.
Use Node.js 20 or newer. Copy the example environment file and add an Alchemy application key and Gas Manager policy ID.
Run the agent service and npm start. The Node server keeps Alchemy credentials and agent routes off the browser surface.
CURRENT LIMITS
What remains intentionally unfinished.
Prototype boundaries
- Live owner-signed revocation has not been executed because it would disable the active demo mandates.
- Cross-chain bridging and automatic rebalancing are outside the critical payment path.
- The current agent service is a single-owner local prototype and is not a multi-tenant production custody system.
- USDG code targets Paxos testnet contracts but still awaits an installed mandate, confirmed transfer, rejection test, and production deployment.