Pay Test
by Tanod agentscan in Onchain & crypto
agentscan (Tanod) x402 payment test and health ping: what the gate saw (payer, network, tx, timings) and an Ed25519-signed UTC receipt. Use when an agent must test that its wallet and x402 client can pay, or health-ping on a schedule, with a signed receipt.
POST https://tanod.dev/v1/x402/pay-test
Last 30 days
Status and outage history · Atom feed
- Uptime
- 93.3%
- Response time
- 408 ms typical, 1.1 s slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
POST https://tanod.dev/v1/x402/pay-test
Each call costs $0.001 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://tanod.dev/v1/x402/pay-test
content-type: application/json
{}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sha256 | string or null | No | Optional: a SHA-256 hash as 64 hex characters. It is signed together with the time, as a simple proof that something with this hash existed then. Default: null. |
Example response
The provider's example. We can't check it without paying.
Example response, 50 lines
{
"amount_atomic": "1000",
"amount_usd": "0.001",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"catalog": {
"human": "https://tanod.dev/pricing/",
"llms_txt": "https://api.tanod.dev/llms.txt",
"note": "Tanod: pay-per-call tools for agents, most USD 0.001-0.02, paid in USDC over x402.",
"openapi": "https://api.tanod.dev/openapi.json",
"x402_discovery": "https://api.tanod.dev/.well-known/x402"
},
"explorer_url": "https://basescan.org/tx/0xabababababababababababababababababababababababababababababababab",
"facilitator": {
"name": "payai",
"url": "https://facilitator.payai.network"
},
"heartbeat": {
"cost_usd": "0.001",
"note": "Safe to call on a schedule as a health ping.",
"safe_to_schedule": true
},
"key_id": "0123456789abcdef",
"network": "eip155:8453",
"network_name": "base",
"next_suggested_check_s": 300,
"note": "The receipt shows what Tanod's gate saw.",
"ok": true,
"paid": true,
"payer": "0x1111111111111111111111111111111111111111",
"public_key_url": "https://api.tanod.dev/.well-known/tanod-receipt-key",
"rail": "x402",
"receipt": {
"amount_atomic": "1000",
"issued_at": "2026-10-11T09:00:00Z",
"network": "eip155:8453",
"payer": "0x1111111111111111111111111111111111111111",
"sha256": null,
"tx": "0xabababababababababababababababababababababababababababababababab",
"v": 1
},
"scheme": "exact",
"signature": "base64-ed25519-signature",
"signature_algorithm": "Ed25519",
"timings_ms": {
"settle": 1900,
"verify": 180
},
"transaction": "0xabababababababababababababababababababababababababababababababab",
"verify_url": "https://api.tanod.dev/v1/x402/pay-test/verify"
}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.001.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/x402/pay-test' \
-H 'content-type: application/json' \
--data-raw '{}'
# 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://tanod.dev/v1/x402/pay-test' \
-H 'content-type: application/json' \
--data-raw '{}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: 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.001 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.001" });
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.001 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fx402%2Fpay-test&method=POST
const res = await pay("https://tanod.dev/v1/x402/pay-test", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}),
});
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.001 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.001"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tanod.dev/v1/x402/pay-test",
json={},
)
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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 395 ms | $0.001 |
| 8 h ago | Expected HTTP 402, got 502 | 502 | 1.5 s | - |
| 11 h ago | Passed | 402 | 370 ms | $0.001 |
| 15 h ago | Passed | 402 | 1.0 s | $0.001 |
| 19 h ago | Passed | 402 | 408 ms | $0.001 |
| 23 h ago | Passed | 402 | 1.1 s | $0.001 |
| 27 h ago | Passed | 402 | 1.1 s | $0.001 |
| 30 h ago | Passed | 402 | 396 ms | $0.001 |
| 34 h ago | Passed | 402 | 860 ms | $0.001 |
| 38 h ago | Passed | 402 | 808 ms | $0.001 |
| 41 h ago | Passed | 402 | 345 ms | $0.001 |
| 45 h ago | Passed | 402 | 811 ms | $0.001 |
| 2 days ago | Passed | 402 | 827 ms | $0.001 |
| 2 days ago | Passed | 402 | 350 ms | $0.001 |
| 3 days ago | Passed | 402 | 268 ms | $0.001 |