Function getL2HashFromPriorityOp

  • Returns the hash of the L2 priority operation from a given transaction receipt and L2 address.

    Parameters

    • txReceipt: TransactionReceipt

      The receipt of the L1 transaction.

    • zkSyncAddress: string

      The address of the ZKsync Era main contract.

    Returns string

    The hash of the L2 priority operation.