AI agents are getting wallets. They pay for APIs, swap tokens and move funds on their own. That is useful, and it is also a new way to lose money: an agent that can sign a transaction can be talked into signing the wrong one.
I built AgentTx Firewall to sit between an agent and its wallet, so that nothing gets signed until it has been checked.
The problem: agents sign what they are told
In a typical setup, the agent builds a transaction and signs it. If the agent misreads an instruction, picks up a malicious prompt from a web page, or simply makes a mistake, the signed transaction goes straight to the chain. By the time anyone notices, the funds are gone.
The weak point is that the agent is trusted with two jobs at once: deciding what to do and producing the exact bytes that get signed.
The approach: intents in, checked transactions out
AgentTx Firewall splits those jobs apart. The agent no longer submits a signed transaction. It submits an intent: "transfer this amount to this address" or "swap this token for that one."
The firewall then:
- Builds the transaction from the intent itself.
- Decodes it, so what will actually happen on chain is visible and checkable.
- Checks it against policy before anything is signed.
Only a transaction that passes every check gets signed.
What gets checked
- Allowlists: the destination and the programs involved must be ones you have approved.
- Authority escalation: the transaction must not quietly hand control of an account to someone else.
- Spending limits: caps on how much SOL can leave in one go.
- Slippage: swaps must stay within the slippage you allow.
- Intent match: the decoded transaction must do what the intent said, and nothing more.
- Prompt injection: intents that look like they came from injected instructions are flagged.
- Simulation: the transaction is simulated over RPC before signing, so failures and surprises show up first.
The project is covered by 36 automated tests.
How it ships
It comes as a zero-dependency TypeScript SDK, a CLI and a web inspector, so it can drop into an agent's code, run in a pipeline, or be used by a person to see exactly what a transaction would do. It is built with TypeScript and Node.js on Solana, with Jupiter for swaps.
Why this matters
Agents will only be trusted with real money if there is a layer that says no. Policy checks before signing are that layer: the agent stays useful, and the treasury stays safe even when the agent gets something wrong.
Try it
- Live inspector: https://agenttxfirewall.vercel.app
- Source code: https://github.com/bazibaziaghan/agenttx-firewall
I'm Bazi Aghan, a freelance full-stack and Solana developer in Abuja, Nigeria. I build web apps, storefronts and Solana programs, with a focus on wallet and transaction security. More of my work is at https://baziaghan.com.
