bdk_chain::bitcoin::amount::serde

Module as_btc

Expand description

Serialize and deserialize Amount as JSON numbers denominated in BTC. Use with #[serde(with = "amount::serde::as_btc")].

Modules§

  • Serialize and deserialize Option<Amount> as JSON numbers denominated in BTC. Use with #[serde(default, with = "amount::serde::as_btc::opt")].

Functions§