Function useSmartWallet

  • Type Parameters

    Parameters

    • personalWallet: WalletConfig<W>
    • options: SmartWalletConfigOptions

    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>
                • Parameters

                  • wallet: W

                  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>

Generated using TypeDoc