Docs

ethers5Adapter

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