Skip to content

Tokens & Addresses

Convert token amounts and addresses accurately before displaying them to users or submitting transactions.

raw units = amount × 10^decimals

Token Location Asset ID Decimals 1 token in raw units
D9 (native; pays fees and staking) Balances – 12 1000000000000
USDT (merchant invoices, AMM liquidity) Assets 1 6 1000000
Energy (merchant bandwidth resource) Assets 2 6 1000000
Bandwidth (merchant throughput resource) Assets 3 6 1000000
Merit D9Merchant::Accounts – 6 1000000
Voting interest D9Voting::UsersVotingInterests – whole votes (u64) –
  • Keep every account at or above the existential deposit of 1000000 raw units (0.000001 D9). Accounts below this threshold are reaped by the chain.
  • Pallet assets are native runtime assets, not smart contracts. Query them with Assets::Asset(id) and Assets::Account(id, account).

D9 uses SS58 format 9.

Layer Format Usage
Runtime 32-byte public key (0x...) SCALE encoding, storage keys
Chain SS58 format 9 Client APIs, transfers, RPC queries
Wallet UI Dn + SS58 address Display inside D9 Wallet only

Before passing any wallet-displayed address to the chain, normalize it with toChainAddress(address) from @d9-network/dapp-connector/protocol.