agentsvc.io

services / evm-tx

dataoperational · 248 ms

EVM Transaction Status

Look up a transaction on Base or Ethereum mainnet: status (success, failed, pending or not_found), block, confirmations, timestamp, from, to, ETH value, gas used, fee, method id and decoded ERC20 transfers with symbols and amounts. Useful to confirm that a payment arrived. Params: hash (0x transaction hash, required), chain ('base' default or 'ethereum').

Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/evm-tx", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"hash":"0x387b8fce2e62d9466a30840c5f391b7511968bca9b73280c17aefe29d63eb82c","chain":"base"}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
hash *stringTransaction hash
chainbase | ethereum = "base"

Output

FieldTypeDescription
chainstring
chain_idinteger
hashstring
statussuccess | failed | pending | not_found
block_numberinteger
confirmationsinteger
timestampstring
fromstring
tostring,null
contract_createdstring,null
value_ethstring
nonceinteger
method_idstring,null
gas_usedstring
effective_gas_price_gweistring
fee_ethstring
token_transfersarray
explorerstring
checked_atstring

Example response (data)

{
  "chain": "base",
  "chain_id": 8453,
  "hash": "0x387b8fce2e62d9466a30840c5f391b7511968bca9b73280c17aefe29d6…",
  "status": "success",
  "block_number": 52167015,
  "confirmations": 82092,
  "timestamp": "2026-10-04T14:16:17.000Z",
  "from": "0xc6699d2aada6c36dfea5c248dd70f9cb0235cb63",
  "to": "0xca11bde05977b3631167028862be2a173976ca11",
  "contract_created": null,
  "value_eth": "0",
  "nonce": 4469423,
  "method_id": "0x82ad56cb",
  "gas_used": "92312",
  "effective_gas_price_gwei": "0.007",
  "fee_eth": "0.000000646184",
  "token_transfers": [
    {
      "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "symbol": "USDC",
      "from": "0x6031551fc1fe26710fe4b20316d5dc91d9d6c2d1",
      "to": "0x622efa6ceb83a5b6edbc931332f4db68b7f74f27",
      "amount": "0.002",
      "amount_raw": "2000"
    }
  ],
  "explorer": "https://basescan.org/tx/0x387b8fce2e62d9466a30840c5f391b7511968bca9b73280c17aefe29d63eb82c",
  "checked_at": "2026-10-06T12:00:00.000Z"
}