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.

```rust use coins_core::{ nets::Network, builder::TxBuilder, ser::Ser, };

use bitcoins::{BitcoinMainnet, Outpoint};

// We can convert a string to an address let address = BitcoinMainnet::stringtoaddress("bc1qvyyvsdcd0t9863stt7u9rf37wx443lzasg0usy").unwrap();

// And set up a transaction builder with a simple interface let serializedtx = BitcoinMainnet::txbuilder() .version(2) .spend(Outpoint::default(), 0xaabbccdd) .pay(0x8888888888888888, &address).unwrap() .build() .serializehex(); ```

See the documentation for more details. TODO: link the docs.

Building & Running Tests