An allowance, not your keys.
An AI agent with a wallet sounds risky — what stops it from draining the wallet? On Polypad, the answer is a number written into a smart contract: a daily allowance the agent cannot exceed, no matter what it tries. We proved it on-chain. We built a real wallet, gave its agent an allowance of 0.00005 ETH a day — about 9 cents — then told the agent to spend double. The chain said no. Then we told it to spend exactly its allowance. That went through. Both attempts are public transactions below — check them yourself.
0.00005 ETH
the daily allowance we gave the agent — about 9 cents. It tried to spend double. The chain stopped it.
Agent tries to spend 0.0001 ETH — twice its allowance
Transaction reverted on-chain with CapExceeded — nothing moved
Blocked
Agent spends 0.00005 ETH — exactly its allowance
The cap check passed and the money moved to the owner
Went through
Most the agent could ever take in a day
The cap is the only bound — one payment may use the full daily allowance
0.00005 ETH
The demo, step by step
Demo ran Nov 26, 2026 on Robinhood Chain (chain 4663). Every step below is a real transaction — click any hash to see it on the explorer.
1. We created a real wallet
A Safe smart-contract wallet, made by WalletFactoryV2 with the v2 session-key module enabled. Owner: the deployer. Agent key: a throwaway made for this demo. Daily caps: 0.00005 ETH and $1.00 in USDG. Allowed to send to: the owner only. Expires Feb 24, 2027.
Wallet: 0xE36AF524B15AD3e6F321EC76B1f7cBd52e7c5FB1
Create transaction (block 123747210, gas 1,206,888): 0xb2ee…67c3
2. We funded it with 0.0001 ETH
About 17 cents — deliberately more than the double-spend attempt, so the only reason the attempt could fail was the cap, not an empty wallet.
Fund transaction (block 123747217): 0x194b…2912
3. The agent tried to spend double — the chain said no
The agent key called the wallet to send 0.0001 ETH to the owner. The session-key module checked the daily cap on-chain first and reverted with CapExceeded. The transaction failed, nothing moved, and the wallet still held 0.0001 ETH. A reverted transaction still costs gas — this one cost 0.0000009 ETH. The chain charges for the attempt even when it says no.
Reverted transaction (block 123747238, gas 45,197, revert data 0xa4875a49): 0x2af9…5b90
4. The agent spent exactly its allowance — it went through
Same agent, same wallet, 0.00005 ETH. The module checked the cap, it fit, and the money moved to the owner. Afterward the wallet held 0.00005 ETH and the day's spent total read 0.00005 ETH — the allowance, used exactly once.
Successful transaction (block 123747249, gas 109,143): 0x0bf8…b383
How the cap actually works
The money lives in a contract, not an account
The wallet is a Safe (v1.3.0) — audited smart-contract wallet code. The agent never holds the money. It only holds a session key that can ask the contract to pay.
The rules live in the contract, not in an app
SessionKeyModuleV2 checks every spend on-chain, before the money moves: is the key still active and unexpired? Is the destination on the allowlist? Does the amount fit the day's remaining allowance? If any answer is no, the transaction reverts and nothing moves. There is no API to bypass and no promise to trust.
You pick the allowance
$1 to $5,000 a day in USDG — or a per-token cap in the token's own units (ETH in wei). One payment can use the full daily cap. Caps reset at midnight UTC.
You can stop it instantly
Freeze the wallet, revoke the key, or swap in a new key — all immediate, all yours. If your own key is lost, a backup key plus a two-day wait recovers the wallet.
Every move leaves a receipt
Each attempt is a public transaction with a hash anyone can check — including the failed one. That is the point of this page: the proof is the transaction, not our word for it.
The contracts
All verified on Sourcify (exact match). Click a name to read the source.
Checks every spend against the cap — the enforcer
Sponsors gas for agent transactions — Inactive and unfunded — do not fund it.
Honest notes
The demo allowance is tiny on purpose — about 9 cents a day — so you can watch the cap bite. Real wallets use $1 to $5,000 a day.
Warden, Polypad's in-house audit team, reviewed these contracts on Nov 22, 2026. That is an internal review, not a third-party audit — the contracts have not had a formal third-party audit.
The demo wallet is real and still exists, owned by the deployer. The agent key was a throwaway made for this demo and discarded afterward. The wallet still holds 0.00005 ETH (about 9 cents) of the deployer's money.
The whole demo cost 0.0000282 ETH in gas — about 5 cents. Dollar figures use ETH at $1,702.88 on Nov 26, 2026.
