Class AbstractTezModule

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • provider: string
    • chain: string = 'main'
    • debugMode: boolean = false

    Returns AbstractTezModule

Properties

_chain: string
_debugMode: boolean
_provider: string

Accessors

  • get chain(): string
  • Returns string

  • set chain(value: string): void
  • Parameters

    • value: string

    Returns void

  • get debugMode(): boolean
  • Returns boolean

  • set debugMode(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

  • get provider(): string
  • Returns string

  • set provider(provider: string): void
  • Parameters

    • provider: string

    Returns void

Methods

  • Description

    Queries a node given a path and payload

    Returns

    The response of the query

    Example

    sotez.query(/chains/main/blocks/head) .then(head => console.log(head));

    Parameters

    • path: string

      The RPC path to query

    • Optional payload: any

      The payload of the query

    • Optional method: string

      The request method. Either 'GET' or 'POST'

    Returns Promise<any>

  • Parameters

    • provider: string
    • chain: string = ...

    Returns void

Generated using TypeDoc