Docs

ethers6Adapter

let ethers6Adapter: {
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 experimental?: { increaseZeroByteCount?: boolean };
readonly id: number;
readonly name?: string;
readonly nativeCurrency?: {
decimals?: number;
name?: string;
symbol?: string;
};
readonly rpc: string;
readonly testnet?: true;
},
) => JsonRpcProvider;
};
signer: {
fromEthers: (signer: Signer) => Promise<Account>;
toEthers: (
client: ThirdwebClient,
wallet: Wallet,
) => Promise<Signer>;
};
};