v1

latestOpenAPI 3.1.02026-07-243035381.4 MB
Transactions API

Get transactions by hash

/v4/data/transactions/hash

10 credits per API call

> 📘 **Note for v3 API users:** > > As part of our documentation consolidation, we deprecated the endpoint for GET /v3/data/transactions/hash. Users can refer to GET /v4/data/transactions/hash for the latest documentation, as both endpoints function the same.

Get transactions by hash on the following blockchains:

  • Ethereum - ethereum-mainnet / ethereum-sepolia
  • Base - base-mainnet / base-sepolia
  • Arbitrum - arb-one-mainnet / arb-testnet
  • BNB (Binance) Smart Chain - bsc-mainnet / bsc-testnet
  • Polygon - polygon-mainnet
  • Optimism - optimism-mainnet / optimism-testnet
  • Berachain - berachain-mainnet
  • Unichain - unichain-mainnet / unichain-sepolia
  • Monad - monad-mainnet / monad-testnet
  • Celo - celo-mainnet / celo-testnet
  • Chiliz - chiliz-mainnet
  • Tezos - tezos-mainnet
  • Avalanche - avax-mainnet / avax-testnet
  • Gnosis - gno-mainnet / gno-testnet
  • zkSync - zksync-mainnet / zksync-testnet
  • Rootstock - rsk-mainnet / rsk-testnet
  • Ethereum Classic - ethereum-classic-mainnet / ethereum-classic-testnet
  • Lisk - lisk-mainnet / lisk-testnet
  • XDC - xdc-mainnet / xdc-testnet
  • Sonic - sonic-mainnet / sonic-blaze

To get started:

  • Provide a chain name and transaction hash, and our API will return a list of transactions with that hash.
  • The response will contain all the relevant information about specified transactions such as their block number, IDs of involved token, and more.
get/v4/data/transactions/hash

Query parameters

chain'ethereum-mainnet' | 'ethereum-sepolia' | 'base-mainnet' | 'base-sepolia' | 'arb-one-mainnet' | 'arb-testnet' | 'bsc-mainnet' | 'bsc-testnet' | 'polygon-mainnet' | 'optimism-mainnet' | 'optimism-testnet' | 'berachain-mainnet' | 'unichain-mainnet' | 'unichain-sepolia' | 'monad-mainnet' | 'monad-testnet' | 'celo-mainnet' | 'celo-testnet' | 'chiliz-mainnet' | 'tezos-mainnet' | 'avax-mainnet' | 'avax-testnet' | 'gno-mainnet' | 'gno-testnet' | 'zksync-mainnet' | 'zksync-testnet' | 'rsk-mainnet' | 'rsk-testnet' | 'ethereum-classic-mainnet' | 'ethereum-classic-testnet' | 'lisk-mainnet' | 'lisk-testnet' | 'xdc-mainnet' | 'xdc-testnet' | 'sonic-mainnet' | 'sonic-blaze' required
Example:ethereum-mainnet

The blockchain to work with.

hashstring required
Example:0xd49f8d6544f2822522886a02f4787a56ea93bbd636bfdf81d6795a10553d7118

Hash of the transaction.

Response

OK

chain'ethereum-mainnet' | 'ethereum-sepolia' | 'bsc-mainnet' | 'bsc-testnet' | 'polygon-mainnet' | 'celo-mainnet' | 'celo-testnet' | 'chiliz-mainnet'
hashstring

The transaction hash.

addressstring

The address involved in the transaction.

counterAddressstring

The counter address involved in the transaction (optional).

tokenAddressstring

The token address involved in the transaction (optional).

tokenIdstring

The ID of the token involved in the transaction (optional).

blockNumbernumber

The block number in which the transaction occurred.

transactionIndexnumber

The transaction index within the block.

transactionType'fungible' | 'nft' | 'multitoken' | 'native'

The type of the transaction.

transactionSubtype'incoming' | 'outgoing' | 'zero-transfer'

The subtype of the transaction.

amountstring

The amount transferred in the transaction.

timestampnumber

The timestamp when the transaction occurred.

Example response

[
  {
    "chain": "ethereum-mainnet",
    "hash": "0xd49f8d6544f2822522886a02f4787a56ea93bbd636bfdf81d6795a10553d7118",
    "address": "0x9757f2d2b135150bbeb65308d4a91804107cd8d6",
    "blockNumber": 16410533,
    "transactionIndex": 139,
    "transactionType": "native",
    "transactionSubtype": "incoming",
    "amount": "0.000000000000000039",
    "timestamp": 1673765531000,
    "counterAddress": "0x47405b78a7f381842c4f3d6b2d630dc390f3de9f"
  },
  {
    "chain": "ethereum-mainnet",
    "hash": "0xd49f8d6544f2822522886a02f4787a56ea93bbd636bfdf81d6795a10553d7118",
    "address": "0x47405b78a7f381842c4f3d6b2d630dc390f3de9f",
    "blockNumber": 16410533,
    "transactionIndex": 139,
    "transactionType": "native",
    "transactionSubtype": "outgoing",
    "amount": "-0.000000000000000039",
    "timestamp": 1673765531000,
    "counterAddress": "0x9757f2d2b135150bbeb65308d4a91804107cd8d6"
  }
]