#wallet #transaction #cryptocurrency #blockchain #bitcoin-cash

yanked anychain-bitcoincash

A Rust library for Bitcoin Cash-focused cryptocurrency wallets, enabling seamless transactions on the Bitcoin Cash blockchain

1 unstable release

0.1.0 Jun 14, 2023

#10 in #bitcoin-cash

MIT license

225KB
5K SLoC

AnyChain-BitcoinCash

AnyChain-BitcoinCash is a Rust library that provides a simple and efficient way to interact with the Bitcoin Cash (BCH) blockchain. This library aims to make it easy for developers to build applications that require Bitcoin Cash functionality, such as wallets, exchanges, and other blockchain-related services.

Features

  • Supports Bitcoin Cash (BCH) mainnet and testnet
  • Address generation and validation
  • Transaction creation, signing, and broadcasting
  • UTXO management
  • Script parsing and evaluation
  • Comprehensive documentation and examples

Installation

Add the following to your Cargo.toml file:

[dependencies]
anychain-bitcoincash = "0.1.0"

Then, run cargo build to download and compile the library.

Usage

Here's a simple example of how to generate a new Bitcoin Cash address:

use anychain_bitcoincash::address::Address;

fn main() {
    let address = Address::new();
    println!("New Bitcoin Cash address: {}", address);
}

For more examples and detailed usage instructions, please refer to the documentation.

Contributing

We welcome contributions from the community! If you'd like to contribute to the development of AnyChain-BitcoinCash, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature or bugfix
  3. Commit your changes and push to your fork
  4. Open a pull request against the main repository

Dependencies

~5MB
~79K SLoC