Skip to content
Fourohtwo

utilpeek (Tanod) x402 listing lint

tanod.dev/v1/x402/lint

utilpeek (Tanod) x402 listing lint: description, resource URL, schema and payment fields checked, with a suggested description. Use when an agent must lint an x402 listing, or check which of a seller's routes the Bazaar lists, before publishing.

SolanaAnswering
POSThttps://tanod.dev/v1/x402/lint

Uptime100% of 5 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://tanod.dev/v1/x402/lint" \
  -d '{"listing":{"accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x209693Bc6afc0C5328bA36FaF03C514EF312287C","amount":"10000","scheme":"exact","network":"eip155:8453"}],"resource":{"url":"https://api.example.com/v1/weather","mimeType":"application/json","description":"Weather forecast for a city."},"x402Version":2}}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "listing": {
    "accepts": [
      {
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
        "amount": "10000",
        "scheme": "exact",
        "network": "eip155:8453"
      }
    ],
    "resource": {
      "url": "https://api.example.com/v1/weather",
      "mimeType": "application/json",
      "description": "Weather forecast for a city."
    },
    "x402Version": 2
  }
}

More from Tanod utilpeekProvider status