Tutorials:Read Contract: Difference between revisions

From Seasonal Tokens
Jump to navigation Jump to search
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.
Copy the first 3 nonzero numbers to answer this quest.
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

View on Etherscan

Smart01.jpg

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


Smart012.jpg

Exercise:

Click on the Transactions tab and find the latest MINT transaction:

Smart02.jpg

We will use it in the next quest.