Class Relayer

Hierarchy

  • Relayer

Constructors

Properties

_address?: any
_chainId?: any
_fetched: any
_handleHTTPError: any
_miningFee?: any
_prices?: any
_propertiesFetched: any
_serviceFee?: any
_status?: any
_version?: any
httpClient: AxiosInstance
url: string

Accessors

  • get address(): string
  • Returns string

  • get chainId(): number
  • Returns number

  • get miningFeePercent(): number
  • Returns number

  • get prices(): Map<string, BigNumber>
  • Returns Map<string, BigNumber>

  • get serviceFeePercent(): number
  • Returns number

  • get status(): string
  • Returns string

  • get version(): string
  • Returns string

Methods

  • This function MUST be called to unlock the rest of the Relayer class functionality, as otherwise we don't have the property data necessary for all the logic we want.

    Returns Promise<RelayerProperties>

    Fetched RelayerProperties.

  • Parameters

    • token: string

    Returns Promise<BigNumber>

  • Cache relayer data into a PouchDB database in your cache folder. This will automatically fetch properties if they are not fetched.

    Returns Promise<void>

  • Construct a new Relayer by reading relayer data from cache.

    Parameters

    Returns Promise<Web.Relayer>

Generated using TypeDoc