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
- blockTimestampstring
The unix timestamp for when the block was collated, encoded as hexadecimal.
- 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
The maximum fee per gas set in the transaction
- maxPriorityFeePerGasstring
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"type": "0x0",6"chainId": "0x38",7"nonce": "0x1a14c0",8"gasPrice": "0x4a817c800",9"gas": "0x13c32",10"to": "0xe56842ed550ff2794f010738554db45e60730371",11"value": "0x0",12"input": "0xa9059cbb000000000000000000000000bf2bc9f66955db1c62cfec5a564b3e62c752008a000000000000000000000000000000000000000000000482114f7028102f0000",13"r": "0xcd1ff18127b5177f308529e47d282146269105ce140196ed40e416bf6fc32123",14"s": "0x7561d811c71860ca9384e2996539628818fecf54a911783295b99b410182fc5b",15"v": "0x93",16"hash": "0xeac6fc618eed658e566d23bb8a76fd258ddf075305bae5c5803ae6f83fead55b",17"blockHash": "0xf6e21d834a28d32a340b1bfb721019c3c3b49ae6b0f0a49c9f4c14ca1d82a000",18"blockNumber": "0xc5043f",19"transactionIndex": "0x0",20"from": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",21"blockTimestamp": "0x619de998"22}23}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"chainId": "0x38",7"nonce": "0x1a14c0",8"gasPrice": "0x4a817c800",9"gas": "0x13c32",10"to": "0xe56842ed550ff2794f010738554db45e60730371",11"value": "0x0",12"input": "0xa9059cbb000000000000000000000000bf2bc9f66955db1c62cfec5a564b3e62c752008a000000000000000000000000000000000000000000000482114f7028102f0000",13"r": "0xcd1ff18127b5177f308529e47d282146269105ce140196ed40e416bf6fc32123",14"s": "0x7561d811c71860ca9384e2996539628818fecf54a911783295b99b410182fc5b",15"v": "0x93",16"hash": "0xeac6fc618eed658e566d23bb8a76fd258ddf075305bae5c5803ae6f83fead55b",17"blockHash": "0xf6e21d834a28d32a340b1bfb721019c3c3b49ae6b0f0a49c9f4c14ca1d82a000",18"blockNumber": "0xc5043f",19"transactionIndex": "0x0",20"from": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",21"blockTimestamp": "0x619de998"22}23}