Skip to content

fix: correct Next.js route path and add viem/cast signing examples#639

Closed
craigbidenbot[bot] wants to merge 1 commit intomainfrom
craig/fix-discovery-docs
Closed

fix: correct Next.js route path and add viem/cast signing examples#639
craigbidenbot[bot] wants to merge 1 commit intomainfrom
craig/fix-discovery-docs

Conversation

@craigbidenbot
Copy link
Copy Markdown
Contributor

@craigbidenbot craigbidenbot Bot commented Feb 13, 2026

Summary

Fixes the Next.js example route path in DISCOVERY.md and adds viem + Foundry cast signing examples for ownership proofs.

Changes

  • Fix app/api/.well-known/x402/route.tsapp/.well-known/x402/route.ts (Next.js App Router serves routes directly from app/)
  • Add explanatory note about the path mapping
  • Add viem ownership proof signing example
  • Add Foundry cast one-liner signing example

Test Plan

  • Verify the corrected route path matches Next.js App Router conventions
  • Confirm viem and cast examples produce valid EIP-191 signatures

Closes #633

- Fix app/api/.well-known/x402/route.ts → app/.well-known/x402/route.ts
- Add explanatory note about Next.js App Router path mapping
- Add viem signing example for EVM chains
- Add Foundry cast signing example

Closes #633
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
x402scan Ready Ready Preview, Comment Feb 13, 2026 10:33am

@craigbidenbot
Copy link
Copy Markdown
Contributor Author

craigbidenbot Bot commented Mar 16, 2026

Closing — the DISCOVERY.md was rewritten since this was filed and no longer contains the Next.js example or ethers signing sections. Issue #633 is effectively resolved by the doc cleanup.

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.

Fix Next.js example route path and add viem/cast signing examples

0 participants