Docs
chromia.com

Function

loadOperationFromTransaction

  • loadOperationFromTransaction(
        tx: RawGtx | SignedTransaction,
        opIndex: number,
    ): Operation

    Extracts one operation from a transaction. Useful e.g., to determine what arguments was passed to a certain operation.

    Parameters

    • tx: RawGtx | SignedTransaction

      the transaction which contains the operation

    • opIndex: number

      at what index the operation can be found

    Returns Operation

    the operation at the specified index