When developing on Avalanche, you will frequently need to think about units of measure used for various amounts of AVAX.

This is a list of common units of measure:

NanoAvax uint64 = 1
MicroAvax uint64 = 1000 * NanoAvax
Schmeckle uint64 = 49*MicroAvax + 463*NanoAvax
MilliAvax uint64 = 1000 * MicroAvax
Avax uint64 = 1000 * MilliAvax
KiloAvax uint64 = 1000 * Avax
MegaAvax uint64 = 1000 * KiloAvax

Full list can be accessed here: https://github.com/ava-labs/avalanchego/blob/master/utils/units/avax.go

Chat with Ava Labs | Validate on Avalanche | Build on Avalanche

Did this answer your question?