Parameters
- blockNumberstringREQUIRED
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
- 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
- blockTimestampstring
Timestamp of the block containing this transaction, encoded as a hexadecimal quantity
- 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": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",6"blockNumber": "0x181f92",7"blockTimestamp": "0x6aee1f6c",8"from": "0x00000000000000000000000000000000000a4b05",9"gas": "0x0",10"gasPrice": "0x0",11"hash": "0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",12"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030386330000000000000000000000000000000000000000000000000000000000181f920000000000000000000000000000000000000000000000000000000000000000",13"nonce": "0x0",14"to": "0x00000000000000000000000000000000000a4b05",15"transactionIndex": "0x0",16"value": "0x0",17"type": "0x6a",18"chainId": "0x1863d",19"v": "0x0",20"r": "0x0",21"s": "0x0"22}23}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",6"blockNumber": "0x181f92",7"blockTimestamp": "0x6aee1f6c",8"from": "0x00000000000000000000000000000000000a4b05",9"gas": "0x0",10"gasPrice": "0x0",11"hash": "0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",12"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030386330000000000000000000000000000000000000000000000000000000000181f920000000000000000000000000000000000000000000000000000000000000000",13"nonce": "0x0",14"to": "0x00000000000000000000000000000000000a4b05",15"transactionIndex": "0x0",16"value": "0x0",17"type": "0x6a",18"chainId": "0x1863d",19"v": "0x0",20"r": "0x0",21"s": "0x0"22}23}