---
title: "Get transaction by hash"
method: GET
path: "/v4/data/blockchains/transaction"
tags: ["Blockchains API"]
---

# Get transaction by hash

`GET /v4/data/blockchains/transaction`

/v4/data/blockchains/transaction

**10 credits per API call**

Get a transaction by hash. Response shape differs by chain (EVM-style vs UTXO-style). Bitcoin Cash (bch-mainnet, bch-testnet) returns the raw node transaction format (see UtxoRawTransaction).

## Query parameters

- `chain` 'algorand-mainnet-algod' | 'algorand-testnet-algod' | 'arb-one-mainnet' | 'arb-testnet' | 'avax-mainnet' | 'avax-testnet' | 'base-mainnet' | 'base-sepolia' | 'bch-mainnet' | 'bch-testnet' | 'berachain-mainnet' | 'bitcoin-mainnet' | 'bitcoin-testnet' | 'bsc-mainnet' | 'bsc-testnet' | 'cardano-mainnet' | 'cardano-preprod' | 'celo-mainnet' | 'celo-testnet' | 'chiliz-mainnet' | 'cro-mainnet' | 'cro-testnet' | 'doge-mainnet' | 'doge-testnet' | 'egld-mainnet' | 'egld-testnet' | 'ethereum-classic-mainnet' | 'ethereum-classic-testnet' | 'ethereum-mainnet' | 'ethereum-sepolia' | 'fantom-mainnet' | 'fantom-testnet' | 'flare-coston' | 'flare-coston2' | 'flare-mainnet' | 'flare-songbird' | 'kcs-mainnet' | 'kcs-testnet' | 'klaytn-baobab' | 'klaytn-cypress' | 'litecoin-mainnet' | 'litecoin-testnet' | 'monad-mainnet' | 'monad-testnet' | 'one-mainnet-s0' | 'one-testnet-s0' | 'optimism-mainnet' | 'optimism-testnet' | 'polygon-amoy' | 'polygon-mainnet' | 'ripple-mainnet' | 'ripple-testnet' | 'solana-devnet' | 'solana-mainnet' | 'sonic-blaze' | 'sonic-mainnet' | 'stellar-mainnet' | 'stellar-testnet' | 'tron-mainnet' | 'tron-testnet' | 'unichain-mainnet' | 'unichain-sepolia' | 'vechain-mainnet' | 'vechain-testnet' | 'xdc-mainnet' | 'xdc-testnet' | 'zcash-mainnet' | 'zcash-testnet' | 'gno-mainnet' | 'gno-testnet' | 'zksync-mainnet' | 'zksync-testnet' | 'rsk-mainnet' | 'rsk-testnet' | 'lisk-mainnet' | 'lisk-testnet', required
- `hash` string, required

## Response `200`

OK

