Turn any API endpoint into a per-request paywall with x402. This walkthrough shows the MERCHANT (seller) side: how to charge callers ┠including AI agents ┠in USDC per request, without building billing or holding keys. With the Crypto APIs merchant SDK you get: ⢠Drop-in middleware for Express, Hono & Next.js ⢠A zero-dependency, non-custodial merchant SDK (@cryptoapis-io/x402-merchant-sdk) ⢠A managed facilitator that verifies signatures and settles onchain with its own gas wallet ⢠Endpoints: POST /verify (validate a signed payment) and POST /settle (verify + broadcast) ⢠Settlement-quota headers so you can watch your billing cycle in real time You never touch a private key. The client signs locally; you just verify and settle. 𔖠x402 for merchants: https://cryptoap




Leave a Reply