Get gasless swap active orders
Retrieves a paginated list of currently active gasless swap orders. Active orders are pending execution and available for resolvers to fill.
Supported on: Ethereum Base Solana BNB Chain Gnosis Optimism Polygon Linea Sonic Unichain Arbitrum Avalanche ZKsync
Parameters
chain
* number path page
integer queryPage number for pagination (1-based index). Offset is calculated as (page - 1) * limit
limit
integer queryMaximum number of active orders to return per page
version
string (Enum)queryFilter by settlement extension version. Supported values: 2.0 or 2.1. Omit to retrieve all versions
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
const axios = require('axios');
async function httpCall() {
const url = 'https://api.1inch.com/fusion/orders/v2.0/{chain}/order/active';
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 active Fusion orders with metadata
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 active orders
items
ActiveOrdersOutput object Active Fusion order with auction details and execution metadata
orderHash
* string i.e 0x806039f5149065924ad52de616b50abff488c986716d052e9c160887bc09e559
maker
* string Real maker address (extracted from signature for native orders)
signature
* string i.e 0x38de7c8c406c8668eec947d59679028c068735e56c8a41bcc5b3dc2d2229dec258424e0f06b189d2b87f9f3d9cdd9edcb7b3be4108bd8605d052c20c84e65ad61c
deadline
* string Deadline by which the order must be filled.
auctionStartDate
* string Start date of the auction for this order.
auctionEndDate
* string End date of the auction for this order.
quoteId
* object Identifier of the quote associated with this order.
remainingMakerAmount
* string Remaining amount of the maker asset that can still be filled.
isMakerContract
* boolean Is the maker of order is smart contract. Used to check which method to call to fill order.
extension
* object An interaction call data. ABI encoded set of makerAssetSuffix, takerAssetSuffix, makingAmountGetter, takingAmountGetter, predicate, permit, preInteraction, postInteraction.If extension exists then lowest 160 bits of the order salt must be equal to the lowest 160 bits of the extension hash
order
* any Detailed structure of the limit order according to the FusionOrderV4 specification.
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.
version
* string (Enum)Version of settlement contract. Supported: 2.0 and 2.1
2.0
2.1
2.2
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
{
"meta": {
"totalItems": 0,
"itemsPerPage": 0,
"totalPages": 0,
"currentPage": 0
},
"items": [
{
"orderHash": "string",
"maker": "0x995BE1CA945174D5bA75410C1E658a41eB13a2FA",
"signature": "string",
"deadline": "string",
"auctionStartDate": "string",
"auctionEndDate": "string",
"quoteId": null,
"remainingMakerAmount": "string",
"isMakerContract": false,
"extension": null,
"order": {
"salt": "string",
"maker": "string",
"receiver": "string",
"makerAsset": "string",
"takerAsset": "string",
"makingAmount": "string",
"takingAmount": "string",
"makerTraits": "string"
},
"version": "2.0"
}
]
}