FundApi - object-oriented interface

Export

FundApi

Hierarchy (view full)

Implements

Constructors

Properties

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

Methods

  • Create a new fund operation with an address.

    Parameters

    • walletId: string

      The ID of the wallet the address belongs to.

    • addressId: string

      The onchain address to be funded.

    • createFundOperationRequest: CreateFundOperationRequest
    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<FundOperation, any>>

    Summary

    Create a new fund operation.

    Throws

    Memberof

    FundApi

  • Create a new fund operation with an address.

    Parameters

    • walletId: string

      The ID of the wallet the address belongs to.

    • addressId: string

      The onchain address to be funded.

    • createFundQuoteRequest: CreateFundQuoteRequest
    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<FundQuote, any>>

    Summary

    Create a Fund Operation quote.

    Throws

    Memberof

    FundApi

  • Get fund operation.

    Parameters

    • walletId: string

      The ID of the wallet the address belongs to.

    • addressId: string

      The onchain address of the address that created the fund operation.

    • fundOperationId: string

      The ID of the fund operation to fetch.

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<FundOperation, any>>

    Summary

    Get fund operation.

    Throws

    Memberof

    FundApi

  • List fund operations for an address.

    Parameters

    • walletId: string

      The ID of the wallet the address belongs to.

    • addressId: string

      The onchain address of the address to list fund operations for.

    • 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<FundOperationList, any>>

    Summary

    List fund operations for an address.

    Throws

    Memberof

    FundApi