Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Transfer Refund

Once the user’s previous transfer status is TRANSFER_TO_BE_REFUNDED, FE(front-end) needs to handle as follows to bring back user’s assets to his/her wallet:

  1. Polling GetTransferStatus until transfer status is TRANSFER_TO_BE_CONFIRMED
  2. Submit on-chain withdraw request to cBridge contract with information provided by cBridge gateway in GetTransferStatus response
  3. Once the refund transaction succeeds, the refund flow is complete.

Note: Basically, it may take some time for gateway to prepare withdraw information. If the transfer status is stuck as TRANSFER_TO_BE_REFUNDED more than 30 minutes, you may contact our custom support