Skip to content

feat(go/http): add AVM paywall handler#2142

Open
wnjoon wants to merge 1 commit into
x402-foundation:mainfrom
wnjoon:feature/avm-paywall
Open

feat(go/http): add AVM paywall handler#2142
wnjoon wants to merge 1 commit into
x402-foundation:mainfrom
wnjoon:feature/avm-paywall

Conversation

@wnjoon
Copy link
Copy Markdown
Contributor

@wnjoon wnjoon commented Apr 27, 2026

Description

  • Add a built-in Go HTTP paywall handler for AVM / Algorand networks.
  • Wire algorand:* payment requirements to the generated AVMPaywallTemplate.
  • Include AVM coverage in the default paywall provider and paywall selection tests.

Changes

  • Added AVMPaywallHandler in go/http/paywall.go.
  • Updated DefaultPaywallProvider() to include EVM, SVM, and AVM handlers.
  • Updated legacy template selection so algorand:* networks render the AVM paywall template.
  • Added tests for AVM handler support and built-in AVM paywall fallback.
  • Added a Go changelog fragment.

Tests

cd go
go test ./http -run 'Paywall|AVM' -count=1
go test ./...

Checklist

  • [v] I have formatted and linted my code
  • [v] All new and existing tests pass
  • [v] My commits are signed (required for merge) -- you may need to rebase if you initially pushed unsigned commits
  • [v] I added a changelog fragment for user-facing changes (docs-only changes can skip)

Related: #2160 adds chain-aware faucet URL support across paywall templates. This PR complements it by wiring the existing AVM template into the Go HTTP paywall provider and network selector.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

@wnjoon is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go sdk Changes to core v2 packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant