Upgrade ethers.js to 5.6.1 to activate ENS L2/Offchain integration

This post was originally published here

As RicMoo recently announced, the latest ehters.js comes with two important features that enable ENS L2/Offchain integration.

  • ENSIP-10: Wildcard Resolution
  • EIP3668: CCIP Read: Secure offchain data retrieval

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

biswap

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.

Leave a Comment