ethers5Adapter

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

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