Constructors

Methods

  • Detects if the current network is on the Galactica fork by checking the best block. This is an alias for isGalacticaForked('best').

    Parameters

    • revision: string | number = 'best'

      Block number or ID (e.g., 'best', 'finalized', or numeric)

    Returns Promise<boolean>

    A promise that resolves to true if Galactica fork is detected, false otherwise.

  • Checks if the given block is Galactica-forked by inspecting the block details.

    Criteria:

    • baseFeePerGas is defined (indicating a possible Galactica fork).

    Parameters

    • Optionalrevision: string | number

      Block number or ID (e.g., 'best', 'finalized', or numeric).

    Returns Promise<boolean>

    true if Galactica-forked, otherwise false.

    If the revision is invalid.