#ethereum #wallet #blockchain #crypto #networking

no-std anychain-ethereum

A Rust library for Ethereum-focused cryptocurrency wallets, enabling seamless transactions on the Ethereum blockchain

20 releases

0.1.19 Nov 3, 2024
0.1.17 Aug 9, 2024
0.1.16 Jul 31, 2024
0.1.8 Dec 20, 2023
0.1.1 Jul 6, 2023

#246 in Magic Beans

Download history 256/week @ 2024-07-29 123/week @ 2024-08-05 29/week @ 2024-08-12 4/week @ 2024-08-19 4/week @ 2024-08-26 184/week @ 2024-09-02 26/week @ 2024-09-09 15/week @ 2024-09-16 59/week @ 2024-09-23 10/week @ 2024-09-30 2/week @ 2024-10-07 31/week @ 2024-10-14 69/week @ 2024-10-28 117/week @ 2024-11-04

217 downloads per month

MIT/Apache

94KB
2.5K SLoC

AnyChain Ethereum Crate

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.

Features

  • Easy interaction with Ethereum nodes
  • Support for multiple Ethereum networks (Mainnet, Ropsten, Rinkeby, etc.)
  • Sending and receiving transactions
  • Querying contract data
  • Deploying and interacting with smart contracts
  • Support for popular Ethereum wallets (e.g., MetaMask, Ledger, Trezor)

Installation

To use the anychain-ethereum crate in your Rust project, add the following to your Cargo.toml file:

[dependencies]
anychain-ethereum = "0.1.19"

Usage

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.

Contributing

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

  1. Fork the repository
  2. Create a new branch with your changes
  3. Submit a pull request to the main repository

Before submitting your pull request, please ensure that your code adheres to the project's coding standards and that all tests pass.

License

The anychain-ethereum crate is licensed under the MIT License

Dependencies

~5.5–8MB
~136K SLoC