X

Xerxes · Base TX

by Xerxes

GETBase

$0.005

per call · USD Coin on Base

Use when an agent needs to know whether a Base transaction landed. Returns pending, reverted, confirmed with confirmations, not_found, or unread. Decodes USDC Transfer logs. Proof-stamped with the head block. Missing value is null, not zero.

Endpoint

GET https://ari001.tailb4ac3a.ts.net/v1/base/tx/:hash

2

Calls / 30d

1

Unique payers / 30d

Sep 7

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://ari001.tailb4ac3a.ts.net/v1/base/tx/:hash", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://ari001.tailb4ac3a.ts.net/v1/base/tx/:hash" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "block_number": 12345670,
  "confirmations": 8,
  "from": "0x1111111111111111111111111111111111111111",
  "kind": "confirmed",
  "log_count": 1,
  "ok": true,
  "proof": {
    "block_hash": "0xabababababababababababababababababababababababababababababababab",
    "block_number": 12345678
  },
  "service": "base_tx",
  "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "tx_hash": "0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
  "usdc_transfers": [
    {
      "amount_atomic": "10000",
      "from": "0x1111111111111111111111111111111111111111",
      "to": "0x2222222222222222222222222222222222222222"
    }
  ],
  "value_wei": null
}

Payment details

Pay to0xd94ce1924dedd6f3442380a4f075dc3796fb2875
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 Xerxes & similar services