Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 889 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 889 Bytes

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