• SmartWalletsApi - axios parameter creator

    Parameters

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

    • broadcastUserOperation: ((smartWalletAddress, userOpHash, broadcastUserOperationRequest?, options?) => Promise<RequestArgs>)

      Broadcast a user operation

      Summary

      Broadcast a user operation

      Throws

        • (smartWalletAddress, userOpHash, broadcastUserOperationRequest?, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • createSmartWallet: ((createSmartWalletRequest?, options?) => Promise<RequestArgs>)

      Create a new smart wallet, not scoped to a given network.

      Summary

      Create a new smart wallet

      Throws

        • (createSmartWalletRequest?, options?): Promise<RequestArgs>
        • Parameters

          • Optional createSmartWalletRequest: CreateSmartWalletRequest
          • Optional options: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • createUserOperation: ((smartWalletAddress, networkId, createUserOperationRequest?, options?) => Promise<RequestArgs>)

      Create a new user operation on a smart wallet.

      Summary

      Create a new user operation

      Throws

        • (smartWalletAddress, networkId, createUserOperationRequest?, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • getSmartWallet: ((smartWalletAddress, options?) => Promise<RequestArgs>)

      Get smart wallet

      Summary

      Get smart wallet by address

      Throws

        • (smartWalletAddress, options?): Promise<RequestArgs>
        • Parameters

          • smartWalletAddress: string

            The address of that smart wallet to fetch.

          • Optional options: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • getUserOperation: ((smartWalletAddress, userOpHash, options?) => Promise<RequestArgs>)

      Get user operation

      Summary

      Get user operation

      Throws

        • (smartWalletAddress, userOpHash, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • listSmartWallets: ((limit?, page?, options?) => Promise<RequestArgs>)

      List smart wallets

      Summary

      List smart wallets

      Throws

        • (limit?, page?, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    Export