ethers6Adapter
The ethers6 adapter provides a way to convert between Thirdweb contracts, accounts, and providers.
let ethers6Adapter: {  contract: {    fromEthers: (      options: FromEthersContractOptions,    toEthers: (options: {    }) => Promise<Contract>;  };  provider: {    toEthers: (options: {    }) => JsonRpcProvider;  };  signer: {    toEthers: (options: {    }) => Signer;  };};
Converts a ThirdwebContract to an ethers.js Contract or the other way around.
type contract = {  fromEthers: (    options: FromEthersContractOptions,  toEthers: (options: {  }) => Promise<Contract>;};
import { ethers6Adapter } from "thirdweb/adapters/ethers6";const ethersContract = await ethers6Adapter.contract.toEthers({  thirdwebContract,  account,});
import { ethers6Adapter } from "thirdweb/adapters";const contract = ethers6Adapter.contract.fromEthers({  client,  chain,  ethersContract,});
Converts a Thirdweb client and chain ID into an ethers.js provider.
type provider = {  toEthers: (options: {  }) => JsonRpcProvider;};
import { ethers6Adapter } from "thirdweb/adapters/ethers6";const provider = ethers6Adapter.provider.toEthers({ client, chain });
Converts an ethers6 Signer into an Wallet object or the other way around.
type signer = {  toEthers: (options: {  }) => Signer;};
import { ethers6Adapter } from "thirdweb/adapters/ethers6";const signer = ethers6Adapter.signer.fromEthersSigner({ signer });
import { ethers6Adapter } from "thirdweb/adapters/ethers6";const signer = await ethers6Adapter.signer.toEthers({  client,  chain,  account,});