Module amount

Source
Expand description

Bitcoin amount with millisatoshi precision.

This module provides the Amount type and the related error types.

Structsยง

Amount
Number of millisatoshis.
FractionError
Error returned when a conversion to satoshis fails due to the value not being round.
OverflowError
Error returned when a conversion exceeds Bitcoin supply cap.
ParseError
Error returned when parsing text representation fails.