agent-rpc

x402-protected demo endpoint

Returns HTTP 402 with x402 payment requirements when no payment header is present. When a payment header is present, returns a demo stub response without verifying settlement. Use this endpoint to inspect x402 negotiation; production paid endpoints live at x402.quicknode.com.

get/api/payments/x402/demo

Response

Demo stub response when a payment header is present.

okboolean required
messagestring required
docsstring uri required

Example response

{
  "ok": true,
  "docs": "https://www.quicknode.com/docs/build-with-ai/x402-payments"
}

Changes