JustineDevs/mandate402 — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a working MVP called Mandate402, a web console for teams that want to let AI agents make paid x402 requests without giving them unlimited access to a treasury.

The app should let an operator create a spending mandate, approve one valid payment attempt, block one bad attempt before money goes out, show the financial result with receipt evidence, and revoke the mandate afterward. It should feel like a command center with clear treasury status, mandate status, audit history, blocked attempts, and receipts.

Use Morph as the chain environment and keep the smart contract side focused on a mandate registry and treasury control. Include a local demo merchant flow so I can prove the whole loop without needing real external vendors yet. Make sure secrets stay in env files and add clear setup instructions so I can run the console, contracts, tests, and demo locally.

Look up current Morph, x402, and Pyth docs online if you need to.

Want more depth? Deep Reverse