Skip to content

Add x402-approval-guard example app#302

Closed
eltociear wants to merge 1 commit into
Merit-Systems:masterfrom
eltociear:add-approval-guard
Closed

Add x402-approval-guard example app#302
eltociear wants to merge 1 commit into
Merit-Systems:masterfrom
eltociear:add-approval-guard

Conversation

@eltociear

Copy link
Copy Markdown

A small, forkable x402 consumer example: before an agent signs an ERC20 approve(), it calls contract-guard (x402-fetch + viem, $0.005 USDC on Base) via check_approval to detect unlimited/risky allowances and block the signature. Demonstrates gating an on-chain agent action on a pay-per-use x402 check. MIT.

@shafu0x

shafu0x commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Merged via #377 — thanks for contributing!

@shafu0x shafu0x closed this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants