Solana agents that check before they sign
An agent with a Solana wallet signs whatever its tools hand it: a swap from a plugin, a token launch, a transfer a prompt talked it into. presign-guard reads every instruction of the transaction and simulates it before the wallet signs. Red is never signed, and what leaves the wallet counts toward limits you set.
What gets caught
- Red, never signed: SetAuthority handing one of your token accounts to someone else, System Assign handing the wallet itself to a program, the same changes hidden inside another program (seen in the simulation).
- Orange, ask a person: an unlimited token delegate, a durable nonce (signable much later), closing a token account to someone else, an owner or delegate change the instructions don't show, a transaction that fails.
- Metaplex agents: an agent pays from its own wallet through Metaplex Core's
Execute. presign-guard unwraps it and shows who gets how much. Handing over the agent's token account is red. Another program running as the agent, or a standing right for someone else to pay for it, is orange. - Intent: pass what the agent means to do (“swap 1 SOL for USDC”), and a transaction that does something else is orange.
- Your limits: SOL beyond the network fee counts toward a SOL limit, USDC toward a USDC limit, other tokens and delegates go to you for approval (Telegram or the wallet dashboard).
Pick your framework
| Framework | Package | What it guards |
|---|---|---|
| Solana Agent Kit (SendAI) | presign-guard-solana-agent-kit | The wallet every plugin signs through: transfers, swaps, launches, staking |
| Coinbase AgentKit | presign-guard-agentkit | Solana keypair and CDP wallets: SPL transfers, Jupiter swaps, native transfers, x402 payments |
| ElizaOS | plugin-fizzl | An action that checks a pasted or given Solana transaction before the agent signs it |
| Claude and other MCP agents | presign-guard-wallet-mcp | Paying x402 APIs in USDC on Solana (SOLANA_PRIVATE_KEY), checked and kept to your limits |
| Vercel AI SDK, LangChain, Python | presign-guard-ai-sdk, fizzl-langchain, fizzl | A check_solana_transaction tool the model calls before signing |
| Your own code | presign-guard-wallet | solanaSigner(signer, { any: true }) around any @solana/kit signer |
Solana Agent Kit in a few lines
import { Keypair } from '@solana/web3.js';
import { KeypairWallet, SolanaAgentKit } from 'solana-agent-kit';
import TokenPlugin from '@solana-agent-kit/plugin-token';
import { createKeyPairSignerFromBytes } from '@solana/kit';
import { wrapFetchWithPayment, x402Client } from '@x402/fetch';
import { ExactSvmScheme } from '@x402/svm/exact/client';
import { guardSolanaWallet, GuardPlugin } from 'presign-guard-solana-agent-kit';
const keypair = Keypair.fromSecretKey(secretKey);
// The agent's own Solana account pays the $0.01 checks, capped per payment.
const checkPayer = new x402Client().setSpendControls({ maxAmountPerPayment: '$0.05' });
checkPayer.register('solana:*', new ExactSvmScheme(await createKeyPairSignerFromBytes(keypair.secretKey)));
const wallet = guardSolanaWallet(new KeypairWallet(keypair, rpcUrl), {
pay: wrapFetchWithPayment(fetch, checkPayer),
limits: { tokens: { SOL: { perTx: '0.1', perDay: '0.5' }, USDC: { perDay: '20' } } },
});
const agent = new SolanaAgentKit(wallet, rpcUrl, {}).use(TokenPlugin).use(GuardPlugin);
GuardPlugin lets the agent see its own budget and pause itself when something looks wrong.
Metaplex agents
An agent in Metaplex's Agent Registry is an MPL Core asset with a wallet of its own. When it pays an x402 API, the asset's owner signs a Core Execute around a USDC transfer from that wallet, and the facilitator pays the fee. Check that transaction before the owner signs it, with from set to the owner:
// base64: the transaction Metaplex's x402 client built for the agent
const res = await pay('https://presign-guard.fizzl.eu/v1/check', {
method: 'POST', headers: { 'content-type': 'application/json' },
body: JSON.stringify({ type: 'solana', transaction: base64, from: owner }),
});
const { verdict, reasons } = await res.json();
// green, with METAPLEX_AGENT_PAYMENT: amount, mint and the seller it pays
What the agent's wallet would do is judged as if it signed itself: a payment is an info line (METAPLEX_AGENT_PAYMENT), a takeover of its token account is red, an unlimited approval or another program is orange. A DelegateExecution, which lets an executive such as Metaplex's Mech pay for the agent without asking each time, is orange until it is revoked. The simulation shows what leaves the agent's wallet too.
Fizzl on Solana
- presign-guard: checks every Solana transaction before signing, as above, and takes its $0.01 in USDC on Solana.
- Fizzl Agent Wallet connector: ChatGPT, Claude or Grok find a paid API and ask for the payment. You sign it in Phantom, Solflare or Backpack, in USDC on Solana, with no SOL needed for fees.
- x402 Doctor: the Trust Index counts the real USDC payments Solana sellers receive through a facilitator, as it does on Base, so an agent can see who actually gets paid before it pays.
- Fizzl Buy: one call buys the right paid API for your agent; pay its $0.02 in USDC on Solana or Base.
- Metaplex Agent Registry: x402 Doctor, presign-guard, Ichimoku Signal and Fizzl Buy are registered on Solana, linked both ways with their ERC-8004 entries on Base.
Cost
$0.01 per check, paid over x402 in USDC on Solana (or on Base, Monad, Polygon, Arbitrum, Avalanche, Algorand or Stellar; RLUSD on the XRP Ledger; USD₮0 on X Layer). Or prepaid: 100 checks for $0.80. The checks are free to try through the AI SDK, LangChain and Python tools: without a payer they answer with the free quick check, the verdict only.
More
- presign-guard: the API behind all of these, with every reason code
- Source on GitHub
- Want limits and approvals managed for you? The Fizzl agent wallet