72trust / 100

Diagnose

by x402-endpoint-diagnostics in Markets & finance

x402 APIPassing, checked 6 h ago

Why an x402 endpoint fails to charge or appear in the Bazaar: verifies the 402 (version, CAIP-2 network, currency, payTo, amount, window) and the discovery listing without paying. Score, findings with fixes, signed receipt. / Por qué un endpoint x402 no cobra o no aparece en el Bazaar: verifica el 402 (versión, red CAIP-2, moneda, destino, importe, ventana) y la ficha de discovery sin pagar. Puntuación, hallazgos con arreglo y recibo firmado.

POST
https://agente.revenuerecoveryai.app/v1/x402/diagnose
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
458 ms
505 ms slowest 5%
Last check
Passed
6 h ago, next in 23 min

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://agente.revenuerecoveryai.app/v1/x402/diagnose

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://agente.revenuerecoveryai.app/v1/x402/diagnose
content-type: application/json

{
  "modo": "completo",
  "url": "https://api.ejemplo.com/v1/datos"
}

Parameters

ParameterTypeRequiredDescription
incluir_recibobooleanNoAdjunta un recibo firmado con el que verificar el informe. Default: true.
modostringNo'completo' sondea GET, POST y el ejemplo declarado. 'rapido' solo hace la llamada mínima. One of: rapido, completo. Default: "completo".
payment_requiredstring or object or nullNoAlternativa sin red: el contenido de la cabecera Payment-Required (base64 o JSON ya decodificado) de un 402 que ya capturaste. Más rápido y no toca el endpoint. Default: null.
urlstring or nullNoURL del endpoint x402 a diagnosticar. Se le llama SIN pagar. Debe ser pública: las direcciones internas se rechazan. Default: null.

Example response

The provider's example. We can't check it without paying.

Example response, 60 lines
{
  "analysis_mode": "live_probe",
  "elapsed_ms": 640,
  "findings": [
    {
      "detail": "La ficha no declara input.method. El validador la rechaza y el servicio NO se indexa.",
      "remediation": "Añade 'method' dentro de info.input con el verbo de la ruta.",
      "rule_id": "BZR-002",
      "severity": "ERROR",
      "title": "Declara el método HTTP en la ficha"
    }
  ],
  "grade": "B",
  "observed": {
    "amount": "10000",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "http_status": 402,
    "http_status_get": 405,
    "latency_ms": 210,
    "network": "eip155:8453",
    "pay_to": "0x0000000000000000000000000000000000000001",
    "scheme": "exact",
    "url": "https://api.ejemplo.com/v1/datos",
    "x402_version": 2
  },
  "receipt": {
    "algorithm": "Ed25519",
    "endpoint": "/v1/x402/diagnose",
    "input_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
    "issued_at": "2026-08-06T12:00:00+00:00",
    "output_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
    "request_id": "00000000-0000-0000-0000-000000000000",
    "rule_pack_version": "2026.08.07.1",
    "signature": "...",
    "signed": true,
    "verification_key_id": "ajk_0000000000000000"
  },
  "recommended_actions": [
    {
      "action": "Añade 'method' dentro de info.input con el verbo de la ruta.",
      "rule_id": "BZR-002",
      "severity": "ERROR",
      "title": "Declara el método HTTP en la ficha"
    }
  ],
  "report_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
  "rule_pack_version": "2026.08.07.1",
  "rule_packs_applied": {
    "bazaar": 11,
    "x402": 11
  },
  "score": 82,
  "summary": {
    "errors": 1,
    "info": 0,
    "passed": 18,
    "unknown": 0,
    "warnings": 2
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agente.revenuerecoveryai.app/v1/x402/diagnose' \
  -H 'content-type: application/json' \
  --data-raw '{"modo":"completo","url":"https://api.ejemplo.com/v1/datos"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://agente.revenuerecoveryai.app/v1/x402/diagnose' \
  -H 'content-type: application/json' \
  --data-raw '{"modo":"completo","url":"https://api.ejemplo.com/v1/datos"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagente.revenuerecoveryai.app%2Fv1%2Fx402%2Fdiagnose&method=POST
const res = await pay("https://agente.revenuerecoveryai.app/v1/x402/diagnose", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "modo": "completo",
    "url": "https://api.ejemplo.com/v1/datos"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://agente.revenuerecoveryai.app/v1/x402/diagnose",
        json={
            "modo": "completo",
            "url": "https://api.ejemplo.com/v1/datos",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 h agoPassed402429 ms$0.01
16 h agoPassed402463 ms$0.01
26 h agoPassed402498 ms$0.01
36 h agoPassed402484 ms$0.01
46 h agoPassed402434 ms$0.01
Show 10 older checks
2 days agoPassed402463 ms$0.01
3 days agoPassed402472 ms$0.01
3 days agoPassed402438 ms$0.01
3 days agoPassed402395 ms$0.01
3 days agoPassed402458 ms$0.01
3 days agoPassed402458 ms$0.01
3 days agoPassed402483 ms$0.01
4 days agoPassed402435 ms$0.01
4 days agoPassed402458 ms$0.01
4 days agoPassed402470 ms$0.01