SmartWalletsApi - object-oriented interface

Export

SmartWalletsApi

Hierarchy (view full)

Implements

Constructors

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • 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<AxiosResponse<UserOperation, any>>

    Summary

    Broadcast a user operation

    Throws

    Memberof

    SmartWalletsApi

  • 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<AxiosResponse<UserOperation, any>>

    Summary

    Create a new user operation

    Throws

    Memberof

    SmartWalletsApi

  • Get smart wallet

    Parameters

    • smartWalletAddress: string

      The address of that smart wallet to fetch.

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<SmartWallet, any>>

    Summary

    Get smart wallet by address

    Throws

    Memberof

    SmartWalletsApi

  • 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<AxiosResponse<UserOperation, any>>

    Summary

    Get user operation

    Throws

    Memberof

    SmartWalletsApi

  • 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<AxiosResponse<SmartWalletList, any>>

    Summary

    List smart wallets

    Throws

    Memberof

    SmartWalletsApi