Returns order offers for unlock authorities
curl --request POST \
--url https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"giveChainIds": [
1,
137,
250
],
"orderStates": [
"Fulfilled",
"SentUnlock"
],
"unlockAuthorities": "0x510c9d0c01d27947ad8dad65a39feb5031b689b2",
"skip": 0,
"take": 1
}
'import requests
url = "https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities"
payload = {
"giveChainIds": [1, 137, 250],
"orderStates": ["Fulfilled", "SentUnlock"],
"unlockAuthorities": "0x510c9d0c01d27947ad8dad65a39feb5031b689b2",
"skip": 0,
"take": 1
}
headers = {"Content-Type": "application/json-patch+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
giveChainIds: [1, 137, 250],
orderStates: ['Fulfilled', 'SentUnlock'],
unlockAuthorities: '0x510c9d0c01d27947ad8dad65a39feb5031b689b2',
skip: 0,
take: 1
})
};
fetch('https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities', 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-api.debridge.finance/api/Orders/getForUnlockAuthorities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'giveChainIds' => [
1,
137,
250
],
'orderStates' => [
'Fulfilled',
'SentUnlock'
],
'unlockAuthorities' => '0x510c9d0c01d27947ad8dad65a39feb5031b689b2',
'skip' => 0,
'take' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json-patch+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities"
payload := strings.NewReader("{\n \"giveChainIds\": [\n 1,\n 137,\n 250\n ],\n \"orderStates\": [\n \"Fulfilled\",\n \"SentUnlock\"\n ],\n \"unlockAuthorities\": \"0x510c9d0c01d27947ad8dad65a39feb5031b689b2\",\n \"skip\": 0,\n \"take\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"giveChainIds\": [\n 1,\n 137,\n 250\n ],\n \"orderStates\": [\n \"Fulfilled\",\n \"SentUnlock\"\n ],\n \"unlockAuthorities\": \"0x510c9d0c01d27947ad8dad65a39feb5031b689b2\",\n \"skip\": 0,\n \"take\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"giveChainIds\": [\n 1,\n 137,\n 250\n ],\n \"orderStates\": [\n \"Fulfilled\",\n \"SentUnlock\"\n ],\n \"unlockAuthorities\": \"0x510c9d0c01d27947ad8dad65a39feb5031b689b2\",\n \"skip\": 0,\n \"take\": 1\n}"
response = http.request(request)
puts response.read_body{
"orders": [
{
"orderId": {
"bytesValue": "0qcOs1Ad8JrlStmCRHrE8Ul4DZDsqx5GZFhq9Tajo20=",
"bytesArrayValue": "[210,167,14,179,80,29,240,154,229,74,217,130,68,122,196,241,73,120,13,144,236,171,30,70,100,88,106,245,54,163,163,109]",
"stringValue": "0xd2a70eb3501df09ae54ad982447ac4f149780d90ecab1e4664586af536a3a36d"
},
"giveTokenAddress": {
"Base64Value": "J5G8ofLeRmHtiKMMmaepRJqoQXQ=",
"bytesArrayValue": "[39,145,188,161,242,222,70,97,237,136,163,12,153,167,169,68,154,168,65,116]",
"stringValue": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"
},
"finalGiveAmount": {
"bytesValue": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABC4aE=",
"bytesArrayValue": "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,225,161]",
"bigIntegerValue": 4383137,
"stringValue": "4383137"
}
}
],
"totalCount": 1
}{
"message": "<string>",
"errorCode": 123
}{
"message": "<string>",
"errorCode": 123
}{
"message": "<string>",
"errorCode": 123
}Orders
Returns order offers for unlock authorities
POST
/
api
/
Orders
/
getForUnlockAuthorities
Returns order offers for unlock authorities
curl --request POST \
--url https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"giveChainIds": [
1,
137,
250
],
"orderStates": [
"Fulfilled",
"SentUnlock"
],
"unlockAuthorities": "0x510c9d0c01d27947ad8dad65a39feb5031b689b2",
"skip": 0,
"take": 1
}
'import requests
url = "https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities"
payload = {
"giveChainIds": [1, 137, 250],
"orderStates": ["Fulfilled", "SentUnlock"],
"unlockAuthorities": "0x510c9d0c01d27947ad8dad65a39feb5031b689b2",
"skip": 0,
"take": 1
}
headers = {"Content-Type": "application/json-patch+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
giveChainIds: [1, 137, 250],
orderStates: ['Fulfilled', 'SentUnlock'],
unlockAuthorities: '0x510c9d0c01d27947ad8dad65a39feb5031b689b2',
skip: 0,
take: 1
})
};
fetch('https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities', 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-api.debridge.finance/api/Orders/getForUnlockAuthorities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'giveChainIds' => [
1,
137,
250
],
'orderStates' => [
'Fulfilled',
'SentUnlock'
],
'unlockAuthorities' => '0x510c9d0c01d27947ad8dad65a39feb5031b689b2',
'skip' => 0,
'take' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json-patch+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities"
payload := strings.NewReader("{\n \"giveChainIds\": [\n 1,\n 137,\n 250\n ],\n \"orderStates\": [\n \"Fulfilled\",\n \"SentUnlock\"\n ],\n \"unlockAuthorities\": \"0x510c9d0c01d27947ad8dad65a39feb5031b689b2\",\n \"skip\": 0,\n \"take\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"giveChainIds\": [\n 1,\n 137,\n 250\n ],\n \"orderStates\": [\n \"Fulfilled\",\n \"SentUnlock\"\n ],\n \"unlockAuthorities\": \"0x510c9d0c01d27947ad8dad65a39feb5031b689b2\",\n \"skip\": 0,\n \"take\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dln-api.debridge.finance/api/Orders/getForUnlockAuthorities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"giveChainIds\": [\n 1,\n 137,\n 250\n ],\n \"orderStates\": [\n \"Fulfilled\",\n \"SentUnlock\"\n ],\n \"unlockAuthorities\": \"0x510c9d0c01d27947ad8dad65a39feb5031b689b2\",\n \"skip\": 0,\n \"take\": 1\n}"
response = http.request(request)
puts response.read_body{
"orders": [
{
"orderId": {
"bytesValue": "0qcOs1Ad8JrlStmCRHrE8Ul4DZDsqx5GZFhq9Tajo20=",
"bytesArrayValue": "[210,167,14,179,80,29,240,154,229,74,217,130,68,122,196,241,73,120,13,144,236,171,30,70,100,88,106,245,54,163,163,109]",
"stringValue": "0xd2a70eb3501df09ae54ad982447ac4f149780d90ecab1e4664586af536a3a36d"
},
"giveTokenAddress": {
"Base64Value": "J5G8ofLeRmHtiKMMmaepRJqoQXQ=",
"bytesArrayValue": "[39,145,188,161,242,222,70,97,237,136,163,12,153,167,169,68,154,168,65,116]",
"stringValue": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"
},
"finalGiveAmount": {
"bytesValue": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABC4aE=",
"bytesArrayValue": "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,225,161]",
"bigIntegerValue": 4383137,
"stringValue": "4383137"
}
}
],
"totalCount": 1
}{
"message": "<string>",
"errorCode": 123
}{
"message": "<string>",
"errorCode": 123
}{
"message": "<string>",
"errorCode": 123
}Body
application/json-patch+jsonapplication/jsontext/jsonapplication/*+json
If set, only orders that originated in specified chains will be in the output
If set, only orders that are in specified states, will be in the output
Available options:
None, Created, Fulfilled, SentUnlock, OrderCancelled, SentOrderCancel, ClaimedUnlock, ClaimedOrderCancel If set, only orders that have a specified address as unlock authority in destination chain will be in the output Multiple values can be specified at the same time (with space as separator), if many values are specified, result will contain all orders that fit at least one of the criteria
items to skip (pagination)
Number of items to return (pagination)
⌘I