Monad-specific behavior: This method does not return pending transactions. It will only return transactions that have been included in a block. If you query for a transaction that is still in the mempool, the method will return
null.Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
data— the 32-byte hash of the transaction.
Response
result— the transaction object, ornullwhen no transaction was found:blockHash— hash of the block containing this transactionblockNumber— number of the block containing this transactionfrom— address of the sendergas— gas provided by the sendergasPrice— gas price in weihash— hash of the transactioninput— the data sent along with the transactionnonce— number of transactions made by the senderto— address of the receivertransactionIndex— integer of the transaction’s index positionvalue— value transferred in weiv,r,s— signature values
eth_getTransactionByHash code examples
Use case
A practical use case foreth_getTransactionByHash is retrieving transaction details for display in a DApp or for verifying transaction parameters.Body
application/json