bitcoins
This crate provides a simple interface for interacting with Bitcoin mainnet, testnet, and signet.
This crate is under active development, and the API may change.
Usage
Typically, you'll want to use a pre-fabricated network as an entry point.
use ;
use ;
// We can convert a string to an address
let address = string_to_address.unwrap;
// And set up a transaction builder with a simple interface
let serialized_tx = tx_builder
.version
.spend
.pay.unwrap
.build
.serialize_hex;
See the documentation for more details. TODO: link the docs.
Building & Running Tests
cargo build
cargo test
- build the docs:
$ cargo rustdoc