- union
  - EVMTransaction — Generic EVM-style transaction object (Ethereum, BSC, Polygon, etc.); exact properties depend on chain.
    - `hash` string
    - `transactionHash` string — Same as hash (for receipt merge).
    - `blockHash` string
    - `blockNumber` integer
    - `from` string
    - `to` string, nullable
    - `value` string — Value in native units (wei-like).
    - `gas` integer
    - `gasPrice` string
    - `maxFeePerGas` integer, nullable
    - `maxPriorityFeePerGas` integer, nullable
    - `nonce` integer
    - `transactionIndex` integer
    - `input` string — Input data hex.
    - `type` integer — Transaction type (0=legacy, 1=EIP-2930, 2=EIP-1559).
    - `accessList` unknown[] — Access list (EIP-2930/EIP-1559).
      - unknown
    - `chainId` integer, nullable
    - `yParity` string — Recovery id (0x0 or 0x1).
    - `gasUsed` integer, nullable
    - `effectiveGasPrice` integer, nullable
    - `cumulativeGasUsed` integer
    - `contractAddress` string, nullable — Created contract address (for contract creation txs).
    - `status` boolean — true if tx succeeded.
    - `logsBloom` string — Bloom filter for logs.
    - `logs` object[] — Event logs (when merged with receipt).
      - `address` string
      - `topics` string[]
      - `data` string
      - `blockNumber` integer
      - `transactionHash` string
      - `transactionIndex` integer
      - `blockHash` string
      - `logIndex` integer
      - `removed` boolean — true when log was removed (chain reorg).
      - `blockTimestamp` string — Block timestamp hex.
    - `fee` string, nullable — Paid fee in native units, if available.
  - UTXOTransaction — UTXO-style transaction object with inputs/outputs arrays (Bitcoin, Litecoin, Dogecoin).
    - `blockNumber` integer — Block height where the transaction was included.
    - `block` string — Block hash.
    - `fee` integer — Transaction fee in satoshis.
    - `hash` string — Transaction hash (txid).
    - `hex` string — Raw transaction hex.
    - `index` integer — Transaction index within the block.
    - `inputs` object[] — Transaction inputs.
      - `prevout` object
        - `hash` string — Previous output transaction hash.
        - `index` integer — Previous output index.
      - `sequence` integer
      - `script` string
      - `address` string, nullable — Present (null) for coinbase inputs; coin omitted in that case.
      - `coin` object — Spent output info (if available).
        - `version` integer
        - `height` integer
        - `value` union — Value in satoshis (number) or decimal string.
          - integer
          - string
        - `script` string
        - `address` string
        - `type` string — Script type (e.g. witness_v0_keyhash, pubkeyhash).
        - `reqSigs` integer, nullable
        - `coinbase` boolean
    - `locktime` integer
    - `outputs` object[] — Transaction outputs.
      - `value` union — Value in satoshis (number) or decimal string.
        - integer
        - string
      - `script` string
      - `address` string, nullable
      - `scriptPubKey` object
        - `type` string — Script type (e.g. witness_v0_keyhash, scripthash).
        - `reqSigs` integer, nullable
    - `size` integer — Transaction size in bytes.
    - `time` integer — Block timestamp (Unix seconds).
    - `version` integer
    - `vsize` integer — Virtual size in bytes.
    - `weight` integer — Transaction weight.
    - `witnessHash` string — Witness data hash (SegWit).
  - UtxoRawTransaction — Raw node (bitcoind-style RPC) transaction object. Returned by Bitcoin Cash (bch-mainnet, bch-testnet) instead of the normalized UTXO format. Fields mirror the node's verbose getrawtransaction response (vin/vout with scriptSig/scriptPubKey).
    - `txid` string
    - `hash` string
    - `version` integer
    - `size` integer
    - `locktime` integer
    - `vin` object[] — Transaction inputs (node RPC format).
      - `txid` string — Previous output transaction id (absent for coinbase inputs).
      - `vout` integer — Previous output index (absent for coinbase inputs).
      - `scriptSig` object
        - `asm` string
        - `hex` string
      - `coinbase` string — Present only on coinbase inputs.
      - `sequence` integer
    - `vout` object[] — Transaction outputs (node RPC format).
      - `value` number — Output value in whole coins (BCH), as returned by the node.
      - `n` integer
      - `scriptPubKey` object
        - `asm` string
        - `hex` string
        - `reqSigs` integer
        - `type` string
        - `addresses` string[]
    - `hex` string — Raw transaction hex.
    - `blockhash` string
    - `confirmations` integer
    - `time` integer
    - `blocktime` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
- `403` — Forbidden. The request is authenticated, but it is not possible to perform the operation due to logical error or invalid permissions.
- `500` — Internal server error. There was an error on the server during the processing of the request.

---

[API](https://skmtc.net/tatum/apis/blockchain-data.md) · [All operations](https://skmtc.net/tatum/apis/blockchain-data/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tatum/blockchain-data/revisions/8622ee4b8fae/schema)
