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

> revertCrosschainTransfer(
    connection: Connection ,
    pendingTransfer: TransferRef ,
): Web3PromiEvent<void, { hop: HopData }> Reverts a cross chain t

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

Function

# revertCrosschainTransfer

* ```signature
  revertCrosschainTransfer(
      connection: Connection,
      pendingTransfer: TransferRef,
  ): Web3PromiEvent<void, { hop: HopData }>
  ```

  Reverts a cross chain transfer that has timed out. I.e., returns the asset back to the sender account after the transfer
  failed to be completed before the timeout. If the transfer has reached its final destination but you want to recall it,
  use [recallUnclaimedCrosschainTransfer](https://docs.chromia.com/pages/ft4-ts-client/functions/crosschain.recallUnclaimedCrosschainTransfer/)

  #### Parameters

  + connection: [Connection](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.Connection/)

    connection to the source chain. I.e., the chain where the account that originally sent the assets are registered.
  + pendingTransfer: [TransferRef](https://docs.chromia.com/pages/ft4-ts-client/types/crosschain.TransferRef/)

    the transfer to revert. Can be acquired using [getPendingCrosschainTransfers](https://docs.chromia.com/pages/ft4-ts-client/interfaces/accounts.Account/#getpendingcrosschaintransfers)

  #### Returns Web3PromiEvent<void, { hop: [HopData](https://docs.chromia.com/pages/ft4-ts-client/types/crosschain.HopData/) }>

  a promi-event that will emit once for each hop during the revert. It will resolve once the transfer is completely reverted.

  #### Remarks

  If this function is called before the transfer has timed out, the promise will be rejected

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