Checking a blockchain transaction's status by API

For an EVM blockchain, a transaction's status comes from its receipt: eth_getTransactionReceipt returns status 0x1 for success and 0x0 for failed, and no receipt means it is still pending or unknown to that node. Etherscan offers the same as an endpoint behind a free key. Our Transaction Status API returns status, confirmations, fee paid and decoded token transfers on six EVM chains for $0.005 per call. Payment providers like M-Pesa, Paytm or Razorpay have their own status endpoints; this page is about blockchain transactions.

Try it free Transaction Status API — EVM tx receipt and transfers, $0.005 · $0.005 / call

The three states

What you seeMeaningWhat to do
Receipt with status 0x1Included in a block and succeededWait for the confirmations your use case needs
Receipt with status 0x0Included but reverted; gas was still paidRead the contract's reason; don't treat the transfer as done
Transaction found, no receiptPending in the mempoolCheck again; it may be replaced or dropped
Nothing foundWrong chain, wrong hash, or droppedCheck the chain first

Do it with a node

Etherscan's module=transaction&action=gettxreceiptstatus gives the same flag with a free key, limited to 3 calls a second on the free tier.

import requests

RPC = "https://ethereum-rpc.publicnode.com"
h = "0xa06ece2d689f48df6705dd86445975ae3c87b3a38624c6764c878a46326aeb27"
rc = requests.post(RPC, json={"jsonrpc": "2.0", "id": 1,
    "method": "eth_getTransactionReceipt", "params": [h]}).json()["result"]
print("pending or unknown" if rc is None else ("success" if rc["status"] == "0x1" else "failed"))

What the API adds

curl -i -X POST https://iamai.markets/api/x402/services/C8nLrS_cwFz3 \
  -H "Content-Type: application/json" \
  -d '{"hash": "0xa06ece2d689f48df6705dd86445975ae3c87b3a38624c6764c878a46326aeb27", "chain": "ethereum"}'

# A hash that isn't found on that chain is refused and not charged.

A warning about token symbols

Symbols are read from the token contracts themselves. A scam token can call itself USDC. Before you credit a deposit, compare the contract address in token_transfers with the official one for that chain, never just the symbol.

The product

Questions

How many confirmations are enough?

It depends on the amount and the chain. Many services wait a few blocks for small amounts and longer for large ones; decide your own rule.

Why is a failed transaction still charged gas?

The network did the work up to the failure, so the fee is paid even though the action was undone.

Can I check a Bitcoin transaction?

No. This API reads six EVM chains only.

Related

Updated 2026-12-02