Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

RPC Client

Can be used in both node.js and the browser. Also see ClientOptions.

Hierarchy

  • Client

Index

Constructors

constructor

  • Parameters

    • address: string | string[]

      The address to the Blurt RPC server, e.g. https://rpc.blurt.world. or [https://rpc.blurt.world, https://another.api.com]

    • Default value options: ClientOptions = {}

      Client options.

    Returns Client

Properties

Readonly accountHistory

accountHistory: AccountHistoryAPI

Account History API helper

address

address: string | string[]

Address to Blurt RPC server. String or String[] read-only

Readonly addressPrefix

addressPrefix: string

Address prefix for current network.

Private backoff

backoff: typeof defaultBackoff

Readonly blockchain

blockchain: Blockchain

Blockchain helper

Readonly broadcast

broadcast: BroadcastAPI

Broadcast API helper

Readonly chainId

chainId: Buffer

Chain ID for current network.

Readonly condenser

condenser: CondenserAPI

Condenser API helper

Private consoleOnFailover

consoleOnFailover: boolean

currentAddress

currentAddress: string

Readonly database

database: DatabaseAPI

Database API helper.

Private failoverThreshold

failoverThreshold: number

Readonly nexus

nexus: Nexus

Nexus (A.k.a. Bridge) helper

Readonly options

options: ClientOptions

Client options, read-only.

Private timeout

timeout: number

Readonly tools

tools: Tools

Tools helper

Methods

call

  • call(api: string, method: string, params?: any): Promise<any>
  • Make a RPC call to the server.

    Parameters

    • api: string

      The API to call, e.g. database_api.

    • method: string

      The API method, e.g. get_dynamic_global_properties.

    • Default value params: any = []

      Array of parameters to pass to the method, optional.

    Returns Promise<any>

Generated using TypeDoc