Attest
by Attest a settled call on Base in Onchain & crypto
Write an on-chain attestation (Ethereum Attestation Service on Base) that binds a call you paid for to the bytes you received: the tool slug, sha256 of the JSON response, the settlement chain and transaction, the payer, the time served and the price, signed by this server's wallet. Give it the settlement transaction from the PAYMENT-RESPONSE (or Payment-Receipt) header of any settled call; the attestation UID and its public page on base.easscan.org come back.
https://agent402.tools/api/attest- Price
- $0.05
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 286 ms
- 407 ms slowest 5%
- Last check
- Passed
- 3 h ago, next any minute now
Reliability
How to call it
POST https://agent402.tools/api/attest
Each call costs $0.05 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://agent402.tools/api/attest
content-type: application/json
{
"tx": "0x2f1fecade9bd945e7817c11e5a34cafe6b349dd8c92a7587efed1de476bddfeb"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tx | string | Yes | Settlement transaction of a call you paid for, as carried in that response's PAYMENT-RESPONSE (x402) or Payment-Receipt (MPP) header: EVM hash, Solana or Stellar signature, or Algorand id. |
Example response
The provider's example. We can't check it without paying.
Example response, 26 lines
{
"attestTx": "0x9c8b7a6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b",
"attestationUrl": "https://base.easscan.org/attestation/view/0x5b4d0c1e8f7a4c2d9e0b6a3f1c8d7e6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d",
"attester": "0xa11ce0000000000000000000000000000000a402",
"block": "50829611",
"chain": "eip155:8453",
"data": {
"payer": "0xb0b0000000000000000000000000000000000b0b",
"priceUsd": 0.01,
"responseSha256": "0x7d2a9b1c4e6f8a0b2c4d6e8f0a1b3c5d7e9f1a3b5c7d9e1f3a5b7c9d1e3f5a7b",
"servedAt": "2026-09-03T15:16:06.000Z",
"settlementNetwork": "eip155:8453",
"settlementTx": "0x2f1fecade9bd945e7817c11e5a34cafe6b349dd8c92a7587efed1de476bddfeb",
"slug": "crypto-price"
},
"eas": "0x4200000000000000000000000000000000000021",
"existing": false,
"schema": "string slug,bytes32 responseSha256,string settlementNetwork,string settlementTx,string payer,uint64 servedAt,uint64 priceMicroUsd",
"schemaUid": "0x2a4e6c8d0f1b3a5c7e9d1f3b5a7c9e1d3f5b7a9c1e3d5f7b9a1c3e5d7f9b1a3c",
"uid": "0x5b4d0c1e8f7a4c2d9e0b6a3f1c8d7e6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d",
"verify": {
"attestation": "fetch the UID on https://base.easscan.org (or read EAS 0x4200000000000000000000000000000000000021 on Base): attester must be this server's wallet, schema must match",
"payment": "follow settlementTx on eip155:8453: the payer paid this server's payTo",
"responseDigest": "sha256 over the exact JSON bytes you received for that call; compare with responseSha256"
}
}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.05.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agent402.tools/api/attest' \
-H 'content-type: application/json' \
--data-raw '{"tx":"0x2f1fecade9bd945e7817c11e5a34cafe6b349dd8c92a7587efed1de476bddfeb"}'
# 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://agent402.tools/api/attest' \
-H 'content-type: application/json' \
--data-raw '{"tx":"0x2f1fecade9bd945e7817c11e5a34cafe6b349dd8c92a7587efed1de476bddfeb"}' \
| 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.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
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.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fattest&method=POST
const res = await pay("https://agent402.tools/api/attest", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"tx": "0x2f1fecade9bd945e7817c11e5a34cafe6b349dd8c92a7587efed1de476bddfeb"
}),
});
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.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://agent402.tools/api/attest",
json={
"tx": "0x2f1fecade9bd945e7817c11e5a34cafe6b349dd8c92a7587efed1de476bddfeb",
},
)
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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 323 ms | $0.05 |
| 8 h ago | Passed | 402 | 200 ms | $0.05 |
| 12 h ago | Passed | 402 | 274 ms | $0.05 |
| 16 h ago | Passed | 402 | 344 ms | $0.05 |
| 20 h ago | Passed | 402 | 320 ms | $0.05 |
Show 10 older checks
| 25 h ago | Passed | 402 | 449 ms | $0.05 |
| 29 h ago | Passed | 402 | 278 ms | $0.05 |
| 33 h ago | Passed | 402 | 407 ms | $0.05 |
| 37 h ago | Passed | 402 | 286 ms | $0.05 |
| 41 h ago | Passed | 402 | 249 ms | $0.05 |
| 44 h ago | Passed | 402 | 248 ms | $0.05 |
| 2 days ago | Passed | 402 | 192 ms | $0.05 |
| 2 days ago | Passed | 402 | 197 ms | $0.05 |
| 2 days ago | Passed | 402 | 196 ms | $0.05 |
| 2 days ago | Passed | 402 | 314 ms | $0.05 |