Parameters
- blockNumberstringREQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject
The transaction response object, or null if no transaction is found
- blockHashstring
The hash of the block containing this transaction, or null if pending
- blockNumberstring
The block number containing this transaction, or null if pending
- chainIdstring
The chain ID for the transaction encoded as a hexadecimal string
- fromstring
The address of the sender
- gasstring
The gas provided by the sender, encoded as hexadecimal
- gasPricestring
The gas price provided by the sender in wei, encoded as hexadecimal
- hashstring
The hash of the transaction
- inputstring
The data sent along with the transaction
- noncestring
The number of transactions made by the sender prior to this one, encoded as hexadecimal
- tostring
The address of the receiver, or null for contract creation
- transactionIndexstring
The index position of the transaction in the block, or null if pending
- valuestring
The value transferred in wei, encoded as hexadecimal
- typestring
The transaction type
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature
- maxFeePerBlobGasnull
The max fee per blob gas, or null if not applicable
- blobVersionedHashesnull
The blob versioned hashes, or null if not applicable
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x3c5b972e862112e83929ab1c25893f10abd2b0c75c150487f43b3a34534df90d",6"blockNumber": "0x264e8aa",7"from": "0x4ad948127fcc4605886696d880455f218c4b0425",8"gas": "0x2489d",9"gasPrice": "0xf5de81400",10"hash": "0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",11"input": "0x3d18b912",12"nonce": "0x146f",13"to": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x0",17"chainId": "0x92",18"v": "0x148",19"r": "0x58b55612d7364679f961d041e527590aa4a0cb7b139ea4a6f2d76a0aa48c07cf",20"s": "0x6fb10adeddfc996b3c36051557c25e28603611b0684f0f7ffca846d378ffe9f0",21"maxFeePerBlobGas": null,22"blobVersionedHashes": null23}24}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x3c5b972e862112e83929ab1c25893f10abd2b0c75c150487f43b3a34534df90d",6"blockNumber": "0x264e8aa",7"from": "0x4ad948127fcc4605886696d880455f218c4b0425",8"gas": "0x2489d",9"gasPrice": "0xf5de81400",10"hash": "0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",11"input": "0x3d18b912",12"nonce": "0x146f",13"to": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x0",17"chainId": "0x92",18"v": "0x148",19"r": "0x58b55612d7364679f961d041e527590aa4a0cb7b139ea4a6f2d76a0aa48c07cf",20"s": "0x6fb10adeddfc996b3c36051557c25e28603611b0684f0f7ffca846d378ffe9f0",21"maxFeePerBlobGas": null,22"blobVersionedHashes": null23}24}