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
quantity|tag— the block number as a hexadecimal string, or one of the following block tags:latest— the most recent block in the canonical chainearliest— the genesis blockpending— the pending state/transactions
quantity— the transaction index position within the block, encoded as hexadecimal.
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_getTransactionByBlockNumberAndIndex code examples
Use case
A practical use case foreth_getTransactionByBlockNumberAndIndex is building block explorers that allow users to browse transactions sequentially within blocks, or analyzing the first or last transactions in recent blocks.Body
application/json