dpos-api-wrapper
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

errorAsResponse

errorAsResponse: boolean

Specify if error should be rewritten as response.

nodeAddress

nodeAddress: string

Default Node Address: ex: http://localhost:1234 (no leading slash)

timeout

timeout: number

Timeout for default DposAPI requests

Methods

newWrapper

  • newWrapper(nodeAddress: string, opts?: object): APIWrapper
  • Creates a new API Wrapper with the given node address. So that you can be connected to multiple nodes at once.

    Parameters

    • nodeAddress: string

      Ex: http://localhost:1234 (no leading slash)

    • Optional opts: object

      connection options

      • timeout: number

    Returns APIWrapper