Repository navigation
feat: /crawl day-pass endpoint and /hooks/coinpay webhook - #1
Merged
Merged
Conversation
With COINPAY_X402_KEY + CRAWL_PAY_TO set, callers over the free limit get a 402 offering a $1 day pass; /crawl now serves the gateway's sales page and settle endpoint instead of a 404. The CoinPay business webhook is acknowledged at /hooks/coinpay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/crawl: the x402 gateway's day-pass sales page and settle endpoint (paid tier, only whenCOINPAY_X402_KEYandCRAWL_PAY_TOare set)./hooks/coinpay: acknowledges CoinPay business webhook events (business made by coinpay-onboard points here).Tested locally with the real scoped key and RATE_LIMIT_PER_MIN=3: 200 200 200 402 402, x402 offer for 1 USDC on Base, a second caller still 200,
/crawl402,/hooks/coinpay204.pnpm test17 pass.🤖 Generated with Claude Code