Get orders by hashes

POSThttps://api.1inch.com/fusion/orders/v1.0/{chain}/order/status
Supported on:
Solana

Parameters

chain
* number path

Request Body

OrdersByHashesInput object
orderHashes
* array
items
string
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const axios = require('axios');

async function httpCall() {
  const url = 'https://api.1inch.com/fusion/orders/v1.0/{chain}/order/status';

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {},
    paramsSerializer: {
      indexes: null,
    },
  };
  const body = {
    orderHashes: ['GxXW4Bhtn1xuFRgzAUNyMnYyBJgzvBALNPontUdmpENm'],
  };

  try {
    const response = await axios.post(url, body, config);
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

Returns

array
items
OrderFillsByHashOutput object
maker
* string
orderHash
* string
status
* number (Enum)
0
200
301
order
* any
allOf[0]
FusionOrderDto object
id
* number
srcAmount
* string
minDstAmount
* string
estimatedDstAmount
* string
expirationTime
* number
receiver
* string
srcAssetIsNative
* boolean
dstAssetIsNative
* boolean
fee
* any
allOf[0]
FeeDto object
protocolFee
* number
integratorFee
* number
surplusPercentage
* number
protocolDstAta
* string
integratorDstAta
* string
maxCancellationPremium
* string
dutchAuctionData
* any
allOf[0]
DutchAuctionDataDto object
startTime
* number
duration
* number
initialRateBump
* number
pointsAndTimeDeltas
* array
items
PointsAndDelta object
rateBump
* number
timeDelta
* number
srcMint
* string
dstMint
* string
cancellationAuctionDuration
* number
approximateTakingAmount
* string
cancelTx
* object
expirationTime
* number
fills
* array
items
FillOutput object
txSignature
* string
filledMakerAmount
* string
filledAuctionTakerAmount
* string
createdAt
* number
srcTokenPriceUsd
* object
dstTokenPriceUsd
* object
cancelable
* boolean
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[
  {
    "maker": "6uJb1VeHBzupesBi6xM9Sh98JhhfmM1nvMTYHL8Pd26b",
    "orderHash": "GxXW4Bhtn1xuFRgzAUNyMnYyBJgzvBALNPontUdmpENm",
    "status": 0,
    "order": {
      "id": 1,
      "srcAmount": "100000000000000000",
      "minDstAmount": "100000000000000000",
      "estimatedDstAmount": "100000000000000000",
      "expirationTime": 1634025600000,
      "receiver": "6uJb1VeHBzupesBi6xM9Sh98JhhfmM1nvMTYHL8Pd26b",
      "srcAssetIsNative": "true",
      "dstAssetIsNative": "false",
      "fee": {
        "protocolFee": 5,
        "integratorFee": 3,
        "surplusPercentage": 2,
        "protocolDstAta": "string",
        "integratorDstAta": "string",
        "maxCancellationPremium": "string"
      },
      "dutchAuctionData": {
        "startTime": 1715000000,
        "duration": 300,
        "initialRateBump": 1,
        "pointsAndTimeDeltas": [
          {
            "rateBump": 1,
            "timeDelta": 30
          }
        ]
      },
      "srcMint": "So11111111111111111111111111111111111111112",
      "dstMint": "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",
      "cancellationAuctionDuration": 1
    },
    "approximateTakingAmount": "970000000",
    "cancelTx": "5zXYv1KwMkGgyZ8hA5QYpMjPsnvPiK7PXivJLBX9vhvB",
    "expirationTime": 1715000000,
    "fills": [
      {
        "txSignature": "41EYz9L7196ZYPY9V61u33Dhp6dpg7nY1pVexbxBs36xCQLo1fnxvFMBBpjXnkg3ETrz1jnjLPWYvzpu8xDkP39K",
        "filledMakerAmount": "100000000000000000",
        "filledAuctionTakerAmount": "100000000000000000"
      }
    ],
    "createdAt": 1715000000,
    "srcTokenPriceUsd": 100,
    "dstTokenPriceUsd": 200,
    "cancelable": false
  }
]

Did you find what you need?