• SmartWalletsApi - functional programming interface

    Parameters

    Returns {
        broadcastUserOperation(smartWalletAddress, userOpHash, broadcastUserOperationRequest?, options?): Promise<((axios?, basePath?) => AxiosPromise<UserOperation>)>;
        createSmartWallet(createSmartWalletRequest?, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartWallet>)>;
        createUserOperation(smartWalletAddress, networkId, createUserOperationRequest?, options?): Promise<((axios?, basePath?) => AxiosPromise<UserOperation>)>;
        getSmartWallet(smartWalletAddress, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartWallet>)>;
        getUserOperation(smartWalletAddress, userOpHash, options?): Promise<((axios?, basePath?) => AxiosPromise<UserOperation>)>;
        listSmartWallets(limit?, page?, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartWalletList>)>;
    }

    • broadcastUserOperation:function
      • Broadcast a user operation

        Parameters

        • smartWalletAddress: string

          The address of the smart wallet to broadcast the user operation from.

        • userOpHash: string

          The hash of the user operation to broadcast

        • Optional broadcastUserOperationRequest: BroadcastUserOperationRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<UserOperation>)>

        Summary

        Broadcast a user operation

        Throws

    • createSmartWallet:function
      • Create a new smart wallet, not scoped to a given network.

        Parameters

        • Optional createSmartWalletRequest: CreateSmartWalletRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartWallet>)>

        Summary

        Create a new smart wallet

        Throws

    • createUserOperation:function
      • Create a new user operation on a smart wallet.

        Parameters

        • smartWalletAddress: string

          The address of the smart wallet to create the user operation on.

        • networkId: string

          The ID of the network to create the user operation on.

        • Optional createUserOperationRequest: CreateUserOperationRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<UserOperation>)>

        Summary

        Create a new user operation

        Throws

    • getSmartWallet:function
      • Get smart wallet

        Parameters

        • smartWalletAddress: string

          The address of that smart wallet to fetch.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartWallet>)>

        Summary

        Get smart wallet by address

        Throws

    • getUserOperation:function
      • Get user operation

        Parameters

        • smartWalletAddress: string

          The address of the smart wallet the user operation belongs to.

        • userOpHash: string

          The hash of the user operation to fetch

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<UserOperation>)>

        Summary

        Get user operation

        Throws

    • listSmartWallets:function
      • List smart wallets

        Parameters

        • Optional limit: number

          A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

        • Optional page: string

          A cursor for pagination across multiple pages of results. Don&#39;t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartWalletList>)>

        Summary

        List smart wallets

        Throws

    Export