chains-rs 0.1.1

Blockchain and asset definitions in Rust
Documentation
  • Coverage
  • 15.91%
    7 out of 44 items documented0 out of 31 items with examples
  • Size
  • Source code size: 32.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.78 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • ezex-io/open-chain
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Ja7ad

chains-rs

Overview

chains-rs is a Rust library for defining blockchain networks and their associated assets. It provides a structured way to represent various blockchains and their respective assets, enabling easy integration into cryptocurrency-related applications.

Features

  • Standardized blockchain and asset definitions.
  • Support for multiple blockchain networks (e.g., Bitcoin, Binance, Pactus).
  • Extensible asset representation.
  • Designed for interoperability with Web3 and crypto applications.

Installation

To add chains-rs to your project, include it in your Cargo.toml:

[dependencies]
chains-rs = "0.1.0"

Or use Cargo to add it directly:

cargo add chains-rs

Usage

Here's a basic example of how to use chains-rs:

use chains_rs::blockchain::Blockchain;
use chains_rs::binance::BinanceBlockchain;

fn main() {
    let binance = BinanceBlockchain;
    println!("Blockchain: {}", binance.name());
}

Documentation

The complete API documentation is available at: docs.rs/chains-rs