Tutorials:Read Contract: Difference between revisions
m (Move page script moved page Tutorials:8d4f to Tutorials:Read Contract) |
No edit summary |
||
| Line 10: | Line 10: | ||
By clicking in the "contract" tab you can read the code. Click on Read Contract and see the Initial_Reward field. | By clicking in the "contract" tab you can read the code. Click on Read Contract and see the Initial_Reward field. | ||
The initial reward was 168 Spring tokens, but the number is written with 18 zeroes because it is given in "Wei" units. | |||
Wei is the smallest denomination of Ether (ETH) on the Ethereum network, named after cryptographer Wei Dai; one Ether equals one quintillion (10¹⁸) Wei, making Wei essential for precise transaction fees (gas) and microtransactions, similar to how a Satoshi is the smallest unit of Bitcoin. It allows for granular calculations, preventing rounding errors in the complex operations of smart contracts and decentralized finance | |||
[[File:Smart012.jpg|800px]] | [[File:Smart012.jpg|800px]] | ||
Revision as of 15:38, 12 January 2026
Read Contract
Let's have a look at the Spring Tokens Smart Contract in Ethereum:
0xf04aF3f4E4929F7CD25A751E6149A3318373d4FE
By clicking in the "contract" tab you can read the code. Click on Read Contract and see the Initial_Reward field. The initial reward was 168 Spring tokens, but the number is written with 18 zeroes because it is given in "Wei" units.
Wei is the smallest denomination of Ether (ETH) on the Ethereum network, named after cryptographer Wei Dai; one Ether equals one quintillion (10¹⁸) Wei, making Wei essential for precise transaction fees (gas) and microtransactions, similar to how a Satoshi is the smallest unit of Bitcoin. It allows for granular calculations, preventing rounding errors in the complex operations of smart contracts and decentralized finance
Exercise:
Click on the Transactions tab and find the latest MINT transaction:
We will use it in the next quest.