vet402-check
v0.2.0Before your agent pays an x402 API, check if vet402 bought it with its own money and what came back.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_before_paying Look an x402 or MPP seller up in vet402's public record
Give the URL you are about to pay (and, if you have them, the chain and the payTo from the 402). Returns what vet402's public record holds about that seller: how many purchases vet402 made with its own money on Solana, Tempo, Base or Algorand, how many settled, how many came back with an answer, the newest purchase with its tx, the failures counted against the seller and the ones that are not, the grade as vet402 prints it (measuring while there are too few purchases), the signed records published for that seller, and whether the payTo matches one vet402 recorded. If vet402 has no record of th…
| Parameter | Type | Description |
|---|---|---|
url * | string | The resource URL about to be paid |
amount | string | The amount in the 402, in atomic units; compared with what vet402 paid for this URL (reason price_jump) |
asset | string | The asset in the 402 (mint or token address); compared with the assets vet402 paid this seller in (reason asset_unseen) |
chain | string | solana, tempo, base, algorand, or a CAIP-2 id such as eip155:8453 |
explain | boolean | Also list the purchases the answer rests on, with date and tx |
pay_to | string | The payTo (recipient) in the 402 you hold |
verify_newest_record | boolean | Also verify the newest signed record of this seller (signature, Merkle proof, payment and anchor on chain) |
verify_record Verify one vet402 signed record
Give a record id (obs_YYYY-MM-DD_NNNNNN) or the https URL of a published record. Checks, without taking vet402's word for it: the bytes are the ones the records index lists, the signer is a vet402 observation key, the EIP-712 signature, that the verdict follows from the recorded checks, the Merkle proof to the day's root, the payment on chain over public RPC, and the day's root in a Solana memo sent by vet402's anchor wallet. Result: OK, OK_NOT_ANCHORED, OK_OFFLINE or FAIL, with one line per check.
| Parameter | Type | Description |
|---|---|---|
record * | string | Record id (obs_2026-09-28_000164) or https URL of a record JSON |
offline | boolean | Skip the reads from chain (payment and anchor) |
diagnose_failed_payment Diagnose an x402 payment that brought no answer
Give the transaction of a payment you made (a Solana signature or a Base tx hash), the URL you paid and, if you have it, the HTTP status the seller answered. Reads the payment from public RPC (settled or not, payTo, amount, asset, time) and puts it next to vet402's own purchases from the same seller on the same chain within 24 hours. Returns fault: seller_side, facilitator_side, buyer_side or undetermined, with reasons. seller_side needs a settled payment to a payTo vet402 paid this seller, a status vet402's rules put on the seller, and vet402's own paid purchases in the window failing too wit…
| Parameter | Type | Description |
|---|---|---|
tx * | string | Solana transaction signature or Base tx hash of the payment |
url * | string | The URL that was paid |
chain | string | solana or base (default: from the shape of tx) |
status | integer | The HTTP status the seller answered after the payment |