• autoload is a convenience helper for doing All The Things to load an ABI of a contract address, including resolving proxies.

    Parameters

    Returns Promise<AutoloadResult>

    import { ethers } from "ethers";
    import { whatsabi } from "@shazow/whatsabi";

    const provider = ethers.getDefaultProvider(); // substitute with your fav provider
    const address = "0x00000000006c3852cbEf3e08E8dF289169EdE581"; // Or your fav contract address

    // Quick-start:

    const result = await whatsabi.autoload(address, { provider });
    console.log(result.abi);
    // -> [ ... ]