## RPC Client options

### Hierarchy

- ClientOptions

## Index

### Properties

- addressPrefix
- agent
- backoff
- chainId
- consoleOnFailover
- failoverThreshold
- rebrandedApi
- timeout

## Properties

### Optional addressPrefix

addressPrefix: undefined | string

- Defined in client.ts:131

Hive address prefix. Defaults to main network: `STM`

### Optional agent

agent: any

- Defined in client.ts:163

Node.js http(s) agent, use if you want http keep-alive. Defaults to using https.globalAgent.

see

  https://nodejs.org/api/http.html#http_new_agent_options.

### Optional backoff

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

- Defined in client.ts:157

Retry backoff function, returns milliseconds. Default = defaultBackoff.

### Optional chainId

chainId: undefined | string

- Defined in client.ts:126

Hive chain id. Defaults to main hive network: need the new id? `beeab0de00000000000000000000000000000000000000000000000000000000`

### Optional consoleOnFailover

consoleOnFailover: undefined | false | true

- Defined in client.ts:152

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

### Optional failoverThreshold

failoverThreshold: undefined | number

- Defined in client.ts:147

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 rebrandedApi

rebrandedApi: undefined | false | true

- Defined in client.ts:167

Deprecated - don't use

### Optional timeout

timeout: undefined | number

- Defined in client.ts:139

Send timeout, how long to wait in milliseconds before giving up on a rpc call. Note that this is not an exact timeout, no in-flight requests will be aborted, they will just not be retried any more past the timeout. Can be set to 0 to retry forever. Defaults to 60 * 1000 ms.

Generated using TypeDoc