Skip to content

Ethercast/etherscan-client

Repository files navigation

@ethercast/etherscan-client

Build Status codecov NPM version

TypeScript client for the Etherscan API

Install

npm i --save @ethercast/etherscan-client

Usage

import EtherscanClient from '@ethercast/etherscan-client';

async function printAbi() {
  const client = new EtherscanClient({ apiKey: 'my-key', apiUrl: 'https://api.etherscan.io/api' });
  const abi = await client.getAbi(SOME_CONTRACT_ADDRESS);
  console.log(abi);
}