@dynamic-labs/ethers-v6 directly in the component where you are using them.
Overview & Setup
Using Ethers
The SDK and above ships with Viem by default as it is much lighter than Ethers and is generally more performant.
We have also made viem a peerDependency to avoid bundling it multiple times, as other packages such as wagmi also need it.
For the above reason, viem will be installed as a peerDependency when you install the SDK with npm, even if you want to use Ethers.
Dynamic only supports version v6+ of Ethers. In order to use it, simply import the ethers methods you need from
Was this page helpful?