Docs

eth_getTransactionByHash - BSC RPC Method

Retrieve transaction details by hash on Binance Smart Chain. Essential for DeFi developers, trading platform builders, and teams seeking Binance ecosystem access tracking transactions on the third-largest blockchain by market cap with $12B+ TVL and 37%+ DEX market share.

Returns the information about a transaction by transaction hash on Binance Smart Chain.

Why BSC? Build on the third-largest blockchain by market cap with $12B+ TVL and 37%+ DEX market share with sub-$0.10 fees, 2.6M daily active users, full EVM compatibility, and direct Binance integration.

Use Cases

The eth_getTransactionByHash method is essential for:

  • Transaction tracking - Get details of pending or confirmed transactions
  • Payment verification - Verify transaction parameters
  • Debugging - Analyze transaction data for high-frequency DeFi (PancakeSwap), NFT marketplaces, and GameFi applications
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format