Web3Scan was originally intended as a direct descendant of CoinMarket library, focused on interaction with Web3 APIs from Etherscan, and other similar platforms. However, due to ongoing events in the Cryptocurrency and DeFi sector, such as hacks, rug pulls, exchanges collapsing and other events following the aftermath of the Terra blockchain's crash, the project is now deprecated and is no longer maintained.
APIKEY=[key]
use web3scan::Web3;
pub fn main() {
let network = Web3::new("api.etherscan.io");
let balance = network
.get_balance("0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B")
.expect("Parsing error");
println!("{}", balance);
}
- Rust 2021 Edition or later
- IDEs or Editors
In jurisdictions that recognize copyright waivers, I've waived all copyright and related or neighboring rights for to this project. In areas where these waivers are not recognized, BSD-3-Clause is enforced.