eth_getTransactionByHash - XDC Network RPC Method
Retrieve transaction details by hash on XDC Network. Essential for trade finance developers, enterprise blockchain teams, and RWA tokenization builders tracking transactions on the enterprise-grade blockchain for trade finance with 2-second finality and ISO 20022 compliance.
Returns the information about a transaction by transaction hash on XDC Network.
Why XDC Network? Build on the enterprise-grade blockchain for trade finance with 2-second finality and ISO 20022 compliance with ISO 20022 messaging, ITFA membership, Contour Network acquisition, 801M+ transactions, and partnerships with Circle and Deutsche Telekom.
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 tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization
- Block explorers - Display transaction information
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash format |
Related Methods
eth_getTransactionReceipt- Get transaction receipteth_sendRawTransaction- Send transaction
eth_sendRawTransaction
Submit signed transactions to XDC Network. Essential for broadcasting transactions for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.
eth_getTransactionReceipt
Get transaction receipt with status and logs on XDC Network. Essential for verifying transaction execution for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.