ethers6Adapter

The ethers6 adapter provides a way to convert between Thirdweb contracts, accounts, and providers.

let ethers6Adapter: {
contract: {
fromEthers: (
options: FromEthersContractOptions,
) => Promise<Readonly<ContractOptions<Abi>>>;
toEthers: (options: {
account?: Account;
thirdwebContract: Readonly<ContractOptions<[]>>;
}) => Promise<Contract>;
};
provider: {
toEthers: (options: {
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
}) => JsonRpcProvider;
};
signer: {
fromEthers: (options: { signer: Signer }) => Promise<Account>;
toEthers: (options: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
}) => Signer;
};
};