Transaction Lookup · Chain TX

by Transaction Lookup

POSTBase

$0.001

per call · USD Coin on Base

Look up a transaction on Base by hash. POST {"hash":"0x..."} and receive its status, block number, from and to addresses, value, gas used and effective gas price. Returns a clear not-found rather than an empty object when the hash is unknown.

Endpoint

POST https://x402-echo-service.onrender.com/chain/tx

1

Calls / 30d

1

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402-echo-service.onrender.com/chain/tx", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "hash": "0x962895f4b604ce745b6cd76e588d62fcf4fb59f9d6e67d0a17a7769f6ab15e4e"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402-echo-service.onrender.com/chain/tx" \
  -H "Content-Type: application/json" \
  -d '{"hash":"0x962895f4b604ce745b6cd76e588d62fcf4fb59f9d6e67d0a17a7769f6ab15e4e"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "blockNumber": 34500000,
  "found": true,
  "from": "0x368C…9716",
  "gasUsed": "64210",
  "hash": "0x9628…5e4e",
  "status": "success",
  "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "value": "0"
}

Payment details

Pay to0x9cc774a8ed49d89cba1a288f4a050b8f7fba77ee
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Transaction Lookup & similar services