Contract: Pool-Based Transfer Refund
Get refund transaction info from cBridge gateway and submit the transaction on-chain. Then cBridge contract will transfer corresponding assets back to user's address on source chain
Implementation
Here is the abi for Bridge: https://github.com/celer-network/cBridge-typescript-client/tree/main/contract/abi/Bridge.sol
Request Parameters
All information is given by cBridge gateway in getTransferStatus response
wdmsg | BytesLike | wd_onchain |
sigs | Array<BytesLike> | sorted_sigs |
signers | Array<String> | signers |
powers | Array<BigNumber> | powers |
Notice: Since the types of parameters are different between getTransferStatus response and withdraw request, please convert them accordingly. See details in the below code sample
Response
Since this function is an Ethereum on-chain transaction, the response is the corresponding transaction response.
Last updated