Give your agent a pouch, not your wallet.
Set a daily budget, a cap per payment, the payees it may pay and the line above which it has to ask you. Your USDG stays in your wallet until a payment passes every rule.
The agent key
STEP AA fresh key is made in this tab. It is not saved or sent anywhere. Copy it into your agent before you leave the page.
AGENT ADDRESS
PRIVATE KEY · give this to your agent only
This key can only spend inside the pouch rules. If it leaks, pause the pouch or revoke the key in one click.
The rules
STEP B · USDGDays reset at 00:00 UTC. Payments above the ask line wait in your queue until you approve them.
Who it may pay
STEP CAny address not on this list is refused by the contract. You can add or remove payees later.
Open it
STEP DThe approval is the most the contract can ever pull from your wallet. It goes down with every payment. Set it again tomorrow, or approve more days at once if you want.
Two functions. That's it.
pay sends USDG to an allowed payee when the amount is at or below your ask line. If any rule says no, the call reverts with the name of the rule, so the agent knows why.
request is for amounts above the line. It holds that amount of today's budget and waits for you in My pouches. You approve or drop it.
Errors it can get: NotPayee · OverPerPayment · OverDaily · AboveApprovalLine · PouchPaused · NotAgent · TransferFailed
Try it as the agent
RUNS IN THIS TABLoad the agent key you saved in step A. It stays in this tab only: it is not stored and not sent anywhere. Every payment is simulated first, so a payment the rules refuse never gets signed.
Pay works at or below the ask line. Request is for amounts above it: it waits for the owner in My pouches. Try a payee that is not on the list, or an amount above the cap, to watch the rules say no.