Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace CalculateBusyThreshold

Index

References

Renames and re-exports calculateBusyThreshold

Functions

  • calculateBusyThreshold(ethQuery: any): Promise<BN>
  • Uses historical base fees to determine a threshold we can use to determine whether the network is busy. Specifically, pulls the last 20,000 blocks (which at the time of this writing represents around 2 days), sorts the base fees of those blocks, then chooses the base fee which is 9/10 of the way into the list (i.e. the 90th percentile).

    Parameters

    • ethQuery: any

      An EthQuery instance.

    Returns Promise<BN>

    A promise for the 90th percentile base fee in WEI, as a BN.

Generated using TypeDoc