Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace DetermineNetworkStatusInfo

Index

Type aliases

Functions

Type aliases

NetworkStatusInfo: { isNetworkBusy: boolean }

Type declaration

  • isNetworkBusy: boolean

Functions

  • default(args: { clientId: undefined | string; ethQuery: any; latestBaseFee: BN; url: string }): Promise<NetworkStatusInfo>
  • Collects information about the status of the network. Right now the only piece of information is whether the network is "busy" — i.e., whether the base fee for the latest block exceeds a particular "busy" threshold.

    Parameters

    • args: { clientId: undefined | string; ethQuery: any; latestBaseFee: BN; url: string }

      The arguments.

      • clientId: undefined | string

        The ID of the client making this request.

      • ethQuery: any

        An EthQuery instance.

      • latestBaseFee: BN

        The base fee for the latest block in WEI.

      • url: string

        The URL for the API used to determine a base fee threshold.

    Returns Promise<NetworkStatusInfo>

    The network status info.

Generated using TypeDoc