AGIChainAI Agent Shield Try Tx Check →

Beta · 30 November 2026

Agent Shield

An AI agent's wallet that runs a transaction only after it has been simulated and approved. The check happens off-chain; the rule is enforced on-chain, so a hijacked prompt or a leaked agent key cannot push a flagged transaction through.

⚠️ Beta. The contracts are open source and tested, but they are not audited. Try them with small balances only. Nothing here is financial advice. Not available to residents of Türkiye.

The problem

Agents now hold wallets and sign their own transactions. Prompt injection, a poisoned address or a malicious token page can make an agent approve a drainer or send funds to the wrong place. Off-chain checks help only if the agent actually runs them and obeys the answer. A compromised agent will not.

How it works

1
The agent sends the transaction it wants to make to Tx Check ($0.01 USDC over x402, or free with an AGI pass). It is simulated from the wallet's own address.
2
If the verdict is ALLOW (or WARN, if the owner allows it), the answer includes a shield approval: an EIP-712 signature by the AGIChainAI service wallet over exactly that call (wallet, target, value, calldata hash), valid once and for 10 minutes.
3
The wallet contract checks the signature on-chain and runs the call. A different target, amount or calldata, an expired or reused approval, or a BLOCK verdict means no execution.

Two ways to use it

ShieldWalletDeploy your own (constructor: service wallet, your guardian address, your agent address). A minimal wallet for one agent. The agent key can only call execute(...) with an approval. The guardian (you) can do anything without one: withdraw, change the agent, accept WARN verdicts.
ShieldGuard for SafeDeployed on Base: 0x02b6e0418173889F4c570689254Da30d55d620F3 (accepts approvals from the service wallet 0x36FBcbB32E384F147919ffbAA918314D9b0C04B6).
A transaction guard for an existing Safe. Anyone relays the approval with submit(...); the Safe transaction then passes the guard once. Delegatecalls are refused. Calls to the Safe itself or to the guard need the Safe's guardian, never a service approval.

Safe users: set the guardian (setGuardian, called from the Safe) before enabling the guard. A guard set without a guardian can lock a Safe.

Agent code (viem)

// 1. check the call (x402-paid fetch, e.g. agichainai-agent-tools)
const r = await paidFetch("https://agichainai-notary.aslanklc04.workers.dev/tx-check", {
  method: "POST",
  body: JSON.stringify({ from: SHIELD_WALLET, to, data, value: value.toString() }),
}).then((x) => x.json());
if (!r.shield?.issued) throw new Error("not approved: " + r.verdict);

// 2. run it through the wallet; the contract re-checks everything
const a = r.shield.approval;
await agent.writeContract({
  address: SHIELD_WALLET, abi: shieldWalletAbi, functionName: "execute",
  args: [to, value, data, a.verdict, BigInt(a.expiresAt), a.requestHash, r.shield.signature],
});

Where AGI fits

Limits, said plainly

Source

Contracts: ShieldVerifier, ShieldWallet, ShieldGuard (Solidity 0.8.24, 12 tests). Approval signing: shield.js.

EIP-712 domain: name "AGIChainAI Agent Shield", version "1", chainId 8453. Type: ShieldApproval(address account, address to, uint256 value, bytes32 dataHash, uint8 verdict, uint64 expiresAt, bytes32 requestHash). Verdict 1 = ALLOW, 2 = WARN.