- useSmartWallet<W>(personalWallet, options): {
connect: ((args?) => Promise<SmartWallet>);
predictAddress: ((args) => Promise<string>);
}
-
Parameters
-
-
options: SmartWalletConfig
Returns {
connect: ((args?) => Promise<SmartWallet>);
predictAddress: ((args) => Promise<string>);
}
-
connect: ((args?) => Promise<SmartWallet>)
-
- (args?): Promise<SmartWallet>
-
Parameters
-
Optional
args: {
connectPersonalWallet?: ((wallet) => Promise<void>);
connectionArgs?: Omit<SmartWalletConnectionArgs, "personalWallet">;
}
-
Optional
connectPersonalWallet?: ((wallet) => Promise<void>)
-
- (wallet): Promise<void>
-
Returns Promise<void>
-
Optional
connectionArgs?: Omit<SmartWalletConnectionArgs, "personalWallet">
Returns Promise<SmartWallet>
-
predictAddress: ((args) => Promise<string>)
-
- (args): Promise<string>
-
Parameters
-
args: {
data?: BytesLike;
personalWalletAddress: string;
}
-
Optional
data?: BytesLike
-
personalWalletAddress: string
Returns Promise<string>