#bitcoin #blockchain #ethereum #no-std

no-std anychain-core

A core support for cryptocurrency wallets

4 releases

0.1.3 Oct 9, 2023
0.1.2 Aug 9, 2023
0.1.1 Jul 6, 2023
0.0.1 Jun 9, 2023

#7 in #filcoin

Download history 13/week @ 2023-07-30 86/week @ 2023-08-06 104/week @ 2023-08-13 24/week @ 2023-08-20 31/week @ 2023-08-27 26/week @ 2023-09-03 21/week @ 2023-09-10 29/week @ 2023-09-17 17/week @ 2023-09-24 28/week @ 2023-10-01 68/week @ 2023-10-08 27/week @ 2023-10-15 66/week @ 2023-10-22 27/week @ 2023-10-29 21/week @ 2023-11-05 23/week @ 2023-11-12

137 downloads per month
Used in 6 crates

MIT/Apache

28KB
672 lines

anychain-core

anychain-core is a Rust crate that provides core functionality for working with various blockchain implementations. This crate aims to simplify the process of integrating different blockchain technologies into your projects by providing a unified interface and a set of common utilities.

Features

  • Unified interface for interacting with multiple blockchain implementations
  • Support for popular blockchain platforms (e.g., Ethereum, Bitcoin, etc.)
  • Extensible design for adding custom blockchain implementations
  • Utility functions for common tasks (e.g., address validation, transaction signing, etc.)

Getting Started

To start using anychain-core, add it as a dependency in your Cargo.toml file:

[dependencies]
anychain-core = "0.1.3"

Then, import the crate in your Rust code:

extern crate anychain_core;

Usage

Here's a basic example of how to use anychain-core to interact with an Ethereum blockchain:

use anychain_core::{Blockchain, Ethereum};

fn main() {
    let eth = Ethereum::new("https://mainnet.infura.io/v3/YOUR-API-KEY");

    let balance = eth.get_balance("0x742d35Cc6634C0532925a3b844Bc454e4438f44e").unwrap();
    println!("Balance: {}", balance);
}

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

Contributing

We welcome contributions to anychain-core! If you'd like to contribute, please follow these steps:

  1. Fork the repository on GitHub
  2. Create a new branch for your changes
  3. Make your changes and commit them to your branch
  4. Submit a pull request to merge your changes into the main repository

Please make sure to write tests for your changes and follow the existing coding style.

License

anychain-core is licensed under the MIT License. See the LICENSE file for more information

Dependencies

~5.5MB
~91K SLoC