Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TonClient

Hierarchy

  • TonClient

Index

Constructors

Properties

client: ClientModule
config: ClientConfig
context: undefined | number = undefined
contextCreation: undefined | ContextPromise[] = undefined
contextError: undefined | Error = undefined
crypto: CryptoModule
processing: ProcessingModule
proofs: ProofsModule
_default: null | TonClient = null
_defaultConfig: ClientConfig = {}

Accessors

Methods

  • close(): void
  • contextRequired(): Promise<number>
  • contextRequiredSync(): number
  • reject_app_request(app_request_id: null | number, error: any): Promise<void>
  • Parameters

    • app_request_id: null | number
    • error: any

    Returns Promise<void>

  • request(functionName: string, functionParams: any, responseHandler?: ResponseHandler): Promise<any>
  • requestSync(functionName: string, functionParams: any): any
  • Parameters

    • functionName: string
    • functionParams: any

    Returns any

  • resolveApiError(api: any, functionName: string, params: any, err: TonClientError): TonClientError
  • Parameters

    • api: any
    • functionName: string
    • params: any
    • err: TonClientError

    Returns TonClientError

  • resolveError(functionName: string, params: any, err: TonClientError): Promise<TonClientError>
  • Parameters

    • functionName: string
    • params: any
    • err: TonClientError

    Returns Promise<TonClientError>

  • resolveErrorSync(functionName: string, params: any, err: TonClientError): TonClientError
  • Parameters

    • functionName: string
    • params: any
    • err: TonClientError

    Returns TonClientError

  • resolve_app_request(app_request_id: null | number, result: any): Promise<void>
  • Parameters

    • app_request_id: null | number
    • result: any

    Returns Promise<void>

  • toHash128(d: string): string
  • toHash256(d: string): string
  • toHash512(d: string): string
  • toHash64(d: string): string
  • toHex(dec: string, bits?: number): string
  • Parameters

    • dec: string
    • bits: number = 0

    Returns string

  • toKey(d: string): string

Generated using TypeDoc