ethers.js/docs.wrm/api/providers/example-ens.js
2019-08-21 01:53:47 -04:00

16 lines
323 B
JavaScript

// <hide>
const { ethers } = require("./packages/ethers");
const provider = ethers.getDefaultProvider()
// </hide>
// Reverse lookup of an ENS by address...
provider.lookupAddress("0x6fC21092DA55B392b045eD78F4732bff3C580e2c");
//!
// Lookup an address of an ENS name...
provider.resolveName("ricmoo.firefly.eth");
//!