Memecoin trading 2 min read
Token decimals and the balance shown in a wallet
Convert a raw integer to token units and check which mint or contract supplied the decimal count.
View the worked illustrationClose illustration
Scroll the illustration to inspect the details.
A blockchain can store a token balance as an integer while a wallet displays a decimal amount. Divide the raw integer by ten raised to the token’s decimal count. Decimals control the display scale. They do not state the asset’s dollar value or the number of units in someone else’s wallet.
Use the mint or contract that owns the record
For a raw balance of 12,345,678 and six decimals, divide by 1,000,000. The display reads 12.345678 tokens. With nine decimals the same integer would display as 0.012345678. A three-place difference changes the result by a factor of 1,000. Keep the raw number unchanged while checking the metadata.
On Solana the mint records decimals. ERC-20 describes decimals as optional metadata, so a generic parser cannot safely assume every token returns a value. If a wallet shows an unfamiliar symbol or omits decimals, verify the chain and contract first. Two unrelated assets may share a ticker and use different scales.
Compare like records before pricing the balance
Choose the same token, account and snapshot for both sides. Multiply the converted token quantity by a quoted unit price only after the scale is known. Keep precision until the final display. Rounding a small holding to zero on one screen does not prove the raw balance is zero or that a token account can be closed.
The token contract checklist helps identify which asset defines the decimal count.
Create a Token Mint - Solana Developer Docs · ERC-20: Token Standard
Read next
More from this space
-
2 min read
Closing an empty Solana token account: what returns?
Identify the account’s token amount, close authority and refundable lamports before treating it as empty.
-
2 min read
Solana token transfer fees: check the rate and cap
Calculate a Token Extensions transfer fee and distinguish the amount received from the separate SOL network charge.
-
2 min read
Solana wallet tracker: add the right token accounts
Reconcile a wallet tracker with the token accounts that belong to one owner and mint.