Tutorials:Read Contract

From Seasonal Tokens
Revision as of 15:38, 12 January 2026 by Mediawiki (talk | contribs)
Jump to navigation Jump to search

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.