Crates.io | escan |
lib.rs | escan |
version | 0.2.0 |
source | src |
created_at | 2022-07-08 09:12:38.253509 |
updated_at | 2022-08-02 17:06:07.843934 |
description | Ξ Escan is a Rust API wrapper for Etherscan and its derivatives |
homepage | |
repository | https://github.com/BerzanXYZ/escan |
max_upload_size | |
id | 621703 |
size | 18,059 |
Ξ Escan is a Rust API wrapper for Etherscan and its derivatives
A production ready Rust Crate to work with Ethereum blockchain data
// Create your client
let client = Client::new(API_TOKEN, Chain::Ethereum); // Or Chain::BinanceSmartChain
// Get balance of an address
let bal = client.balance("0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8", Tag::Latest).await?;
// Print it
println!("{} ETH", bal);
// Prints:
// "1.927 ETH"
New chain supports are coming
add Escan to dependencies list in Cargo.toml
# ...
[dependencies]
# other deps
escan = "0.1.0"
# other deps
# also don't forget to add Tokio runtime
tokio = { version = "1.19.2", features = ["full"] }
🗸 Supported
✖️ Not supported
Pull requests are welcome
If you want to contribute just let me know ;)
Made with ❤️ by Berzan