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

> revertTransfer(
    initTransferTx: GTX,
    initTransferOpIndex: number,
    tx: GTX,
    operationIndex: number,
): Operation Builds an operation object 

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/crosschain.revertTransfer/

Function

# revertTransfer

* ```signature
  revertTransfer(
      initTransferTx: GTX,
      initTransferOpIndex: number,
      tx: GTX,
      operationIndex: number,
  ): Operation
  ```

  Builds an operation object that can be used to call `ft4.crosschain.revert_transfer` operation

  #### Parameters

  + initTransferTx: GTX

    the transaction that contains the init\_transfer operation for the transfer to revert
  + initTransferOpIndex: number

    the index of the transfer operation inside the `initTransferTx` transaction
  + tx: GTX

    the transaction that was submitted to this chain and which contains the transfer to revert
  + operationIndex: number

    the index inside the `tx` object at which the transfer to revert can be found

  #### Returns Operation

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