Build create order unsigned transaction
Supported on: Solana
Parameters
chain
* number path quoteId
* string queryId of the quote received from /quote
serialize
boolean queryWhen enabled -> receive ready to sign transaction, otherwise receive instructions and accounts
versionedTransaction
boolean queryWhen enabled and serialize==true -> receive serialized VersionedTransaction instead of Message0
Request Body
receiver
string Custom receiver account public key
preset
string (Enum)Preset for order price curve. By default: recommended preset from a quote
fast
slow
medium
priorityFee
string Priority price per compute unit in microlamports
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
26
27
28
const axios = require('axios');
async function httpCall() {
const url = 'https://api.1inch.com/fusion/quoter/v1.0/{chain}/build';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {},
paramsSerializer: {
indexes: null,
},
};
const body = {
receiver: 'string',
preset: 'fast',
priorityFee: 'string',
};
try {
const response = await axios.post(url, body, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
200 response doesn’t have payload.