Upgrade ethers.js to 5.6.2 to activate ENS L2/Offchain integration
Highlights ethers.js: March 2022
A quick update on ethers; CCIP Read, ENS Wildcards and Cloudflare Workers.
As RicMoo recently announced, the latest ethers.js comes with two important features that enable ENS L2/Offchain integration.
You should not need to change any of your code as long as your app is interacting with ENS through etherjs ENS methods .
Here is the minimum code to test the integration.
offchainexample.eth points to so-called “offchain resolver” that fetches data from JSON configuration file hosted on google app engine and respond to any record for offchainexample.eth and its subdomain record (such as
2.offchainexample.eth The example is not using L2 data but the same mechanism works when the L2 resolver becomes ready).
Running the script should show the output like this.
The name points to the same resolver on both mainnet and all other testnets (Ropsten, Rinkeby, and Goerli).
For more information, please refer to the following docs and please let us know the integration result so that we can update our record
We have already contacted many Dapps to encourage upgrading the ethers.js If you have any issues on integration, please let us know on #technology channel on our Discord server.