X402 Buyer

x402 v2 buyer-side client. Fetches any URL and, when the server answers 402 Payment Required with a PAYMENT-REQUIRED header, automatically signs a real EIP-3009 "exact" authorization with an EVM private key, retries with a PAYMENT-SIGNATURE header, and reports the PAYMENT-RESPONSE settlement result. Built to exercise OPL Shop's x402 support (DAV, SPARQL, OPAL and generic MPP endpoints) against the public Base Sepolia facilitator at https://x402.org/facilitator. Handles HTTP Digest/Basic auth layered underneath the payment layer, per-payment spend caps, self-signed TLS for local servers, and binary response bodies. Trigger on "pay for this URL with x402", "x402 buyer", "fetch this 402-protected resource", "settle a 402 challenge on Base Sepolia", or any request naming x402, EIP-3009, a PAYMENT-REQUIRED header, a facilitator settlement, or WebID-TLS/NetID-TLS against an x402-protected resource.

OpenLinkSoftware Updated

File contents

OpenLinkSoftware/ai-agent-skills/tree/main/x402-buyer commit fc813f69f6

Frequently asked questions

npx skillmds@latest add openlinksoftware/x402-buyer