# loadOperationFromTransaction · FT4 TypeScript client · Chromia Docs (concept)

> loadOperationFromTransaction(
    tx: RawGtx | SignedTransaction,
    opIndex: number,
): Operation Extracts one operation from a transaction. Useful e.g.,

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/utils.loadOperationFromTransaction/

Function

# loadOperationFromTransaction

* ```signature
  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

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/utils.loadOperationFromTransaction.html)Generated API reference, mirrored from the live docs
