Docs

ethers5Adapter

let ethers5Adapter: {
contract: {
fromEthers: (
options: FromEthersContractOptions,
) => Promise<Readonly<ContractOptions<Abi>>>;
toEthers: (twContract: Readonly<ContractOptions<[]>>) => Promise<Contract>;
};
provider: {
toEthers: (
client: ThirdwebClient,
chain: {
readonly blockExplorers?: Array<{
apiUrl?: string;
name: string;
url: string;
}>;
readonly id: number;
readonly name?: string;
readonly nativeCurrency?: {
decimals?: number;
name?: string;
symbol?: string;
};
readonly rpc: string;
readonly testnet?: true;
},
) => Provider;
};
signer: { fromEthers: (signer: Signer) => Promise<Account> };
};