74trust / 100

Pay To Check

by x402 Pay-To Safety Check in Onchain & crypto

x402 APIPassing, checked 1 h ago

Screen a URL or wallet before paying an x402 endpoint. Use it when an agent is about to send USDC and wants safe, caution, or avoid. Buyer synonyms: x402 safety check, payTo screen, wallet risk, 402 price check, sanctions screen. A failed source is not a clean bill of health.

POST
https://tgw-mindset-api.fly.dev/pay-to-check
Price
$0.005
per call in USDC
Uptime
95.8%
last 30 days
Response time
388 ms
635 ms slowest 5%
Last check
Passed
1 h ago, next any minute now

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://tgw-mindset-api.fly.dev/pay-to-check

Each call costs $0.005 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://tgw-mindset-api.fly.dev/pay-to-check
content-type: application/json

{
  "address": "0x1111111111111111111111111111111111111111",
  "expected_price": "$0.01",
  "network": "eip155:8453",
  "url": "https://merchant.example.com/weather"
}

Parameters

ParameterTypeRequiredDescription
addressstringNoEVM payTo address.
expected_pricestringNoDollars you expect the endpoint to charge, such as $0.01.
networkstringNoExpected CAIP-2 network, such as eip155:8453.
pay_tostringNoAlias of address.
urlstringNohttp or https URL of an x402 endpoint. Private hosts are rejected.

Example response

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

Example response, 100 lines
{
  "checked_at": "2026-11-15T00:00:00.000Z",
  "contract": "tgw-pay-to-check-1",
  "disclaimer": "This pay-to screen is not a guarantee that an endpoint or wallet is safe to pay.",
  "limitations": [
    "This screen uses the live 402 response, public RDAP, the OFAC SDN digital-currency address list, a Base eth_getCode call, and Coinbase Bazaar search. It does not use a private threat feed.",
    "The URL is requested with GET. If that response is HTTP 404 or 405 and has no payment terms, one POST with an empty JSON object is tried.",
    "A failed source stays in the reasons. It is not filled in with a guess, and it keeps the verdict from being safe.",
    "A safe verdict is not a recommendation to pay, a compliance sign-off, or a promise that the endpoint will do what it says."
  ],
  "pay_to": {
    "address": "0x1111111111111111111111111111111111111111",
    "bazaar": {
      "calls_30d": 12,
      "error": null,
      "last_updated": "2026-11-01T00:00:00.000Z",
      "listed": true,
      "partial": false,
      "resources": 1
    },
    "bytecode_bytes": 0,
    "input_address": "0x1111111111111111111111111111111111111111",
    "kind": "eoa",
    "observed_address": "0x1111111111111111111111111111111111111111",
    "sanctions": {
      "addresses": [
        "0x1111111111111111111111111111111111111111"
      ],
      "checked": true,
      "error": null,
      "listed": false,
      "matches": [],
      "source": "ofac-sdn"
    }
  },
  "reasons": [
    {
      "code": "sanctions_clear",
      "detail": "The address was not on the cached OFAC SDN digital-currency list.",
      "severity": "info"
    },
    {
      "code": "payment_terms",
      "detail": "The endpoint asks for $0.01 on eip155:8453.",
      "severity": "info"
    },
    {
      "code": "price_matches_expected",
      "detail": "The live price is close to the expected price.",
      "severity": "info"
    },
    {
      "code": "price_near_bazaar",
      "detail": "The live price is near the Bazaar median $0.01 (n=5).",
      "severity": "info"
    },
    {
      "code": "domain_age",
      "detail": "The domain has been registered for 3240 days via Example Registrar.",
      "severity": "info"
    },
    {
      "code": "payto_eoa",
      "detail": "The payTo address has no bytecode, so it looks like an EOA.",
      "severity": "info"
    },
    {
      "code": "bazaar_listed",
      "detail": "Bazaar search returned 1 listing for this payTo, last updated 2026-11-01T00:00:00.000Z.",
      "severity": "info"
    }
  ],
  "resource": {
    "bazaar_median_usd": 0.01,
    "bazaar_sample": 5,
    "domain": "merchant.example.com",
    "domain_age_days": 3240,
    "expected_network": "eip155:8453",
    "expected_price_usd": 0.01,
    "http_status": 402,
    "registrar": "Example Registrar",
    "terms": {
      "amount": "10000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "network": "eip155:8453",
      "payTo": "0x1111111111111111111111111111111111111111",
      "price_usd": 0.01
    },
    "url": "https://merchant.example.com/weather"
  },
  "score": 100,
  "sources": {
    "bazaar": "ok",
    "payment_required": "ok",
    "rdap": "ok",
    "rpc": "ok",
    "sanctions": "ok"
  },
  "verdict": "safe"
}

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.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tgw-mindset-api.fly.dev/pay-to-check' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0x1111111111111111111111111111111111111111","expected_price":"$0.01","network":"eip155:8453","url":"https://merchant.example.com/weather"}'

# 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://tgw-mindset-api.fly.dev/pay-to-check' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0x1111111111111111111111111111111111111111","expected_price":"$0.01","network":"eip155:8453","url":"https://merchant.example.com/weather"}' \
  | 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.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
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.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftgw-mindset-api.fly.dev%2Fpay-to-check&method=POST
const res = await pay("https://tgw-mindset-api.fly.dev/pay-to-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "address": "0x1111111111111111111111111111111111111111",
    "expected_price": "$0.01",
    "network": "eip155:8453",
    "url": "https://merchant.example.com/weather"
  }),
});
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.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://tgw-mindset-api.fly.dev/pay-to-check",
        json={
            "address": "0x1111111111111111111111111111111111111111",
            "expected_price": "$0.01",
            "network": "eip155:8453",
            "url": "https://merchant.example.com/weather",
        },
    )
    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
1 h agoPassed402477 ms$0.005
11 h agoPassed402529 ms$0.005
21 h agoPassed402265 ms$0.005
32 h agoPassed402289 ms$0.005
45 h agoPassed402317 ms$0.005
Show 10 older checks
4 days agoTimed out---
5 days agoPassed402364 ms$0.005
6 days agoPassed402246 ms$0.005
6 days agoPassed402531 ms$0.005
6 days agoPassed402355 ms$0.005
7 days agoPassed402450 ms$0.005
7 days agoPassed402357 ms$0.005
7 days agoPassed402330 ms$0.005
8 days agoPassed402296 ms$0.005
8 days agoPassed402325 ms$0.005