Parameters
- hashstringREQUIRED
The hash of a transaction
Returns
- objectobject | null
The transaction response object, or null if no transaction is found:
- blockHashstring | null
The hash of the block where this transaction was in. Null when it's a pending log
- blockNumberstring | null
The block number where this transaction 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 its 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
- accessListarray
(Optional) A list of addresses and storage keys that the transaction plans to access
- 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": "0xf1e04994cc1176204b622122559900cc3c66fce2113538f5e0e853cf2c392924",6"blockNumber": "0x17efb1",7"from": "0x2d0f80376cb0ecee1ccd1939f605def0b3e052aa",8"gas": "0x3d0900",9"gasPrice": "0x5f5e100",10"hash": "0x3a74cb4fd48a988ad977a17cc39bec605b0aef4d556f06793b5835d92742e8a8",11"input": "0x7ff36ab50000000000000000000000000000000000000000000000000000000000112e1700000000000000000000000000000000000000000000000000000000000000800000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000063a5dfdd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365000000000000000000000000750ba8b76187092b0d1e87e28daaf484d1b5273b",12"nonce": "0x16",13"to": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",14"transactionIndex": "0x1",15"value": "0x353ff1721f800",16"type": "0x0",17"chainId": "0xa4ba",18"v": "0x14997",19"r": "0x6e488d62d0f41e3870179f8948e33bed34884e89590fd3143cb2a799760faf27",20"s": "0x237d1fccf421deab78b697bf1bb510b7b88b48703714834031ab4b7471adcdb6"21}22}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xf1e04994cc1176204b622122559900cc3c66fce2113538f5e0e853cf2c392924",6"blockNumber": "0x17efb1",7"from": "0x2d0f80376cb0ecee1ccd1939f605def0b3e052aa",8"gas": "0x3d0900",9"gasPrice": "0x5f5e100",10"hash": "0x3a74cb4fd48a988ad977a17cc39bec605b0aef4d556f06793b5835d92742e8a8",11"input": "0x7ff36ab50000000000000000000000000000000000000000000000000000000000112e1700000000000000000000000000000000000000000000000000000000000000800000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000063a5dfdd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365000000000000000000000000750ba8b76187092b0d1e87e28daaf484d1b5273b",12"nonce": "0x16",13"to": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",14"transactionIndex": "0x1",15"value": "0x353ff1721f800",16"type": "0x0",17"chainId": "0xa4ba",18"v": "0x14997",19"r": "0x6e488d62d0f41e3870179f8948e33bed34884e89590fd3143cb2a799760faf27",20"s": "0x237d1fccf421deab78b697bf1bb510b7b88b48703714834031ab4b7471adcdb6"21}22}