chains-rs

Crates.iochains-rs
lib.rschains-rs
version0.1.1
created_at2025-03-06 16:15:40.159105+00
updated_at2025-03-06 16:28:26.954477+00
descriptionBlockchain and asset definitions in Rust
homepage
repositoryhttps://github.com/ezex-io/chains
max_upload_size
id1581330
size33,475
Javad Rajabzadeh (Ja7ad)

documentation

https://docs.rs/chains-rs

README

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

Commit count: 67

cargo fmt