81trust / 100

Onchain Tx

by dt0ur.online in Onchain & crypto

x402 APIPassing, checked 30 min ago

Look up a transaction by hash on base, ethereum, arbitrum, optimism, polygon, bsc: status (success/reverted/pending), block and timestamp, from/to, value, gas used, fee in native coin and USD, method selector, created contract, and decoded ERC-20 transfers with token symbols and amounts. Transaction and receipt in one call.

POST https://dt0ur.online/api/onchain/tx

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
198 ms typical, 198 ms slowest 5%
Last check
30 min ago
Next check
in 2 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://dt0ur.online/api/onchain/tx" \
  -H "content-type: application/json" \
  -d '{"chain":"base","hash":"0xbd2b9153f647df47169f5819e4571b84f0012954b862e549eb94f1b6cc8c8656"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdt0ur.online%2Fapi%2Fonchain%2Ftx
const res = await pay("https://dt0ur.online/api/onchain/tx", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"base","hash":"0xbd2b9153f647df47169f5819e4571b84f0012954b862e549eb94f1b6cc8c8656"}),
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "hash": "0xbd2b9153f647df47169f5819e4571b84f0012954b862e549eb94f1b6cc8c8656"
}

Example output

{
  "block_number": 51558388,
  "chain": "base",
  "contract_created": null,
  "effective_gas_price_gwei": 0.00505,
  "explorer_url": "https://basescan.org/tx/0xbd2b9153f647df47169f5819e4571b84f0012954b862e549eb94f1b6cc8c8656",
  "fee": 4.357039e-7,
  "fee_usd": 0.0012,
  "found": true,
  "from": "0xCA5e87f82B3FA093800e6ad67D621A427D79c70D",
  "gas_used": 86278,
  "hash": "0xbd2b9153f647df47169f5819e4571b84f0012954b862e549eb94f1b6cc8c8656",
  "log_count": 2,
  "method_selector": "0xe3ee160e",
  "nonce": 1531122,
  "status": "success",
  "timestamp": "2026-09-20T12:08:43.000Z",
  "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "token_transfers": [
    {
      "amount": 0.05,
      "amount_raw": "50000",
      "from": "0xc9c7b38C0942914fC8EA12063BC92dcd3b581670",
      "symbol": "USDC",
      "to": "0x7f520c845d5Dc5e51a27699A1f098dc13Aa789b7",
      "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    }
  ],
  "value": 0,
  "value_symbol": "ETH"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
30 min agoPassed402465 ms$0.01
6 h agoPassed402198 ms$0.01