0.0.3 • Published 12 months ago

viem-ethers-bridge v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Viem => Ethers.js bridge

Motivations

Without a doubt, I think that viem will shortly replace ethers.js as the reference web3 base library. While the tooling with wagmi is very useful for dApp developers, some third-party services will still only accept ethers.js objects.

This package allow to convert a viem WalletClient to a ethers.js v5 Signer.

Example

import { createWalletClient, custom } from 'viem';
import { WagmiSigner } from 'viem-ethers-bridge';
import { mainnet } from 'viem/chains';

const client = createWalletClient({
  chain: mainnet,
  transport: custom(window.ethereum),
});

const signer = new WagmiSigner(client);
// signer instanceof Signer === true
0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago