Get order by hash
Supported on: Solana
Parameters
chain
* number path orderHash
* string pathRequest Body
This request doesn’t have any request body.
JavaScript
Copy
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
maker
* string Address of the account creating the order (maker).
orderHash
* string Order hash.
status
* number (Enum)Order status.
0
200
301
order
* any Detailed structure of the Solana Fusion Order.
allOf[0]
FusionOrderDto object id
* number Unique id of the order.
srcAmount
* string Amount of the makerAsset being offered by the maker.
minDstAmount
* string Min amount of the dstMint being received.
estimatedDstAmount
* string Market amount of the dstMint being offered by the maker.
expirationTime
* number expiration time by which the order must be filled in seconds.
receiver
* string Address of the account receiving the assets (receiver), if different from maker.
srcAssetIsNative
* boolean if native address is used as source asset
dstAssetIsNative
* boolean if native address is used as destination asset
fee
* any Structure of Fee data.
allOf[0]
FeeDto object protocolFee
* number Fee portion from amount scaled by 1e5. E.g. 1000 -> 1%
integratorFee
* number Fee portion from amount scaled by 1e5. E.g. 1000 -> 1%
surplusPercentage
* number Surplus percentage
protocolDstAta
* string Destination ATA for protocol fee
integratorDstAta
* string Destination ATA for integrator fee
dutchAuctionData
* any Structure of dutch auctioln data.
allOf[0]
DutchAuctionDataDto object startTime
* number Auction start time in Unix timestamp in seconds
duration
* number Auction duration in seconds
initialRateBump
* number Initial rate bump percentage
pointsAndTimeDeltas
* array Auction rate adjustments over time
items
PointsAndDelta object rateBump
* number Rate bump percentage, 10_000_000 means 100%
timeDelta
* number Time delta in seconds
srcMint
* string Source token mint address
dstMint
* string Destination token mint address
cancellationAuctionDuration
* number Cancellation auction duration in seconds.
approximateTakingAmount
* string Approximate amount of the taker asset being requested.
cancelTx
* object Cancel transaction signature (null if not canceled).
expirationTime
* number When order will be expired (Unix timestamp).
fills
* array items
FillOutput object txSignature
* string Transaction hash
filledMakerAmount
* string Amount of the makerAsset filled.
filledAuctionTakerAmount
* string Amount of the takerAsset filled.
createdAt
* number Creation timestamp of the order (Unix timestamp in seconds).
srcTokenPriceUsd
* object dstTokenPriceUsd
* object cancelable
* boolean Can be canceled
JSON
Copy
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
}