Skip to main content

Module amount

Module amount 

Source
Expand description

Bitcoin amount types

Structs§

Amount
Represents an amount of BTC. The base denomination is millisatoshis, which is why the Amount type from rust-bitcoin isn’t used instead.

Enums§

ParseAmountError

Constants§

SATS_PER_BITCOIN

Functions§

msats
Shorthand for Amount::from_msats
sats
Shorthand for Amount::from_sats