Glyphcall
Company, compliance and checks3 free calls over HTTPFrom $0.01 per call · failed calls are never charged

Verify x402 payment terms: decode a 402 before paying

$0.01 per call · failed calls are never charged · no account needed: a card key or USDC

Verify the payment terms an x402 endpoint asks for before paying: decode its 402 requirements (price, network, asset, payTo, timeout) and score its listing quality. It reads the endpoint's terms and never looks at a payment already made; for that use x402_receipt. Never signs. Use to confirm what a paid endpoint will charge, and to whom, before calling it.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

Absolute public https URL of the paid endpoint, with any query it needs

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
url (required)stringAbsolute public https URL of the paid endpoint, with any query it needs

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/verify-x402-payment?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees"

Node.js

const r = await fetch("https://glyphtools.com/verify-x402-payment?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees", {
  headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header

Python

import requests

r = requests.get("https://glyphtools.com/verify-x402-payment?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()

Or one of your 3 free calls, no key — the same request with &trial=1 on the end:

curl "https://glyphtools.com/verify-x402-payment?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "url": "https://agent-data-tools.revmesh2074.workers.dev/btc-fees",
  "status": 402,
  "paywalled": true,
  "x402Version": 2,
  "resource": {
    "url": "https://agent-data-tools.revmesh2074.workers.dev/btc-fees",
    "description": "Current Bitcoin network fee rates… Use before sending a Bitcoin transaction…",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x…",
      "amountAtomic": "2000",
      "priceUsd": 0.002,
      "assetIsNativeUsdc": true,
      "maxTimeoutSeconds": 300
    }
  ],
  "checks": [
    {
      "check": "x402 payment requirements present",
      "pass": true
    }
  ],
  "score": 1
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is verify_x402_payment, and the first 10 successful calls are free:

https://glyphtools.com/mcp

Related tools