Treasury agent that screens every x402 invoice payment with Intercepta; big ones need World ID
GuardPay is an autonomous treasury agent that pays tokenized supplier invoices over x402 on Base, with graduated trust for every payment.
Agents that move money are a new attack surface: swapped payout addresses, fake invoices, sanctioned counterparties, or a prompt-injected agent that signs whatever it is told. An agent that pays everything is a liability; one that asks a human about everything is useless.
How it works: a supplier issues an invoice as an NFT on Base Sepolia, naming our company as the payer. The agent detects the InvoiceIssued event, calls the supplier's x402 endpoint to get the 402 quote, and signs the EIP-3009 USDC authorization but keeps it in memory. Before anything is sent, it screens the payee address, the token and the signed authorization with the Intercepta API. A policy engine then decides:
Once paid, the facilitator settles USDC and the agent marks the invoice NFT paid with the settlement tx hash. Every decision, with its verdict, reason, approval and transaction, is shown on a live dashboard that animates each stage and streams the backend logs.
All paths have run live on Base Sepolia. For example, an invoice whose payout address was swapped to the Ronin exploiter wallet was refused (Intercepta toxicScore 100: known_scammer, sanction_address, blacklist), while a $2 invoice was paid only after a real approval through sandbox.auth.world.org.
TypeScript monorepo with four parts:
Contracts (Foundry, Solidity): InvoiceToken, an ERC-721 receivable. Suppliers issue invoices to a payer (the NFT is minted to the supplier, so it could be sold for invoice factoring); only the named payer can markPaid, which stores the x402 settlement tx hash on-chain.
Supplier x402 server (Express + @x402/express): POST /invoices/:id/pay is paywalled with dynamic price and payTo read per invoice from the chain, settled through the x402.org facilitator on Base Sepolia.
Treasury agent (Node, viem, @x402/fetch, jose):
Notable hacks and findings:

