Class Node

Hierarchy

  • Node

Constructors

Properties

Accessors

Methods

Constructors

Properties

node: Node
rateLimited: boolean = false

Accessors

  • get name(): string
  • Get node's name/identifier

    Returns string

  • get password(): string
  • Get node's password

    Returns string

  • get url(): string
  • Get Node's url

    Returns string

Methods

  • Enable a ratelimited node in case the issue has been fixed

    Returns Node

  • get<T>(path: string, params?: { [key: string]: any }[]): Promise<T>
  • Make a get request

    Type Parameters

    • T = unknown

    Parameters

    • path: string
    • Optional params: { [key: string]: any }[]

    Returns Promise<T>

  • request(method: string, path: string, params?: { [key: string]: any }[]): Promise<any>
  • Make a request to node

    Parameters

    • method: string
    • path: string
    • Optional params: { [key: string]: any }[]

    Returns Promise<any>

  • validateNode(): Promise<void>
  • Validate the password

    Returns Promise<void>

Generated using TypeDoc