Get cancelable orders
Retrieves a paginated list of fusion orders that are eligible to be cancelled by resolvers. These are typically expired or unfillable orders.
Supported on: Ethereum Base Solana BNB Chain Optimism Polygon Linea Sonic Unichain Arbitrum Avalanche ZKsync Gnosis
Parameters
chain
* number path page
integer queryPage number for pagination (1-based index)
limit
integer queryMaximum number of cancelable orders to return per page
Request 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
25
const axios = require('axios');
async function httpCall() {
const url =
'https://api.1inch.com/fusion/orders/v2.0/{chain}/order/cancelable-by-resolvers';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {},
paramsSerializer: {
indexes: null,
},
};
const body = {};
try {
const response = await axios.get(url, body, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
200
400
500
Paginated list of orders that can be canceled by the resolvers
meta
*Meta object Pagination metadata for list responses
totalItems
* number Total number of items across all pages
itemsPerPage
* number Number of items per page
totalPages
* number Total number of pages available
currentPage
* number Current page number (1-based)
items
* array Array of cancelable orders
items
CancelableOrderItemOutput object Cancelable order item with order details and remaining amount
orderHash
* string Order hash
order
* any Order object (raw Fusion order struct)
allOf[0]
FusionOrderV4 object Fusion order structure compatible with the 1inch Limit Order Protocol v4
salt
* string Some unique value. It is necessary to be able to create limit orders with the same parameters (so that they have a different hash), Lowest 160 bits of the order salt must be equal to the lowest 160 bits of the extension hash
maker
* string Address of the account creating the order (maker).
receiver
* string Address of the account receiving the assets (receiver), if different from maker.
makerAsset
* string Identifier of the asset being offered by the maker.
takerAsset
* string Identifier of the asset being requested by the maker in exchange.
makingAmount
* string Amount of the makerAsset being offered by the maker.
takingAmount
* string Amount of the takerAsset being requested by the maker.
makerTraits
* string Includes some flags like, allow multiple fills, is partial fill allowed or not, price improvement, nonce, deadline etc.
maker
* string Maker address
extension
* string Extension
remainingMakerAmount
* string Remaining maker amount as string
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
{
"meta": {
"totalItems": 0,
"itemsPerPage": 0,
"totalPages": 0,
"currentPage": 0
},
"items": [
{
"orderHash": "string",
"order": {
"salt": "string",
"maker": "string",
"receiver": "string",
"makerAsset": "string",
"takerAsset": "string",
"makingAmount": "string",
"takingAmount": "string",
"makerTraits": "string"
},
"maker": "string",
"extension": "string",
"remainingMakerAmount": "string"
}
]
}