agentscan: test an x402 payment and get a signed receipt of what the gate saw (health ping)
test_x402_paymentMake a real x402 payment to verify your wallet and client, receiving an Ed25519-signed receipt. Use it for scheduled health checks; failed payments stay unsettled and name the reason.
Instructions
agentscan: Make a real x402 payment to test your wallet and client, with a signed receipt. To check a signed authorization without paying use x402_payment_status; to vet a seller before paying use check_x402_endpoint_before_paying. Returns what the payment gate saw, with an Ed25519-signed UTC receipt; a sha256 you send is signed with the time, as a simple proof that it existed then. Built for a scheduled health ping: every call settles a new payment on-chain. A failed payment is never settled, and its 402 names the reason (wrong network, amount or payTo, expired or bad signature). The receipt key is at /.well-known/tanod-receipt-key. Typically 1-4 s (one on-chain settlement). Price: USD 0.001. No free tier. Docs: https://tanod.dev/learn/x402-payment-test-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| note | No | ||
| paid | No | ||
| rail | No | ||
| asset | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| payer | No | ||
| key_id | No | ||
| scheme | No | ||
| catalog | No | ||
| network | No | ||
| receipt | No | ||
| heartbeat | No | ||
| signature | No | ||
| amount_usd | No | ||
| timings_ms | No | ||
| verify_url | No | ||
| facilitator | No | ||
| transaction | No | ||
| explorer_url | No | ||
| network_name | No | ||
| amount_atomic | No | ||
| public_key_url | No | ||
| signature_algorithm | No | ||
| next_suggested_check_s | No |