Skip to content

x402 interop adapter: accept HTTP 402 payments from x402 clients #4

Description

@KryptosAI

Context

Coinbase's x402 (Apache-2.0) is becoming the convergence point for HTTP-native machine payments. ValuePacket's request/response payment-proof flow is architecturally adjacent: an adapter would let any x402 client pay a ValuePacket provider without knowing the channel protocol.

Proposed solution (spike first)

  • Map x402 X-PAYMENT header flow to ValuePacket PaymentProof verification in ChannelServer
  • Decide: thin header translation vs implementing an x402 facilitator backed by payment channels (amortized gas advantage is the pitch)
  • Deliverable: @valuepacket/adapter-x402 package + one demo service accepting both schemes

Acceptance criteria

  • Spike doc comparing the two integration shapes with a recommendation
  • Working demo: x402 client pays the price-feed service

Effort: ~3 days spike + build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions