An on-chain transaction firewall for Solana AI agents.
Cardon sits between an autonomous agent and the network. Every transaction the agent wants to broadcast is simulated, checked against a policy stored in an Anchor program, and either signed, queued for a human approver, or rejected. Because the policy and approval rules live on-chain, no single operator can quietly raise a spend cap or remove a kill switch.
The problem
Agents can now sign and broadcast transactions on their own. One bad prompt, a jailbreak, or a model regression can drain a hot wallet, and there is no firewall between an agent's intent and the network. The closest existing product runs its policy as centralized middleware that anyone with code access can change. Cardon puts the policy in an Anchor program whose authority can be a multisig or a DAO, so rotating the rules is an on-chain transaction, not a config push.
How it works
- 1Simulate
The agent's transaction is run through Helius simulation before anything is signed.
- 2Check policy
It's checked against an on-chain policy: per-tx cap, program allowlist, daily volume, kill switch.
- 3Decide
Under the threshold it auto-approves; over it, it's queued for a human; if a cap is hit, it's rejected.
Program shape
Registers an agent's signing key, ties it to a policy, tracks an enabled flag and a pending-nonce counter.
Per-agent rules: max lamports per tx, the HITL threshold, daily volume ceiling, allowed-program list.
Created when a submission is over the threshold; closes and refunds rent on approve or reject.
The audit trail is event-based: every approval, rejection, and policy change shows up in transaction logs and is indexed off-chain.
Integrate
Drop the firewall into an agent built on the Solana Agent Kit by wrapping its wallet.
const wallet = new CardonWallet({ inner, client, agent, agentSigner });
const agentKit = new SolanaAgentKit(wallet, RPC_URL, {});
// a high-value tx now queues for human review instead of broadcasting