W

Workers · Chain Receipt

by Workers

GETBase

$0.001

per call · USD Coin on Base

Transaction receipt by hash on Base mainnet: status, gas used, full logs, L1 fee breakdown, l1_fee_usd/total_fee_usd.

Endpoint

GET https://x402-data-api.sigrunner.workers.dev/chain/receipt

1

Calls / 30d

1

Unique payers / 30d

Aug 12

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-data-api.sigrunner.workers.dev/chain/receipt", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402-data-api.sigrunner.workers.dev/chain/receipt?hash=0x571284385ad512a3ffc984a6c2f335113ada217215b6296847944f9d0bc613ef" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "block_number": 48734000,
  "contract_address": null,
  "cumulative_gas_used": 75077,
  "effective_gas_price_wei": "49851573",
  "from": "0xd80217bd14c4d4a4fe37bb1354be1830ed815a60",
  "gas_used": 28859,
  "l1_fee_usd": 0.00000214,
  "l1_fee_wei": "1158985140",
  "l1_gas_price_wei": "116776985",
  "l1_gas_used": 1600,
  "logs": [],
  "logs_count": 0,
  "status": 1,
  "to": "0x6211a3742cf9d3b6677ecc7fd9dd102ab101d8e2",
  "total_fee_usd": 0.0026591,
  "tx_hash": "0x571284385ad512a3ffc984a6c2f335113ada217215b6296847944f9d0bc613ef"
}

Payment details

Pay to0x5765ae06a52dc7a0bb71c36a11db512c7ea9ed10
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 Workers & similar services