Skip to main content

Module amount

Module amount 

Source
Expand description

BLOCK amounts. The base unit is 1e-8 BLOCK (like a satoshi).

Enums§

AmountError

Constants§

COIN
Base units per BLOCK.

Functions§

format_amount
Format base units as a decimal BLOCK string.
parse_amount
Parse a decimal BLOCK amount (“1”, “0.5”, “12.34567890”) into base units.