Hierarchy (View Summary)

Constructors

Properties

appId: string
listeners: {
    connected?: (data: { network: SupernetType }) => void[];
    disconnected?: (data: { code: ErrorCode; reason: string }) => void[];
} = {}

Type declaration

  • Optionalconnected?: (data: { network: SupernetType }) => void[]

    ApiClient#connected - The client has been connected to the server.

  • Optionaldisconnected?: (data: { code: ErrorCode; reason: string }) => void[]

    ApiClient#disconnected - The client has been disconnected by the server, either authentication is lost or the server is unreachable.This event is not triggered when the client manually disconnects.

logger: Logger

Accessors

  • get auth(): null | { expiresAt: Date; token: string; walletAddress: string }
  • Returns null | { expiresAt: Date; token: string; walletAddress: string }

Methods