// import Withdraw liquidity request
} from "../ts-proto/sgn/gateway/v1/gateway_pb";
// import WithdrawReq message
} from "../ts-proto/sgn/cbridge/v1/tx_pb";
// import grpc-web WebClient
} from "../ts-proto/sgn/gateway/v1/GatewayServiceClientPb";
const timestamp = Math.floor(Date.now() / 1000);
const withdrawReq = new WithdrawReq();
withdrawReq.setReqId(timestamp);
withdrawReq.setXferId(transferId);
withdrawReq.setWithdrawType(WithdrawType.WITHDRAW_TYPE_REFUND_TRANSFER);
const request = new WithdrawLiquidityRequest();
request.setWithdrawReq(withdrawReq.serializeBinary());
request.setMethodType(WithdrawMethodType.WD_METHOD_TYPE_ONE_RM)
const client = new WebClient(`https://cbridge-prod2.celer.network`, null, null);
const response = await client.withdrawLiquidity((request, null);