Viewing and verifying results
We executed transactions in the previous steps, so now let us see how these transactions reflect in the blockchain and Hardhat local blockchain. Follow these simple steps:
- Open the Hardhat node and inspect the transaction. You should see something similar to the following figure. This confirms that the transaction happened in the blockchain and was recorded.
Figure 3.23 – Confirmation of transaction in the blockchain
- Here, in this transaction, you will be able to confirm the sender and receiver of the 2 ETH that we transferred. The gas used is 21000, the gas price is 2375000000, the gas limit is 21001, and the block the transaction belongs to is #1, the first block that was created as a result of this transaction.
This concludes our first transaction on Web3. Practice a few transactions by importing multiple accounts from Hardhat using their private keys, and initiate multiple transfers. Explore...