interface WalletWithPersonalWallet extends Wallet { autoConnect: (options: { personalWallet: Wallet }) => Promise<Account>; connect: (options?: any) => Promise<Account>;
disconnect: () => Promise<void>;
estimateGas: (tx: PreparedTransaction) => Promise<bigint>;
events: {
addListener: WalletEventListener;
removeListener: WalletEventListener;
};
metadata: WalletMetadata;
switchChain: (newChainId: {
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;
}) => Promise<void>;
getAccount: () => undefined | Account;
getChain: () =>
| undefined
| {
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;
};
}