TypeScript client for the Etherscan API
npm i --save @ethercast/etherscan-client
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);
}