--
Made with ❤️ at https://buidlguidl.com/
Contract: https://etherscan.io/address/0x4bc4a43cac594432ed4f48965e5bf5aca319f350
Using ethers, create an instance of your contract:
import { ethers ) from "ethers"
// ....
// ABI is located in the next file
const batchResolver = new ethers.Contract("0x4bC4a43Cac594432ED4F48965E5bf5aCA319f350", abi, signer);
const addresses: `0x${string}`[] = await ENSBatchResolver.batchResolveWithENSRegistry([
ethers.utils.namehash("owocki.eth"),
ethers.utils.namehash("possiblywrongENS.eth"),
ethers.utils.namehash("austingriffith.eth"),
]);
// invalid ENS names will be resolved to address(0)