| Crates.io | chains-rs |
| lib.rs | chains-rs |
| version | 0.1.1 |
| created_at | 2025-03-06 16:15:40.159105+00 |
| updated_at | 2025-03-06 16:28:26.954477+00 |
| description | Blockchain and asset definitions in Rust |
| homepage | |
| repository | https://github.com/ezex-io/chains |
| max_upload_size | |
| id | 1581330 |
| size | 33,475 |
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.
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
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());
}
The complete API documentation is available at: docs.rs/chains-rs