Skip to content
GET /v1/transaction

A transaction by hash

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/corn-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/corn-api/v1/transaction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/corn-api/v1/transaction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/corn-api/v1/transaction");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/corn-api/v1/transaction",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "transaction": {
            "to": "0x00000000000000000000000000000000000A4B05",
            "from": "0x00000000000000000000000000000000000A4B05",
            "hash": "0x5476f51f921c85f441a4be7611d493154773058c9273670129e093ecf17d0249",
            "type": 106,
            "block": 1634112,
            "nonce": 0,
            "method": "startBlock",
            "status": "ok",
            "fee_wei": "0",
            "fee_btcn": 0,
            "gas_used": 0,
            "gas_price": "500000",
            "timestamp": "2026-06-08T02:06:55.000000Z",
            "value_wei": "0",
            "value_btcn": 0,
            "confirmations": 1083
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:23.232Z",
        "request_id": "cb9c9988-8b12-48e3-b8f1-4331b9b7f522"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}