eth_getTransactionByHash - Tempo RPC Method
Retrieve transaction details by hash on Tempo. Essential for payment application developers, wallet teams, stablecoin issuers, and treasury automation builders tracking transactions on a payments-first EVM chain with deterministic settlement and stablecoin-native fees.
Returns the information about a transaction by transaction hash on Tempo.
Why Tempo? Build on a payments-first EVM chain with deterministic settlement and stablecoin-native fees with no native gas token, fees denominated in supported USD stablecoins, and full EVM RPC compatibility.
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 merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications
- Block explorers - Display transaction information
Request Parameters
32-byte transaction hash
Response Body
Transaction hash
Sender address
Recipient address
Value in wei
Gas provided
Gas price in wei
Transaction input data
Sender's nonce
Block hash (null if pending)
Block number (null if pending)
Code Examples
curl -X POST https://api-tempo-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x50b1857dce8dbe401e09610534de81655bc508c6765eb30ecefe24148c515c28"],
"id": 1
}'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 Tempo. Essential for broadcasting transactions for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Tempo. Essential for verifying transaction execution for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.