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
}'
{
  "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
}

Body

giveChainIds
integer[] | null

If set, only orders that originated in specified chains will be in the output

orderStates
enum<string>[] | null

If set, only orders that are in specified states, will be in the output

unlockAuthorities
string | null

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

skip
integer

items to skip (pagination)

take
integer

Number of items to return (pagination)

Response

OK

orders
object[] | null

Orders from requested page of the search result

totalCount
integer

Total number of orders fitting the search criteria