How to query Stoken data

logo_etherscan_verified logo_github logo_verified

Here is the link for Read the Contract: https://etherscan.io/address/0x37C7e57f28f1c481Ffa354f5B21F159f8c51782b#readContract

Click here, then Contract => Read Contract

Stoken summary

Function #2: stoken2

stoken2_summary.png

Note

totalSupply

Total supply of Stoken, with 6 decimals.

1000000000 means 1,000,000,000.000 Stoken total.

whitelistCounter

The counter for whitelisted addresses, with no decimals.

6918 means there are 6,918 addresses are already whitelisted.

whitelistingMode

Whether the whitelist signing-up is allowed.

True for YES, and False for NO.

When it shows True you can follow How to join the whitelist to join.

safeMode

Whether the SAFE-MODE is on.

True for YES, and False for NO.

When it shows True, transfers from a non-whitelisted address is restricted. This is a mechanism to protect early ecological health.

burningMode

Whether the BURNING-MODE is on.

True for YES, and False for NO.

When it shows True, 1% will be burned for every transaction of Stoken.

burningPermill

When BURNING-MODE is on, the value is valid. It is the burning ratio in per-mill.

10 means the current burning ratio is 1%.

Query an address in Stoken

Function #1: queryAccount

stoken2_query1.png

Enter an ETH wallet address, and press Query, then:

stoken2_query2.png

Let’s focus on the returned values:

whitelisted               bool :     true
whitelistReferralsCount   uint256 :  25
balance                   uint256 :  118448326
reserved                  uint256 :  59224163

Note

whitelisted
If it returns true, means the address is already whitelisted, false means no.
whitelistReferralsCount
The quantity of direct referrals.
balance
Balance of Stoken, with 6 decimals. 118448326 means 118.448326 Stoken.
reserved
Reserved balance of Stoken, with 6 decimals. 59224163 means 59.224163 Stoken.