Registry / crypto / bitcoin-amt

bitcoin-amt

JSON →
library0.1.19rscratesunverified

Provides structs for representing amounts in satoshis, including negative values.

# Cargo.toml [dependencies] bitcoin-amt = "0.1.19"
INSTALL
IMPORT
SIG · BITCOIN-AMT
B
bitcoin-amt
cryptorustv0.1.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Amount
use bitcoin_amt::Amount;

Create and display a bitcoin amount in satoshis.

use bitcoin_amt::Amount; fn main() { let amt = Amount::from_sat(1000); println!("Amount: {} sat", amt.to_sat()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.19latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
bitcoin-amt — cargo add bitcoin-amt · libregistry