Get order by hash

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

Parameters

chain
* number path
orderHash
* string path

Request Body

This request doesn’t have any request body.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const axios = require('axios');

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

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {},
    paramsSerializer: {
      indexes: null,
    },
  };

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

Returns

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
{
  "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?