Pay x402 gateways when the HTTP node meets one - #237
Merged
Conversation
…ient) The HTTP call node fetches through a paidFetch: with X402_PRIVATE_KEY set on the orchestrator, a 402 carrying an x402 offer is signed with the shared crawler wallet, the pass is filed by origin and presented on every later call to that site. Without the key it is the global fetch, unchanged. Capped at five dollars a payment. The client is listed in minimumReleaseAgeExclude because it was published today and pnpm 11 refuses packages younger than a day. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g
Contributor
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
ThreatCrush Security Scan9 finding(s) HIGH/CRITICAL: 5 | MEDIUM: 2 | LOW: 2
Snippets are redacted; ThreatCrush never prints matched credential material. |
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.
Wires @profullstack/x402-client into the HTTP call node's fetch. Env-gated on X402_PRIVATE_KEY (set on Railway), $5 cap, plain fetch when unset. vitest 132/132, node tests 258/258.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g