Skip to content

Lesson 5 - response vs receipt #1788

Answered by krakxn
alkali333 asked this question in Q&A
Aug 14, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Firstly, refer this for context: #1218

Ans.: Put simply, think of transactionReceipt as a variable which has all the details (hash, to, nonce, gasLimit etc.) of the transaction. The naming here is not compulsory, you can name it xyz too. It is just that transactionReceipt is a descriptive and relevant name for it.

A technical description below:

TransactionResponse, inherits Transaction object (elaborated below)

A TransactionResponse includes all properties of a Transaction as well as several properties that are useful once it has been mined.

Transaction

A generic object to represent a transaction.

transaction.hash ⇒ string< DataHexString< 32 > >
The transaction hash, which can be used as …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pacelliv
Comment options

@krakxn
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants