Get Transaction by Hash: API Migration (v3 to v4)

This guide covers the migration from legacy v3 chain-specific Get transaction by hash endpoints to the new unified Blockchains API endpoint Get transaction by hash


Endpoint Change Summary

Componentv3 (Legacy)v4 (New)
Standard Pattern/v3/{chain}/transaction/{hash}/v4/data/blockchains/transaction/{hash}

Deprecated v3 Endpoints

The following chain-specific endpoints have been consolidated:

Old v3 EndpointStatus
/v3/algorand/transaction/{hash}Deprecated
/v3/arb/transaction/{hash}Deprecated
/v3/avalanche/transaction/{hash}Deprecated
/v3/base/transaction/{hash}Deprecated
/v3/bcash/transaction/{hash}Deprecated
/v3/bitcoin/transaction/{hash}Deprecated
/v3/bsc/transaction/{hash}Deprecated
/v3/celo/transaction/{hash}Deprecated
/v3/cronos/transaction/{hash}Deprecated
/v3/dogecoin/transaction/{hash}Deprecated
/v3/egld/transaction/{hash}Deprecated
/v3/ethereum/transaction/{hash}Deprecated
/v3/fantom/transaction/{hash}Deprecated
/v3/flare/transaction/{hash}Deprecated
/v3/kcs/transaction/{hash}Deprecated
/v3/klaytn/transaction/{hash}Deprecated
/v3/litecoin/transaction/{hash}Deprecated
/v3/one/transaction/{hash}Deprecated
/v3/optimism/transaction/{hash}Deprecated
/v3/polygon/transaction/{hash}Deprecated
/v3/solana/transaction/{hash}Deprecated
/v3/sonic/transaction/{hash}Deprecated
/v3/tron/transaction/{hash}Deprecated
/v3/vet/transaction/{hash}Deprecated
/v3/xdc/transaction/{hash}Deprecated
/v3/xrp/transaction/{hash}Deprecated

Migration Steps

1. Update Your Base URL

Standard endpoints:

- GET /v3/ethereum/transaction/{hash}
+ GET /v4/data/blockchains/transaction/{hash}?chain=ethereum-mainnet

2. Adjust Chain Identifiers

Ensure you're using the new chain identifier format (e.g., ethereum-mainnet instead of ethereum).

3. Update Response Handling

Review your code for any response schema changes between v3 and v4.

🚧

Attention

Mind potential breaking changes.