web3scan

Crates.ioweb3scan
lib.rsweb3scan
version0.1.100
sourcesrc
created_at2022-07-22 16:07:43.488542
updated_at2022-07-22 16:07:43.488542
descriptionWeb3Scan is a used for gathering information from EVM-based networks using Etherscan's API.
homepage
repositoryhttps://github.com/tonytins/web3scan
max_upload_size
id630890
size59,149
Tony Bark (tonytins)

documentation

README

Web3Scan

GitHub license GitHub Workflow Status (branch) GitHub commit activity Contributor Covenant

A descendant from the CoinMarket library, Web3Scan is a used for gathering information from EVM-based networks using Etherscan's API.

Installation

[dependencies]
coinmarket = "0.1"

Example

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);
}

Requirements

License

This project is dual-licensed under the BSD-3-Clause or the UNLICENSE.

Commit count: 4

cargo fmt