Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

  • new default(baseURL: string, opts?: { retryCount?: number; retryOn404?: boolean }): default

Properties

axios: AxiosInstance

Methods

  • createHotspot(opts: { payer?: string; transaction: string }): Promise<Response<{ solanaTransactions: number[][] }>>
  • Parameters

    • opts: { payer?: string; transaction: string }
      • Optional payer?: string
      • transaction: string

    Returns Promise<Response<{ solanaTransactions: number[][] }>>

  • execute<T>(method: Method, path: string, params?: Object): Promise<Response<T>>
  • get<T>(path: string, params?: Object): Promise<Response<T>>
  • getFirmware(): Promise<Response<{ version: string }>>
  • getMakers(): Promise<Response<Maker[]>>
  • getOnboardingRecord(gatewayAddress: string): Promise<Response<OnboardingRecord>>
  • onboard(opts: { hotspotAddress: string; payer?: string; type: HotspotType } & Partial<Metadata>): Promise<Response<{ solanaTransactions: number[][] }>>
  • onboardIot(opts: { hotspotAddress: string; payer?: string } & Partial<Metadata>): Promise<Response<{ solanaTransactions: number[][] }>>
  • onboardMobile(opts: { hotspotAddress: string; payer?: string } & Partial<Metadata>): Promise<Response<{ solanaTransactions: number[][] }>>
  • post<T>(path: string, params?: Object): Promise<Response<T>>
  • postPaymentTransaction(gatewayAddress: string, transaction: string): Promise<Response<{ solanaTransactions?: string[]; transaction: string }>>
  • updateIotMetadata(opts: Metadata & { hotspotAddress: string; payer?: string; solanaAddress: string }): Promise<Response<{ solanaTransactions: number[][] }>>
  • Parameters

    • opts: Metadata & { hotspotAddress: string; payer?: string; solanaAddress: string }

    Returns Promise<Response<{ solanaTransactions: number[][] }>>

  • updateMetadata(__namedParameters: Metadata & { hotspotAddress: string; payer?: string; solanaAddress: string; type: HotspotType }): Promise<Response<{ solanaTransactions: number[][] }>>
  • updateMobileMetadata(opts: Metadata & { hotspotAddress: string; payer?: string; solanaAddress: string }): Promise<Response<{ solanaTransactions: number[][] }>>
  • Parameters

    • opts: Metadata & { hotspotAddress: string; payer?: string; solanaAddress: string }

    Returns Promise<Response<{ solanaTransactions: number[][] }>>

Generated using TypeDoc