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. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject | null
The transaction response object, or null if no transaction is found:
- blockHashstring | null
The hash of the block where this log was in. null when it's a pending log
- blockNumberstring | null
The block number where this log was in. null when it's a pending log
- 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
- maxFeePerGasstring
(Optional) The maximum fee per gas set in the transaction
- maxPriorityFeePerGasstring
(Optional) The maximum priority gas fee set in the transaction
- 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 | null
The address of the receiver. null when it's a contract creation transaction
- transactionIndexstring | null
The integer of the transaction's index position that the log was created from. null when it's a pending log
- valuestring
The value transferred in wei encoded as hexadecimal
- typestring
The transaction type
- chainIdstring
The chain id of the transaction, if any
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xb3002a157a8cc731622d0099724487bee13692fd90cef481c27af5f36a5a14a8",6"blockNumber": "0xc5043f",7"from": "0x00000000000000000000000000000000000a4b05",8"gas": "0x0",9"gasPrice": "0x0",10"hash": "0xbb7915eb0d6d76df70543054b5a4e6e3806a2493611920632b74b8abe4262660",11"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010c592e0000000000000000000000000000000000000000000000000000000000c5043f0000000000000000000000000000000000000000000000000000000000000000",12"nonce": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x6a",17"chainId": "0xa4ba",18"v": "0x0",19"r": "0x0",20"s": "0x0"21}22}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xb3002a157a8cc731622d0099724487bee13692fd90cef481c27af5f36a5a14a8",6"blockNumber": "0xc5043f",7"from": "0x00000000000000000000000000000000000a4b05",8"gas": "0x0",9"gasPrice": "0x0",10"hash": "0xbb7915eb0d6d76df70543054b5a4e6e3806a2493611920632b74b8abe4262660",11"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010c592e0000000000000000000000000000000000000000000000000000000000c5043f0000000000000000000000000000000000000000000000000000000000000000",12"nonce": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x6a",17"chainId": "0xa4ba",18"v": "0x0",19"r": "0x0",20"s": "0x0"21}22}