## RPC Client

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

### Hierarchy

- Client

## Index

### Constructors

- constructor

### Properties

- address
- addressPrefix
- backoff
- blockchain
- broadcast
- chainId
- database
- options
- seqNo
- timeout

### Methods

- call
- testnet

## Constructors

### constructor

- new Client(address: string, options?: ClientOptions): Client

- - Defined in client.ts:202

  #### Parameters

  - ##### address: string

    The address to the Steem RPC server, e.g. `https://steemd.steemit.com`.

  - ##### Default value options: ClientOptions = {}

    Client options.

  #### Returns Client

## Properties

### address

address: string

- Defined in client.ts:173

Address to Steem RPC server, read-only.

### addressPrefix

addressPrefix: string

- Defined in client.ts:198

Address prefix for current network.

### Private backoff

backoff: defaultBackoff

- Defined in client.ts:202

### blockchain

blockchain: Blockchain

- Defined in client.ts:188

Blockchain helper.

### broadcast

broadcast: BroadcastAPI

- Defined in client.ts:183

Broadcast API helper.

### chainId

chainId: Buffer

- Defined in client.ts:193

Chain ID for current network.

### database

database: DatabaseAPI

- Defined in client.ts:178

Database API helper.

### options

options: ClientOptions

- Defined in client.ts:168

Client options, read-only.

### Private seqNo

seqNo: number = 0

- Defined in client.ts:200

### Private timeout

timeout: number

- Defined in client.ts:201

## Methods

### call

- call(api: string, method: string, params?: any[]): Promise<any>

- - Defined in client.ts:232

  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>

### Static testnet

- testnet(options?: ClientOptions): Client

- - Defined in client.ts:154

  Create a new client instance configured for the testnet.

  #### Parameters

  - ##### Optional options: ClientOptions

  #### Returns Client

Generated using TypeDoc