Api Endpoint

x402 tools

Generate QR codes for text, URLs, or Web3 payment requests (EIP-681 / Solana Pay). Supports PNG, SVG, JSON output with dataUri, custom colors, and batching. Flat $0.002 per call.

Open interactive test console

Offering

Provider
x402-tools-production-2755.up.railway.app
Method
GET
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://x402-tools-production-2755.up.railway.app/tools/qr
MIME type
image/png
First seen
2026-10-16T01:51:20.002Z
Last seen
Tags
None supplied

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
128 ms
Average latency
426 ms
HTTP status
402
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": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "data": {
          "type": "string",
          "description": "Text or URL to encode (max 2000 chars)"
        },
        "datas": {
          "type": "string",
          "description": "Batch: up to 10 comma-separated strings to encode (returns JSON with dataUris)"
        },
        "pay": {
          "type": "string",
          "enum": [
            "usdc",
            "eth",
            "sol"
          ],
          "description": "Generate a Web3 payment-request QR code"
        },
        "to": {
          "type": "string",
          "description": "Payment recipient address (0x for EVM, base58 for Solana)"
        },
        "amount": {
          "type": "string",
          "description": "Payment amount in token/coin units (e.g. 5 or 0.1)"
        },
        "chain": {
          "type": "string",
          "enum": [
            "base",
            "ethereum",
            "arbitrum",
            "optimism",
            "polygon",
            "solana"
          ],
          "description": "Chain for payment request. Default: base for usdc/eth, solana for sol"
        },
        "format": {
          "type": "string",
          "enum": [
            "png",
            "svg"
          ],
          "description": "Default: png"
        },
        "output": {
          "type": "string",
          "enum": [
            "raw",
            "json"
          ],
          "description": "Default: raw for single data, json for batch or when requested"
        },
        "size": {
          "type": "string",
          "description": "Width in px, 64-2048, default 512"
        },
        "ecc": {
          "type": "string",
          "enum": [
            "L",
            "M",
            "Q",
            "H"
          ],
          "description": "Error correction level, default M"
        },
        "margin": {
          "type": "string",
          "description": "Quiet zone in modules, 0-10, default 2"
        },
        "dark": {
          "type": "string",
          "description": "Hex color for dark modules, e.g. #000000 or 000000"
        },
        "light": {
          "type": "string",
          "description": "Hex color for background, e.g. #ffffff or ffffff"
        }
      }
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "amount": {
              "description": "Payment amount in token/coin units (e.g. 5 or 0.1)",
              "type": "string"
            },
            "chain": {
              "description": "Chain for payment request. Default: base for usdc/eth, solana for sol",
              "enum": [
                "base",
                "ethereum",
                "arbitrum",
                "optimism",
                "polygon",
                "solana"
              ],
              "type": "string"
            },
            "dark": {
              "description": "Hex color for dark modules, e.g. #000000 or 000000",
              "type": "string"
            },
            "data": {
              "description": "Text or URL to encode (max 2000 chars)",
              "type": "string"
            },
            "datas": {
              "description": "Batch: up to 10 comma-separated strings to encode (returns JSON with dataUris)",
              "type": "string"
            },
            "ecc": {
              "description": "Error correction level, default M",
              "enum": [
                "L",
                "M",
                "Q",
                "H"
              ],
              "type": "string"
            },
            "format": {
              "description": "Default: png",
              "enum": [
                "png",
                "svg"
              ],
              "type": "string"
            },
            "light": {
              "description": "Hex color for background, e.g. #ffffff or ffffff",
              "type": "string"
            },
            "margin": {
              "description": "Quiet zone in modules, 0-10, default 2",
              "type": "string"
            },
            "output": {
              "description": "Default: raw for single data, json for batch or when requested",
              "enum": [
                "raw",
                "json"
              ],
              "type": "string"
            },
            "pay": {
              "description": "Generate a Web3 payment-request QR code",
              "enum": [
                "usdc",
                "eth",
                "sol"
              ],
              "type": "string"
            },
            "size": {
              "description": "Width in px, 64-2048, default 512",
              "type": "string"
            },
            "to": {
              "description": "Payment recipient address (0x for EVM, base58 for Solana)",
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}