Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClientOptions

Hierarchy

  • ClientOptions

Index

Properties

Optional addressPrefix

addressPrefix: undefined | string

Blurt address prefix. Defaults to main network: BLT

Optional agent

agent: any

Node.js http(s) agent, use if you want http keep-alive. @see https://nodejs.org/api/http.html#http_new_agent_options.

Optional backoff

backoff: undefined | ((tries: number) => number)

Retry backoff function, returns milliseconds. Default = defaultBackoff.

Optional chainId

chainId: undefined | string

Blurt chain id. Defaults cd8d90f29ae273abec3eaa7731e25934c63eb654d55080caff2ebb7f5df6381f

Optional consoleOnFailover

consoleOnFailover: undefined | false | true

Whether a console.log should be made when RPC failed over to another one

Optional failoverThreshold

failoverThreshold: undefined | number

Specifies the amount of times the urls (RPC nodes) should be iterated and retried in case of timeout errors. (important) Requires url parameter to be an array (string[])! Can be set to 0 to iterate and retry forever. Defaults to 3 rounds.

Optional timeout

timeout: undefined | number

how long to wait in milliseconds before giving up on a rpc call. Defaults to 60 * 1000 ms.

Generated using TypeDoc