Generates a transaction that cancels the given order
curl --request GET \
--url https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tximport requests
url = "https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx")
.asString();require 'uri'
require 'net/http'
url = URI("https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"to": "<string>",
"data": "<string>",
"value": "<string>",
"chainId": 123,
"from": "<string>",
"cancelBeneficiary": "<string>"
}{
"errorCode": 123,
"errorId": "INVALID_QUERY_PARAMETERS",
"errorMessage": "<string>",
"errorPayload": {}
}{
"errorCode": 123,
"errorId": "INTERNAL_SERVER_ERROR",
"errorMessage": "<string>",
"errorPayload": {}
}DLN
Generates a transaction that cancels the given order
This endpoint generates a transaction that cancels the given order. This transaction must be published to the destination chain of the order. Unlocked funds would be transferred to the address specified as the orderAuthority of the given order on the source chain. This transaction can only be executed by th orderAuthority of the given order on the destination chain
GET
/
v1.0
/
dln
/
order
/
{id}
/
cancel-tx
Generates a transaction that cancels the given order
curl --request GET \
--url https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tximport requests
url = "https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx")
.asString();require 'uri'
require 'net/http'
url = URI("https://dln.debridge.finance/v1.0/dln/order/{id}/cancel-tx")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"to": "<string>",
"data": "<string>",
"value": "<string>",
"chainId": 123,
"from": "<string>",
"cancelBeneficiary": "<string>"
}{
"errorCode": 123,
"errorId": "INVALID_QUERY_PARAMETERS",
"errorMessage": "<string>",
"errorPayload": {}
}{
"errorCode": 123,
"errorId": "INTERNAL_SERVER_ERROR",
"errorMessage": "<string>",
"errorPayload": {}
}