Crypto Unit Reference — ETH, BTC, TRON & TON Base Units

Each chain stores values as integers in its own smallest base unit. This reference puts the ladders side by side so you can convert raw amounts to human-readable values.

Ethereum

Ethereum's base unit is the wei. 1 ether = 10^18 wei. The gwei (10^9 wei) is the common intermediate unit used to quote gas prices. All balances and values in JSON-RPC are expressed in wei as hex-encoded integers.

Bitcoin

Bitcoin's base unit is the satoshi. 1 BTC = 100,000,000 satoshi (10^8). All amounts in raw Bitcoin data and transaction outputs are expressed in satoshi, so an integer value must be divided by 10^8 to read it as BTC.

TRON

TRON's base unit is the sun. 1 TRX = 1,000,000 sun (10^6). API responses report TRX balances and transfer amounts in sun, matching TRX's 6-decimal precision.

TON

TON's base unit is the nanoton. 1 TON = 1,000,000,000 nanoton (10^9), matching TON's 9-decimal precision. Balances returned by TON APIs are in nanoton and must be divided by 10^9 to read as TON.

よくある質問

Why does each chain use a different base unit?

Each protocol picked an integer smallest unit fine enough for its needs: wei (10^18 per ether), satoshi (10^8 per BTC), sun (10^6 per TRX), and nanoton (10^9 per TON). Storing values as integers avoids floating-point rounding on-chain.

How do I convert a raw amount to a human value?

Divide the raw integer by 10 to the power of that chain's decimals: 10^18 for ETH, 10^8 for BTC, 10^6 for TRX, and 10^9 for TON. Use big-integer math for ETH because the values exceed safe floating-point range.

関連ツール

チャージして、キーを取得し、リリース。

セルフサーブ。暗号資産またはカードで支払い。クレジットで従量課金——重いプリミティブは高く、単純なものは安価。

APIキーを取得