Skip to content

jiricekcz/etherscan

Repository files navigation

Etherscan.js

Etherscan.js is a JavaScript library for interacting with the Etherscan API.

Requirements

This library uses Axios for making HTTP requests. This means it is able to run in the browser and in Node.js.
When running in the browser, be aware, that API keys are exposed to the client.

Example

// Loads the library
import { API as Etherscan } from 'etherscan.js';

// Creates an instance of the API class with your key and network
const es = new Etherscan({
    key: {
        key: "YOUR_KEY_HERE",
        plan: "free"
        limit: 5
    },
    network: "mainnet"
});

// Retrieves account balance for an address using promises
console.log(await es.fetcher.getAccountBalance("0x2A20380DcA5bC24D052acfbf79ba23e988ad0050"))

About

Typescript wrapper for the etherscan API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published