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
The transaction response object or null if no transaction is found
- typestring
The transaction type
- noncestring
The number of transactions made by the sender before this one encoded as hexadecimal
- gasPricestring
The gas price provided by the sender in wei encoded as hexadecimal
- gasstring
The gas provided by the sender encoded as hexadecimal
- tostring
The address of the receiver, null when the transaction created a contract
- valuestring
The value transferred in wei encoded as hexadecimal
- inputstring
The data sent along with the transaction
- rstring
The R field of the transaction signature
- sstring
The S field of the transaction signature
- vstring
The standardized V field of the transaction signature
- hashstring
The hash of the transaction
- blockHashstring
The hash of the block where this transaction was included, null when pending
- blockNumberstring
The block number where this transaction was included, null when pending
- transactionIndexstring
The index position of the transaction in the block, null when pending
- fromstring
The address of the sender
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"nonce": "0x43",7"gasPrice": "0x4a817c800",8"gas": "0x186a0",9"to": "0x5d95a6bad575ff00e12919dfa259e6a3dd50388f",10"value": "0x0",11"input": "0xda91254c",12"r": "0x93edc404d7cb9022adc020ae9f06c489ff7c9f146f6e820e610db404b5ce7335",13"s": "0x708984bb15226c850c21d766461cd3dbd35269575de842fd0097759c347182f0",14"v": "0x1b",15"hash": "0x3901f2145d10aaffd4ae1ec1e74d7f0041416a07dc542d0ae9e3edce0542b51c",16"blockHash": "0xbe7e72a6208063a9b0fc88090027418939a42e8fba86dd967949291b5e0680a5",17"blockNumber": "0x6aede5",18"transactionIndex": "0x0",19"from": "0x1cc0c65ca5dd6b767338946f2c44c02040744ef5"20}21}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"nonce": "0x43",7"gasPrice": "0x4a817c800",8"gas": "0x186a0",9"to": "0x5d95a6bad575ff00e12919dfa259e6a3dd50388f",10"value": "0x0",11"input": "0xda91254c",12"r": "0x93edc404d7cb9022adc020ae9f06c489ff7c9f146f6e820e610db404b5ce7335",13"s": "0x708984bb15226c850c21d766461cd3dbd35269575de842fd0097759c347182f0",14"v": "0x1b",15"hash": "0x3901f2145d10aaffd4ae1ec1e74d7f0041416a07dc542d0ae9e3edce0542b51c",16"blockHash": "0xbe7e72a6208063a9b0fc88090027418939a42e8fba86dd967949291b5e0680a5",17"blockNumber": "0x6aede5",18"transactionIndex": "0x0",19"from": "0x1cc0c65ca5dd6b767338946f2c44c02040744ef5"20}21}