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. null when pending
- blockNumberstring
The block number containing this transaction. null when pending
- 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 before this one encoded as hexadecimal
- tostring
The address of the receiver. null when it's a contract creation transaction
- transactionIndexstring
The index position of the transaction in the block encoded as hexadecimal. null when pending
- valuestring
The value transferred in wei encoded as hexadecimal
- typestring
The transaction type encoded as a hexadecimal
- chainIdstring
The chain ID
- vstring
The V field of the transaction signature encoded as hexadecimal
- rstring
The R field of the transaction signature
- sstring
The S field of the transaction signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xd2ef4e91af5fc49137909f323104a64f99a5d500086b5299bacb33d10eb9d17c",6"blockNumber": "0x6d000",7"from": "0x00000000000000000000000000000000000a4b05",8"gas": "0x0",9"gasPrice": "0x0",10"hash": "0xd6ee9e99ee85bf0d99bf1bf0e22c4889d373324afd237027bdc60324054957f1",11"input": "0x6bf6a42d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000183f0fd000000000000000000000000000000000000000000000000000000000006d0000000000000000000000000000000000000000000000000000000000000000000",12"nonce": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x6a",17"chainId": "0x1237",18"v": "0x0",19"r": "0x0",20"s": "0x0"21}22}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xd2ef4e91af5fc49137909f323104a64f99a5d500086b5299bacb33d10eb9d17c",6"blockNumber": "0x6d000",7"from": "0x00000000000000000000000000000000000a4b05",8"gas": "0x0",9"gasPrice": "0x0",10"hash": "0xd6ee9e99ee85bf0d99bf1bf0e22c4889d373324afd237027bdc60324054957f1",11"input": "0x6bf6a42d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000183f0fd000000000000000000000000000000000000000000000000000000000006d0000000000000000000000000000000000000000000000000000000000000000000",12"nonce": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x6a",17"chainId": "0x1237",18"v": "0x0",19"r": "0x0",20"s": "0x0"21}22}