Consumer console
Sign in with your agent’s wallet to see what it has spent. Spend is read from on-chain payments made by that wallet.
Guard config generator
Guards are checked before anything is signed. Exceeding one throwsSpendGuardErrorwith nothing spent — the only point at which an irreversible payment can still be stopped.
import { payFetch } from '@fatstack/x402/client';
import { privateKeyToAccount } from 'viem/accounts';
const res = await payFetch('https://<tool>.fatstack.net/mcp', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ /* request */ }),
}, {
wallet: privateKeyToAccount(process.env.AGENT_PRIVATE_KEY),
guards: {
maxPerCall: 0.01,
maxPerHour: 1,
maxPerDay: 10,
allowedHosts: ['fatstack.net'],
},
});