eth_getTransactionReceipt - BSC RPC Method
Get transaction receipt with status and logs on Binance Smart Chain. Essential for verifying transaction execution for high-frequency DeFi (PancakeSwap), NFT marketplaces, and GameFi applications.
Returns the receipt of a transaction by transaction hash on Binance Smart Chain. Receipt is only available for mined transactions.
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_getTransactionReceipt method is essential for:
- Transaction confirmation - Verify transaction was mined successfully
- Gas analysis - Check actual gas used vs estimated
- Event parsing - Read emitted events from logs
- Status verification - Confirm success/failure for high-frequency DeFi (PancakeSwap), NFT marketplaces, and GameFi applications
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash |
Note: Returns null if transaction is not yet mined.
Related Methods
eth_getTransactionByHash- Get transaction detailseth_getLogs- Query logs by filter
eth_getTransactionByHash
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.
eth_estimateGas
Estimate gas required for transactions on Binance Smart Chain. Essential for optimizing transaction costs for high-frequency DeFi (PancakeSwap), NFT marketplaces, and GameFi applications.