Crates.io | anychain-ethereum |
lib.rs | anychain-ethereum |
version | 0.1.19 |
source | src |
created_at | 2023-06-10 16:05:19.720572 |
updated_at | 2024-11-03 09:00:38.726751 |
description | A Rust library for Ethereum-focused cryptocurrency wallets, enabling seamless transactions on the Ethereum blockchain |
homepage | https://www.cregis.com |
repository | https://github.com/0xcregis/anychain |
max_upload_size | |
id | 886953 |
size | 63,613 |
anychain-ethereum
is a Rust crate that provides a simple and efficient way to interact with the Ethereum blockchain. This library aims to make it easy for developers to build applications that require Ethereum data and functionality without having to deal with the complexities of the underlying protocol.
This is the README for the anychain-ethereum crate, a Rust library that provides a simple and efficient way to interact with the Ethereum blockchain.
To use the anychain-ethereum crate in your Rust project, add the following to your Cargo.toml file:
[dependencies]
anychain-ethereum = "0.1.19"
Here's a simple example of how to use the anychain-ethereum crate to interact with the Ethereum blockchain:
use anychain_ethereum::{Ethereum, Network};
fn main() {
// Create an Ethereum instance for the desired network
let eth = Ethereum::new(Network::Mainnet);
// Get the balance of an Ethereum address
let address = "0x742d35Cc6634C0532925a3b844Bc454e4438f44e".parse().unwrap();
let balance = eth.get_balance(&address).unwrap();
println!("Balance: {} ETH", balance);
}
For more examples and detailed usage instructions, please refer to the documentation.
We welcome contributions to the anychain-ethereum crate! If you'd like to contribute, please follow these steps:
Before submitting your pull request, please ensure that your code adheres to the project's coding standards and that all tests pass.
The anychain-ethereum crate is licensed under the MIT License