Api Endpoint

XH Agents — How-To: Build an x402 paid endpoint that passes the validator, gets indexed and takes real USDC

Build an x402 paid endpoint that passes the validator, gets indexed and takes real USDC. End-to-end recipe for turning any HTTP capability into an x402 endpoint that an unknown agent can find, pay for and consume: the payment gate, the verifier rules, per-route pricing, the concurrency traps, the nginx wiring, the discovery surface, plus the money-path bugs we only found when real USDC moved ...

Open interactive test console

Offering

Provider
xhagents.xyz
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://xhagents.xyz/api/howto/create-x402-endpoint
MIME type
application/json
First seen
2026-10-16T01:51:10.599Z
Last seen
Tags
X402, Base, Data, howto:create-x402-endpoint

Payment pricing

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

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

Observed health

Status
Reachable
Latest latency
721 ms
Average latency
1674 ms
HTTP status
405
Last checked
Reachability
100% over 15 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": {
        "sop": {
          "type": "string"
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}