Api Endpoint

x402 Payment Header Decoder

Payment header decoder and x402 payment header debugger: paste an X-PAYMENT (v1) or PAYMENT-SIGNATURE (v2) header, get the decoded payload, recovered EIP-3009 signer, time-window check and a field-by-field match against the 402 requirements - find out why a payment was rejected. Pure compute. Payment settles only after a successful (2xx) response; input errors are never charged.

Open interactive test console

Offering

Provider
beggar-bot-demand.beggarbot.workers.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://beggar-bot-demand.beggarbot.workers.dev/v1/paymentheader
MIME type
application/json
First seen
2026-11-08T18:22:50.464Z
Last seen
Tags
payment header, X402, decode, debug payment, EIP-3009

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7"
  }
]

Observed health

Status
Healthy
Latest latency
123 ms
Average latency
188 ms
HTTP status
402
Last checked
Reachability
100% over 7 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "header": {
          "type": "string",
          "description": "base64 X-PAYMENT or PAYMENT-SIGNATURE value"
        },
        "requirements": {
          "type": "object",
          "description": "402 body / PAYMENT-REQUIRED header / accepts[]"
        },
        "now": {
          "type": "number",
          "description": "optional unix seconds"
        }
      },
      "required": [
        "header"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "payer": {
      "type": "string"
    },
    "value_usdc": {
      "type": "string"
    },
    "signature_check": {
      "type": "object"
    },
    "issues": {
      "type": "array",
      "description": "",
      "items": {
        "type": "string"
      }
    }
  }
}