@swapkit/api-sdk-typescript 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts ADDED
@@ -0,0 +1,1882 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: 'http://localhost:8080' | 'https://api.swapkit.dev/tokenlist' | 'https://dev-api.swapkit.dev/tokenlist' | (string & {});
5
+ };
6
+
7
+ export type GetProvidersData = {
8
+ body?: never;
9
+ path?: never;
10
+ query?: never;
11
+ url: '/providers';
12
+ };
13
+
14
+ export type GetProvidersErrors = {
15
+ /**
16
+ * Default Response
17
+ */
18
+ 500: {
19
+ message: string;
20
+ error: string;
21
+ data?: unknown;
22
+ };
23
+ };
24
+
25
+ export type GetProvidersError = GetProvidersErrors[keyof GetProvidersErrors];
26
+
27
+ export type GetProvidersResponses = {
28
+ /**
29
+ * Default Response
30
+ */
31
+ 200: Array<{
32
+ name: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
33
+ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
34
+ displayName?: string;
35
+ displayNameLong?: string;
36
+ keywords?: Array<string>;
37
+ count: number;
38
+ logoURI?: string;
39
+ url?: string;
40
+ enabledChainIds?: Array<'42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
41
+ supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
42
+ supportedChainIds?: Array<'42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
43
+ }>;
44
+ };
45
+
46
+ export type GetProvidersResponse = GetProvidersResponses[keyof GetProvidersResponses];
47
+
48
+ export type GetTokensData = {
49
+ body?: never;
50
+ path?: never;
51
+ query?: {
52
+ /**
53
+ * Provider name
54
+ */
55
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
56
+ };
57
+ url: '/tokens';
58
+ };
59
+
60
+ export type GetTokensErrors = {
61
+ /**
62
+ * Default Response
63
+ */
64
+ 400: {
65
+ message: string;
66
+ error: string;
67
+ data?: unknown;
68
+ };
69
+ /**
70
+ * Default Response
71
+ */
72
+ 500: {
73
+ message: string;
74
+ error: string;
75
+ data?: unknown;
76
+ };
77
+ };
78
+
79
+ export type GetTokensError = GetTokensErrors[keyof GetTokensErrors];
80
+
81
+ export type GetTokensResponses = {
82
+ /**
83
+ * Default Response
84
+ */
85
+ 200: {
86
+ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
87
+ chainId?: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
88
+ name: string;
89
+ tags?: {
90
+ [key: string]: unknown;
91
+ };
92
+ timestamp: string;
93
+ version?: {
94
+ major: number;
95
+ minor: number;
96
+ patch: number;
97
+ };
98
+ keywords?: Array<string>;
99
+ count: number;
100
+ tokens: Array<{
101
+ chain?: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
102
+ address?: string;
103
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
104
+ ticker: string;
105
+ identifier: string;
106
+ symbol?: string;
107
+ name?: string;
108
+ decimals: number;
109
+ logoURI?: string;
110
+ extensions?: {
111
+ [key: string]: unknown;
112
+ };
113
+ shortCode?: string;
114
+ coingeckoId?: string;
115
+ }>;
116
+ logoURI?: string;
117
+ url?: string;
118
+ enabledChainIds?: Array<'42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
119
+ supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
120
+ supportedChainIds?: Array<'42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
121
+ } | Array<{
122
+ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
123
+ chainId?: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
124
+ name: string;
125
+ tags?: {
126
+ [key: string]: unknown;
127
+ };
128
+ timestamp: string;
129
+ version?: {
130
+ major: number;
131
+ minor: number;
132
+ patch: number;
133
+ };
134
+ keywords?: Array<string>;
135
+ count: number;
136
+ tokens: Array<{
137
+ chain?: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
138
+ address?: string;
139
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
140
+ ticker: string;
141
+ identifier: string;
142
+ symbol?: string;
143
+ name?: string;
144
+ decimals: number;
145
+ logoURI?: string;
146
+ extensions?: {
147
+ [key: string]: unknown;
148
+ };
149
+ shortCode?: string;
150
+ coingeckoId?: string;
151
+ }>;
152
+ logoURI?: string;
153
+ url?: string;
154
+ enabledChainIds?: Array<'42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
155
+ supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
156
+ supportedChainIds?: Array<'42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
157
+ }>;
158
+ };
159
+
160
+ export type GetTokensResponse = GetTokensResponses[keyof GetTokensResponses];
161
+
162
+ export type GetSwapToData = {
163
+ body?: never;
164
+ path?: never;
165
+ query: {
166
+ /**
167
+ * Asset to swap from
168
+ */
169
+ sellAsset: string;
170
+ };
171
+ url: '/swapTo';
172
+ };
173
+
174
+ export type GetSwapToErrors = {
175
+ /**
176
+ * Default Response
177
+ */
178
+ 400: {
179
+ message: string;
180
+ error: string;
181
+ data?: unknown;
182
+ };
183
+ /**
184
+ * Default Response
185
+ */
186
+ 500: {
187
+ message: string;
188
+ error: string;
189
+ data?: unknown;
190
+ };
191
+ };
192
+
193
+ export type GetSwapToError = GetSwapToErrors[keyof GetSwapToErrors];
194
+
195
+ export type GetSwapToResponses = {
196
+ /**
197
+ * Default Response
198
+ */
199
+ 200: Array<string>;
200
+ };
201
+
202
+ export type GetSwapToResponse = GetSwapToResponses[keyof GetSwapToResponses];
203
+
204
+ export type GetSwapFromData = {
205
+ body?: never;
206
+ path?: never;
207
+ query: {
208
+ /**
209
+ * Asset to swap to (target asset)
210
+ */
211
+ buyAsset: string;
212
+ };
213
+ url: '/swapFrom';
214
+ };
215
+
216
+ export type GetSwapFromErrors = {
217
+ /**
218
+ * Default Response
219
+ */
220
+ 400: {
221
+ message: string;
222
+ error: string;
223
+ data?: unknown;
224
+ };
225
+ /**
226
+ * Default Response
227
+ */
228
+ 500: {
229
+ message: string;
230
+ error: string;
231
+ data?: unknown;
232
+ };
233
+ };
234
+
235
+ export type GetSwapFromError = GetSwapFromErrors[keyof GetSwapFromErrors];
236
+
237
+ export type GetSwapFromResponses = {
238
+ /**
239
+ * Default Response
240
+ */
241
+ 200: Array<string>;
242
+ };
243
+
244
+ export type GetSwapFromResponse = GetSwapFromResponses[keyof GetSwapFromResponses];
245
+
246
+ export type PostChainflipBrokerChannelData = {
247
+ body: {
248
+ destinationAddress: string;
249
+ sellAsset: {
250
+ chain: string;
251
+ asset: string;
252
+ };
253
+ buyAsset: {
254
+ chain: string;
255
+ asset: string;
256
+ };
257
+ channelMetadata?: {
258
+ ccmAdditionalData?: string;
259
+ gasBudget?: string;
260
+ message?: string;
261
+ cfParameters?: string;
262
+ };
263
+ affiliateFees?: Array<{
264
+ brokerAddress: string;
265
+ feeBps: number;
266
+ }>;
267
+ refundParameters?: {
268
+ minPrice?: string;
269
+ refundAddress?: string;
270
+ retryDuration?: number;
271
+ };
272
+ dcaParameters?: {
273
+ chunkInterval?: number;
274
+ numberOfChunks?: number;
275
+ };
276
+ brokerCommissionBps?: number;
277
+ maxBoostFeeBps?: number;
278
+ };
279
+ path?: never;
280
+ query?: never;
281
+ url: '/chainflip/broker/channel';
282
+ };
283
+
284
+ export type PostChainflipBrokerChannelResponses = {
285
+ /**
286
+ * Default Response
287
+ */
288
+ 200: {
289
+ depositAddress: string;
290
+ channelId: string;
291
+ explorerUrl: string;
292
+ /**
293
+ * Error message
294
+ */
295
+ error?: string;
296
+ };
297
+ };
298
+
299
+ export type PostChainflipBrokerChannelResponse = PostChainflipBrokerChannelResponses[keyof PostChainflipBrokerChannelResponses];
300
+
301
+ export type PostTrackData = {
302
+ body?: {
303
+ /**
304
+ * Hash for the first transaction broadcasted by the end user. e.g. `88D1819378ECD09E5284C54937CDC1E99B52F253C007617A02DD1200710CE677`
305
+ */
306
+ hash?: string;
307
+ /**
308
+ * ChainId for the hash. e.g. `thorchain-1`
309
+ */
310
+ chainId?: string;
311
+ /**
312
+ * Block number. Required for Polkadot chain. e.g. `123456`
313
+ */
314
+ block?: number;
315
+ /**
316
+ * Deposit channel ID, required for Chainflip if tx was broadcasted without wallet connection
317
+ */
318
+ depositChannelId?: string;
319
+ /**
320
+ * Deposit address associated with a deposit channel
321
+ */
322
+ depositAddress?: string;
323
+ };
324
+ path?: never;
325
+ query?: {
326
+ forceUpdate?: string;
327
+ };
328
+ url: '/track';
329
+ };
330
+
331
+ export type PostTrackResponses = {
332
+ /**
333
+ * Default Response
334
+ */
335
+ 200: {
336
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
337
+ hash: string;
338
+ block: number;
339
+ type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate';
340
+ status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
341
+ trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
342
+ fromAsset: string;
343
+ fromAmount: string;
344
+ fromAddress: string;
345
+ toAsset: string;
346
+ toAmount: string;
347
+ toAddress: string;
348
+ finalAsset?: {
349
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
350
+ symbol: string;
351
+ ticker: string;
352
+ decimal?: number;
353
+ address?: string;
354
+ isGasAsset: boolean;
355
+ isSynthetic: boolean;
356
+ tax?: {
357
+ buy: number;
358
+ sell: number;
359
+ };
360
+ };
361
+ finalAddress?: string;
362
+ finalisedAt: number;
363
+ transient?: {
364
+ estimatedTimeToComplete: number;
365
+ currentLegIndex?: number;
366
+ estimates?: {
367
+ inboundObservation: number;
368
+ inboundConfirmation: number;
369
+ streamingSwap: number;
370
+ outboundDelay: number;
371
+ outboundObservation: number;
372
+ currentStage: string;
373
+ };
374
+ providerDetails?: {
375
+ streamingDetails?: {
376
+ quantity?: number;
377
+ count?: number;
378
+ interval?: number;
379
+ subSwapsMap?: Array<number>;
380
+ };
381
+ depositChannelId?: string;
382
+ depositAddress?: string;
383
+ };
384
+ };
385
+ meta?: {
386
+ broadcastedAt?: number;
387
+ wallet?: string;
388
+ quoteId?: string;
389
+ explorerUrl?: string;
390
+ affiliate?: string;
391
+ fees?: {
392
+ network?: {
393
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
394
+ symbol: string;
395
+ ticker: string;
396
+ decimal?: number;
397
+ address?: string;
398
+ isGasAsset: boolean;
399
+ isSynthetic: boolean;
400
+ tax?: {
401
+ buy: number;
402
+ sell: number;
403
+ };
404
+ };
405
+ affiliate?: {
406
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
407
+ symbol: string;
408
+ ticker: string;
409
+ decimal?: number;
410
+ address?: string;
411
+ isGasAsset: boolean;
412
+ isSynthetic: boolean;
413
+ tax?: {
414
+ buy: number;
415
+ sell: number;
416
+ };
417
+ };
418
+ liquidity?: {
419
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
420
+ symbol: string;
421
+ ticker: string;
422
+ decimal?: number;
423
+ address?: string;
424
+ isGasAsset: boolean;
425
+ isSynthetic: boolean;
426
+ tax?: {
427
+ buy: number;
428
+ sell: number;
429
+ };
430
+ };
431
+ protocol?: {
432
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
433
+ symbol: string;
434
+ ticker: string;
435
+ decimal?: number;
436
+ address?: string;
437
+ isGasAsset: boolean;
438
+ isSynthetic: boolean;
439
+ tax?: {
440
+ buy: number;
441
+ sell: number;
442
+ };
443
+ };
444
+ tax?: {
445
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
446
+ symbol: string;
447
+ ticker: string;
448
+ decimal?: number;
449
+ address?: string;
450
+ isGasAsset: boolean;
451
+ isSynthetic: boolean;
452
+ tax?: {
453
+ buy: number;
454
+ sell: number;
455
+ };
456
+ };
457
+ };
458
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
459
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
460
+ images?: {
461
+ from?: string;
462
+ to?: string;
463
+ provider?: string;
464
+ chain?: string;
465
+ };
466
+ affiliateFees?: Array<{
467
+ affiliate: string;
468
+ bps: string;
469
+ isReferrer: boolean;
470
+ }>;
471
+ };
472
+ payload?: {
473
+ evmCalldata?: string;
474
+ evmValue?: string;
475
+ logs?: unknown;
476
+ memo?: string;
477
+ spender?: string;
478
+ manifest?: unknown;
479
+ intentHash?: string;
480
+ thorname?: string;
481
+ decodedPayload?: unknown;
482
+ };
483
+ legs: Array<{
484
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
485
+ hash: string;
486
+ block: number;
487
+ type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate';
488
+ status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
489
+ trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
490
+ fromAsset: string;
491
+ fromAmount: string;
492
+ fromAddress: string;
493
+ toAsset: string;
494
+ toAmount: string;
495
+ toAddress: string;
496
+ finalAsset?: {
497
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
498
+ symbol: string;
499
+ ticker: string;
500
+ decimal?: number;
501
+ address?: string;
502
+ isGasAsset: boolean;
503
+ isSynthetic: boolean;
504
+ tax?: {
505
+ buy: number;
506
+ sell: number;
507
+ };
508
+ };
509
+ finalAddress?: string;
510
+ finalisedAt: number;
511
+ transient?: {
512
+ estimatedTimeToComplete: number;
513
+ currentLegIndex?: number;
514
+ estimates?: {
515
+ inboundObservation: number;
516
+ inboundConfirmation: number;
517
+ streamingSwap: number;
518
+ outboundDelay: number;
519
+ outboundObservation: number;
520
+ currentStage: string;
521
+ };
522
+ providerDetails?: {
523
+ streamingDetails?: {
524
+ quantity?: number;
525
+ count?: number;
526
+ interval?: number;
527
+ subSwapsMap?: Array<number>;
528
+ };
529
+ depositChannelId?: string;
530
+ depositAddress?: string;
531
+ };
532
+ };
533
+ meta?: {
534
+ broadcastedAt?: number;
535
+ wallet?: string;
536
+ quoteId?: string;
537
+ explorerUrl?: string;
538
+ affiliate?: string;
539
+ fees?: {
540
+ network?: {
541
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
542
+ symbol: string;
543
+ ticker: string;
544
+ decimal?: number;
545
+ address?: string;
546
+ isGasAsset: boolean;
547
+ isSynthetic: boolean;
548
+ tax?: {
549
+ buy: number;
550
+ sell: number;
551
+ };
552
+ };
553
+ affiliate?: {
554
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
555
+ symbol: string;
556
+ ticker: string;
557
+ decimal?: number;
558
+ address?: string;
559
+ isGasAsset: boolean;
560
+ isSynthetic: boolean;
561
+ tax?: {
562
+ buy: number;
563
+ sell: number;
564
+ };
565
+ };
566
+ liquidity?: {
567
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
568
+ symbol: string;
569
+ ticker: string;
570
+ decimal?: number;
571
+ address?: string;
572
+ isGasAsset: boolean;
573
+ isSynthetic: boolean;
574
+ tax?: {
575
+ buy: number;
576
+ sell: number;
577
+ };
578
+ };
579
+ protocol?: {
580
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
581
+ symbol: string;
582
+ ticker: string;
583
+ decimal?: number;
584
+ address?: string;
585
+ isGasAsset: boolean;
586
+ isSynthetic: boolean;
587
+ tax?: {
588
+ buy: number;
589
+ sell: number;
590
+ };
591
+ };
592
+ tax?: {
593
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
594
+ symbol: string;
595
+ ticker: string;
596
+ decimal?: number;
597
+ address?: string;
598
+ isGasAsset: boolean;
599
+ isSynthetic: boolean;
600
+ tax?: {
601
+ buy: number;
602
+ sell: number;
603
+ };
604
+ };
605
+ };
606
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
607
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
608
+ images?: {
609
+ from?: string;
610
+ to?: string;
611
+ provider?: string;
612
+ chain?: string;
613
+ };
614
+ affiliateFees?: Array<{
615
+ affiliate: string;
616
+ bps: string;
617
+ isReferrer: boolean;
618
+ }>;
619
+ };
620
+ payload?: {
621
+ evmCalldata?: string;
622
+ evmValue?: string;
623
+ logs?: unknown;
624
+ memo?: string;
625
+ spender?: string;
626
+ manifest?: unknown;
627
+ intentHash?: string;
628
+ thorname?: string;
629
+ decodedPayload?: unknown;
630
+ };
631
+ }>;
632
+ };
633
+ /**
634
+ * Default Response
635
+ */
636
+ 202: {
637
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
638
+ hash: string;
639
+ block: number;
640
+ type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate';
641
+ status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
642
+ trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
643
+ fromAsset: string;
644
+ fromAmount: string;
645
+ fromAddress: string;
646
+ toAsset: string;
647
+ toAmount: string;
648
+ toAddress: string;
649
+ finalAsset?: {
650
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
651
+ symbol: string;
652
+ ticker: string;
653
+ decimal?: number;
654
+ address?: string;
655
+ isGasAsset: boolean;
656
+ isSynthetic: boolean;
657
+ tax?: {
658
+ buy: number;
659
+ sell: number;
660
+ };
661
+ };
662
+ finalAddress?: string;
663
+ finalisedAt: number;
664
+ transient?: {
665
+ estimatedTimeToComplete: number;
666
+ currentLegIndex?: number;
667
+ estimates?: {
668
+ inboundObservation: number;
669
+ inboundConfirmation: number;
670
+ streamingSwap: number;
671
+ outboundDelay: number;
672
+ outboundObservation: number;
673
+ currentStage: string;
674
+ };
675
+ providerDetails?: {
676
+ streamingDetails?: {
677
+ quantity?: number;
678
+ count?: number;
679
+ interval?: number;
680
+ subSwapsMap?: Array<number>;
681
+ };
682
+ depositChannelId?: string;
683
+ depositAddress?: string;
684
+ };
685
+ };
686
+ meta?: {
687
+ broadcastedAt?: number;
688
+ wallet?: string;
689
+ quoteId?: string;
690
+ explorerUrl?: string;
691
+ affiliate?: string;
692
+ fees?: {
693
+ network?: {
694
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
695
+ symbol: string;
696
+ ticker: string;
697
+ decimal?: number;
698
+ address?: string;
699
+ isGasAsset: boolean;
700
+ isSynthetic: boolean;
701
+ tax?: {
702
+ buy: number;
703
+ sell: number;
704
+ };
705
+ };
706
+ affiliate?: {
707
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
708
+ symbol: string;
709
+ ticker: string;
710
+ decimal?: number;
711
+ address?: string;
712
+ isGasAsset: boolean;
713
+ isSynthetic: boolean;
714
+ tax?: {
715
+ buy: number;
716
+ sell: number;
717
+ };
718
+ };
719
+ liquidity?: {
720
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
721
+ symbol: string;
722
+ ticker: string;
723
+ decimal?: number;
724
+ address?: string;
725
+ isGasAsset: boolean;
726
+ isSynthetic: boolean;
727
+ tax?: {
728
+ buy: number;
729
+ sell: number;
730
+ };
731
+ };
732
+ protocol?: {
733
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
734
+ symbol: string;
735
+ ticker: string;
736
+ decimal?: number;
737
+ address?: string;
738
+ isGasAsset: boolean;
739
+ isSynthetic: boolean;
740
+ tax?: {
741
+ buy: number;
742
+ sell: number;
743
+ };
744
+ };
745
+ tax?: {
746
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
747
+ symbol: string;
748
+ ticker: string;
749
+ decimal?: number;
750
+ address?: string;
751
+ isGasAsset: boolean;
752
+ isSynthetic: boolean;
753
+ tax?: {
754
+ buy: number;
755
+ sell: number;
756
+ };
757
+ };
758
+ };
759
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
760
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
761
+ images?: {
762
+ from?: string;
763
+ to?: string;
764
+ provider?: string;
765
+ chain?: string;
766
+ };
767
+ affiliateFees?: Array<{
768
+ affiliate: string;
769
+ bps: string;
770
+ isReferrer: boolean;
771
+ }>;
772
+ };
773
+ payload?: {
774
+ evmCalldata?: string;
775
+ evmValue?: string;
776
+ logs?: unknown;
777
+ memo?: string;
778
+ spender?: string;
779
+ manifest?: unknown;
780
+ intentHash?: string;
781
+ thorname?: string;
782
+ decodedPayload?: unknown;
783
+ };
784
+ legs: Array<{
785
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
786
+ hash: string;
787
+ block: number;
788
+ type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate';
789
+ status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
790
+ trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
791
+ fromAsset: string;
792
+ fromAmount: string;
793
+ fromAddress: string;
794
+ toAsset: string;
795
+ toAmount: string;
796
+ toAddress: string;
797
+ finalAsset?: {
798
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
799
+ symbol: string;
800
+ ticker: string;
801
+ decimal?: number;
802
+ address?: string;
803
+ isGasAsset: boolean;
804
+ isSynthetic: boolean;
805
+ tax?: {
806
+ buy: number;
807
+ sell: number;
808
+ };
809
+ };
810
+ finalAddress?: string;
811
+ finalisedAt: number;
812
+ transient?: {
813
+ estimatedTimeToComplete: number;
814
+ currentLegIndex?: number;
815
+ estimates?: {
816
+ inboundObservation: number;
817
+ inboundConfirmation: number;
818
+ streamingSwap: number;
819
+ outboundDelay: number;
820
+ outboundObservation: number;
821
+ currentStage: string;
822
+ };
823
+ providerDetails?: {
824
+ streamingDetails?: {
825
+ quantity?: number;
826
+ count?: number;
827
+ interval?: number;
828
+ subSwapsMap?: Array<number>;
829
+ };
830
+ depositChannelId?: string;
831
+ depositAddress?: string;
832
+ };
833
+ };
834
+ meta?: {
835
+ broadcastedAt?: number;
836
+ wallet?: string;
837
+ quoteId?: string;
838
+ explorerUrl?: string;
839
+ affiliate?: string;
840
+ fees?: {
841
+ network?: {
842
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
843
+ symbol: string;
844
+ ticker: string;
845
+ decimal?: number;
846
+ address?: string;
847
+ isGasAsset: boolean;
848
+ isSynthetic: boolean;
849
+ tax?: {
850
+ buy: number;
851
+ sell: number;
852
+ };
853
+ };
854
+ affiliate?: {
855
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
856
+ symbol: string;
857
+ ticker: string;
858
+ decimal?: number;
859
+ address?: string;
860
+ isGasAsset: boolean;
861
+ isSynthetic: boolean;
862
+ tax?: {
863
+ buy: number;
864
+ sell: number;
865
+ };
866
+ };
867
+ liquidity?: {
868
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
869
+ symbol: string;
870
+ ticker: string;
871
+ decimal?: number;
872
+ address?: string;
873
+ isGasAsset: boolean;
874
+ isSynthetic: boolean;
875
+ tax?: {
876
+ buy: number;
877
+ sell: number;
878
+ };
879
+ };
880
+ protocol?: {
881
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
882
+ symbol: string;
883
+ ticker: string;
884
+ decimal?: number;
885
+ address?: string;
886
+ isGasAsset: boolean;
887
+ isSynthetic: boolean;
888
+ tax?: {
889
+ buy: number;
890
+ sell: number;
891
+ };
892
+ };
893
+ tax?: {
894
+ chain: 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
895
+ symbol: string;
896
+ ticker: string;
897
+ decimal?: number;
898
+ address?: string;
899
+ isGasAsset: boolean;
900
+ isSynthetic: boolean;
901
+ tax?: {
902
+ buy: number;
903
+ sell: number;
904
+ };
905
+ };
906
+ };
907
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
908
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
909
+ images?: {
910
+ from?: string;
911
+ to?: string;
912
+ provider?: string;
913
+ chain?: string;
914
+ };
915
+ affiliateFees?: Array<{
916
+ affiliate: string;
917
+ bps: string;
918
+ isReferrer: boolean;
919
+ }>;
920
+ };
921
+ payload?: {
922
+ evmCalldata?: string;
923
+ evmValue?: string;
924
+ logs?: unknown;
925
+ memo?: string;
926
+ spender?: string;
927
+ manifest?: unknown;
928
+ intentHash?: string;
929
+ thorname?: string;
930
+ decodedPayload?: unknown;
931
+ };
932
+ }>;
933
+ };
934
+ };
935
+
936
+ export type PostTrackResponse = PostTrackResponses[keyof PostTrackResponses];
937
+
938
+ export type PostScreenData = {
939
+ body: {
940
+ addresses: string | Array<string>;
941
+ chains: string | Array<string>;
942
+ };
943
+ path?: never;
944
+ query?: never;
945
+ url: '/screen';
946
+ };
947
+
948
+ export type PostScreenErrors = {
949
+ /**
950
+ * Default Response
951
+ */
952
+ 400: {
953
+ message: string;
954
+ };
955
+ };
956
+
957
+ export type PostScreenError = PostScreenErrors[keyof PostScreenErrors];
958
+
959
+ export type PostScreenResponses = {
960
+ /**
961
+ * Default Response
962
+ */
963
+ 200: {
964
+ confirm: boolean;
965
+ isBlacklisted?: boolean;
966
+ isRisky?: boolean;
967
+ isSanctioned?: boolean;
968
+ module?: number;
969
+ };
970
+ };
971
+
972
+ export type PostScreenResponse = PostScreenResponses[keyof PostScreenResponses];
973
+
974
+ export type GetGasHistoryData = {
975
+ body?: never;
976
+ path?: never;
977
+ query?: {
978
+ /**
979
+ * Chain id, if omitted return gas for all chains
980
+ */
981
+ chainId?: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
982
+ /**
983
+ * Time frame to get gas history
984
+ */
985
+ timeFrame?: '1h' | '1d' | '1w' | '1m';
986
+ };
987
+ url: '/gas/history';
988
+ };
989
+
990
+ export type GetGasHistoryResponses = {
991
+ /**
992
+ * Default Response
993
+ */
994
+ 200: Array<{
995
+ id: number;
996
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
997
+ value: string;
998
+ unit: string;
999
+ createdAt: string;
1000
+ }> | {
1001
+ [key: string]: Array<{
1002
+ id: number;
1003
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1004
+ value: string;
1005
+ unit: string;
1006
+ createdAt: string;
1007
+ }>;
1008
+ };
1009
+ };
1010
+
1011
+ export type GetGasHistoryResponse = GetGasHistoryResponses[keyof GetGasHistoryResponses];
1012
+
1013
+ export type GetGasData = {
1014
+ body?: never;
1015
+ path?: never;
1016
+ query?: {
1017
+ /**
1018
+ * Chain id, if omitted return gas for all chains
1019
+ */
1020
+ chainId?: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1021
+ /**
1022
+ * Time frame to get gas history
1023
+ */
1024
+ timeFrame?: '1h' | '1d' | '1w' | '1m';
1025
+ };
1026
+ url: '/gas';
1027
+ };
1028
+
1029
+ export type GetGasResponses = {
1030
+ /**
1031
+ * Default Response
1032
+ */
1033
+ 200: {
1034
+ id: number;
1035
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1036
+ value: string;
1037
+ unit: string;
1038
+ createdAt: string;
1039
+ } | Array<{
1040
+ id: number;
1041
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1042
+ value: string;
1043
+ unit: string;
1044
+ createdAt: string;
1045
+ }>;
1046
+ };
1047
+
1048
+ export type GetGasResponse = GetGasResponses[keyof GetGasResponses];
1049
+
1050
+ export type PostPriceCachedPriceData = {
1051
+ body: {
1052
+ tokens: Array<{
1053
+ identifier: string;
1054
+ }>;
1055
+ metadata: boolean;
1056
+ };
1057
+ path?: never;
1058
+ query?: never;
1059
+ url: '/price/cached-price';
1060
+ };
1061
+
1062
+ export type PostPriceCachedPriceResponses = {
1063
+ /**
1064
+ * Default Response
1065
+ */
1066
+ 200: Array<{
1067
+ identifier?: string;
1068
+ provider?: string;
1069
+ cg?: {
1070
+ id: string;
1071
+ name?: string;
1072
+ market_cap?: number;
1073
+ total_volume?: number;
1074
+ price_change_24h_usd?: number | null;
1075
+ price_change_percentage_24h_usd?: number | null;
1076
+ sparkline_in_7d?: Array<number>;
1077
+ timestamp?: string;
1078
+ };
1079
+ price_usd?: number;
1080
+ timestamp?: number;
1081
+ }>;
1082
+ };
1083
+
1084
+ export type PostPriceCachedPriceResponse = PostPriceCachedPriceResponses[keyof PostPriceCachedPriceResponses];
1085
+
1086
+ export type PostV3QuoteData = {
1087
+ body: {
1088
+ /**
1089
+ * Asset to sell
1090
+ */
1091
+ sellAsset: string;
1092
+ /**
1093
+ * Asset to buy
1094
+ */
1095
+ buyAsset: string;
1096
+ /**
1097
+ * Amount of asset to sell
1098
+ */
1099
+ sellAmount: string;
1100
+ providers?: Array<string>;
1101
+ /**
1102
+ * Address to send asset from
1103
+ */
1104
+ sourceAddress?: string;
1105
+ /**
1106
+ * Address to send asset to
1107
+ */
1108
+ destinationAddress?: string;
1109
+ /**
1110
+ * Slippage tolerance as a percentage. Default is 3%.
1111
+ */
1112
+ slippage?: number;
1113
+ /**
1114
+ * Set to true to enable CF boost to speed up Chainflip swaps. BTC only.
1115
+ */
1116
+ cfBoost?: boolean;
1117
+ referrer?: string;
1118
+ /**
1119
+ * Set to true to disable on-chain estimation
1120
+ */
1121
+ disableEstimate?: boolean;
1122
+ /**
1123
+ * Maximum execution time in seconds. Routes exceeding this time will be filtered out.
1124
+ */
1125
+ maxExecutionTime?: number;
1126
+ /**
1127
+ * Affiliate fee in basis points. This should only be used as an override, for example when you have some rebate or discount program. If not provided, the fees configured in your API Key will be used.
1128
+ */
1129
+ affiliateFee?: number;
1130
+ };
1131
+ path?: never;
1132
+ query?: never;
1133
+ url: '/v3/quote';
1134
+ };
1135
+
1136
+ export type PostV3QuoteErrors = {
1137
+ /**
1138
+ * Default Response
1139
+ */
1140
+ 400: {
1141
+ message: string;
1142
+ error: string;
1143
+ data?: unknown;
1144
+ };
1145
+ /**
1146
+ * Default Response
1147
+ */
1148
+ 500: {
1149
+ message: string;
1150
+ error: string;
1151
+ data?: unknown;
1152
+ };
1153
+ };
1154
+
1155
+ export type PostV3QuoteError = PostV3QuoteErrors[keyof PostV3QuoteErrors];
1156
+
1157
+ export type PostV3QuoteResponses = {
1158
+ /**
1159
+ * Default Response
1160
+ */
1161
+ 200: {
1162
+ /**
1163
+ * Quote ID
1164
+ */
1165
+ quoteId: string;
1166
+ routes: Array<{
1167
+ /**
1168
+ * Asset to sell
1169
+ */
1170
+ sellAsset: string;
1171
+ /**
1172
+ * Sell amount
1173
+ */
1174
+ sellAmount: string;
1175
+ /**
1176
+ * Asset to buy
1177
+ */
1178
+ buyAsset: string;
1179
+ /**
1180
+ * Buy amount
1181
+ */
1182
+ buyAmount?: string;
1183
+ /**
1184
+ * Buy amount max slippage
1185
+ */
1186
+ buyAmountMaxSlippage?: string;
1187
+ /**
1188
+ * Expected Buy amount
1189
+ */
1190
+ expectedBuyAmount?: string;
1191
+ /**
1192
+ * Expected Buy amount max slippage
1193
+ */
1194
+ expectedBuyAmountMaxSlippage?: string;
1195
+ fees: Array<{
1196
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1197
+ amount: string;
1198
+ asset: string;
1199
+ chain: string;
1200
+ protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1201
+ }>;
1202
+ /**
1203
+ * Route ID
1204
+ */
1205
+ routeId: string;
1206
+ providers: Array<'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>;
1207
+ /**
1208
+ * Expiration
1209
+ */
1210
+ expiration?: string;
1211
+ estimatedTime?: {
1212
+ /**
1213
+ * Time to receive inbound asset in seconds
1214
+ */
1215
+ inbound?: number;
1216
+ /**
1217
+ * Time to swap assets in seconds
1218
+ */
1219
+ swap?: number;
1220
+ /**
1221
+ * Time to receive outbound asset in seconds
1222
+ */
1223
+ outbound?: number;
1224
+ /**
1225
+ * Total time in seconds
1226
+ */
1227
+ total: number;
1228
+ };
1229
+ /**
1230
+ * Total slippage in bps
1231
+ */
1232
+ totalSlippageBps: number;
1233
+ legs: Array<{
1234
+ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1235
+ /**
1236
+ * Asset to sell
1237
+ */
1238
+ sellAsset: string;
1239
+ /**
1240
+ * Sell amount
1241
+ */
1242
+ sellAmount: string;
1243
+ /**
1244
+ * Asset to buy
1245
+ */
1246
+ buyAsset: string;
1247
+ /**
1248
+ * Buy amount
1249
+ */
1250
+ buyAmount?: string;
1251
+ /**
1252
+ * Buy amount max slippage
1253
+ */
1254
+ buyAmountMaxSlippage?: string;
1255
+ /**
1256
+ * Expected Buy amount
1257
+ */
1258
+ expectedBuyAmount?: string;
1259
+ /**
1260
+ * Expected Buy amount max slippage
1261
+ */
1262
+ expectedBuyAmountMaxSlippage?: string;
1263
+ fees: Array<{
1264
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1265
+ amount: string;
1266
+ asset: string;
1267
+ chain: string;
1268
+ protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1269
+ }>;
1270
+ }>;
1271
+ warnings: Array<{
1272
+ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1273
+ display: string;
1274
+ tooltip?: string;
1275
+ }>;
1276
+ meta: {
1277
+ assets?: Array<{
1278
+ /**
1279
+ * Asset name
1280
+ */
1281
+ asset: string;
1282
+ /**
1283
+ * Price in USD
1284
+ */
1285
+ price: number;
1286
+ /**
1287
+ * Asset image
1288
+ */
1289
+ image: string;
1290
+ }>;
1291
+ tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
1292
+ streamingInterval?: number;
1293
+ maxStreamingQuantity?: number;
1294
+ referrer?: string;
1295
+ /**
1296
+ * Approval address for token swap
1297
+ */
1298
+ approvalAddress?: string;
1299
+ };
1300
+ nextActions?: Array<{
1301
+ method: string;
1302
+ url: string;
1303
+ payload?: unknown;
1304
+ }>;
1305
+ }>;
1306
+ /**
1307
+ * Error message
1308
+ */
1309
+ error?: string;
1310
+ providerErrors?: Array<{
1311
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1312
+ errorCode?: 'noRpcFallbacks' | 'requestTimeout' | 'invalidApiVersion' | 'isSanctionedAddress' | 'unknownError' | 'test_error' | 'blockHeaderNotFound' | 'blockHashNotFoundAtHeight' | 'blackListAsset' | 'txHashMissing' | 'invalidAsset' | 'currentBlockHeaderNotFound' | 'failedToRetrieveBalance' | 'failedToRetrieveBlock' | 'failedToRetrieveFees' | 'notImplementedBCH' | 'notImplementedDoge' | 'noPoolsFound' | 'noVaultsFound' | 'noTxFound' | 'multipleCosmosMessages' | 'heightOrHashNotProvided' | 'priceTooVolatile' | 'unknownDenom' | 'invalidBlockHeight' | 'timestampExtrinsicNoArgumentsForBlock' | 'timestampExtrinsicNoTimestampForBlock' | 'noTimestampExtrinsicForHash' | 'timestampExtrinsicNoArgumentsForHash' | 'txMemoUndefined' | 'txMemoIncorrect' | 'txTypeNotFound' | 'txNoMessage' | 'txNotFound' | 'txReceiptNotFound' | 'txParsingError' | 'txLogsParsingError' | 'txFailed' | 'jobDataParsingError' | 'blockNotFound' | 'balanceNotFound' | 'blockbookCallFailed' | 'configError' | 'synthSwapDisallowed' | 'noQuoteResponse' | 'noPoolAssetsFound' | 'noThorchainPools' | 'noMayachainPools' | 'noThorchainNetworkInfo' | 'invalidAffiliateFee' | 'invalidBuyAssetAddress' | 'invalidSellAssetAddress' | 'invalidSourceAddress' | 'invalidDestinationAddress' | 'invalidParam' | 'xrpAddressRequiresTag' | 'invalidChainId' | 'invalidChain' | 'unsupportedChainId' | 'unsupportedEVMChainId' | 'unsupportedMethod' | 'unsupportedProvider' | 'unsupportedProgram' | 'unsupportedEvent' | 'invalidParamsForMethod' | 'noWhitelistTokens' | 'failedFetchGasPrice' | 'chainflipBrokerApiUnavailable' | 'failedToBuildVaultSwapTransaction' | 'failedToOpenBtcPrivateChannel' | 'failedToCloseBtcPrivateChannel' | 'affiliateNotRegistered' | 'failedToCreateDepositChannel' | 'failedToRegisterAccount' | 'failedToRegisterAffiliate' | 'failedToWithdrawAffiliate' | 'noProviderDetailsFound' | 'noTokenListsFound' | 'tokenNotFound' | 'tokenPriceNotFound' | 'tokenPriceFailedToUpdate' | 'legsArrayIsEmpty' | 'failedToFetchQuoteForLeg' | 'noBlockHeaderFound' | 'failedToSimulateSwap' | 'swapHalted' | 'addressScreeningFailed' | 'missingScreeningConfig' | 'noLiquidtyProvidersFound' | 'insufficientLiquidity' | 'noSaversFound' | 'noInbounDataFound' | 'noInboundAddressesFound' | 'noTargetAddress' | 'noInboundAddressFoundForChain' | 'noLastBlocksFound' | 'noVersionFound' | 'noConstantsFound' | 'noMimirsFound' | 'noRoutesFound' | 'quoteNotFound' | 'ledgerWrongPayload' | 'failedToFetchTx' | 'failedBuildTransactionDetails' | 'txBuildingTimeout' | 'noLegsForRoute' | 'insufficientBalance' | 'insufficientAllowance' | 'unableToBuildTransaction' | 'noRouterAddressFound' | 'noAggregatorAddressFound' | 'noContractInstanceFound' | 'noContractAddressFound' | 'invalidAffiliate' | 'invalidAffiliateName' | 'thornameNotFound' | 'thornameAffiliate' | 'No provider found' | 'No Record found' | 'Slippage too low' | 'tradingHalted' | 'mayanameNotFound' | 'noWrappedGasAsset' | 'aggregatorAddressNotFound' | 'routerAddressNotFound' | 'dummyAddressNotFound' | 'trackerError' | 'thorchainPoolUnavailable' | 'noTradingPairs' | 'missingState' | 'ledgerSwapNotFound' | 'ledgerSwapNotReadyForTracking' | 'ledgerInvalidParsingMode' | 'errorEstimatingGas' | 'apiKeyInvalid' | 'apiKeyFailedToUpdate' | 'apiKeySignatureExists' | 'apiKeyExpired' | 'unauthorized' | 'failedToCreateMemo' | 'radixIncorrectInstructions' | 'radixTxMissedParam' | 'radixTxMissedAccount' | 'radixManifestParseError' | 'radixManifestBuildError' | 'invalidAddressForChain' | 'riskyAddress' | 'noRoutesToProcess' | 'sellAssetAmountTooSmall' | 'sellAssetAmountTooLarge' | 'missingPrivateKey' | 'noMemoPriceProtection' | 'nodeMethodNotFound' | 'nodeRpcNotFound' | 'thirdPartyProviderNotFound' | 'quoteUnavailable' | 'targetInstructionNotFound' | 'referrerExist' | 'referrerNotFound' | 'invalidReferrer' | 'quoteLogicError' | 'missingDecimal' | 'noGasInfoInDB' | 'quoteError' | 'valueOverflow' | 'missingChainflipMeta' | 'contractAndMethodRequired' | 'tokenImageError' | 'fileNotFound' | 'fileFormatError' | 'ipError' | 'failedToSaveLedgerSwap' | 'missingValue' | 'missingDBQueryParam' | 'unableEstimateTxTime' | 'affiliateStatsMissingDate' | 'affiliateStatsMissingNextFilter' | 'affiliateStatsNoActions' | 'unsupportedNotificationEvent' | 'unsupportedNotificationChannel' | 'invalidWebhookUrl' | 'webhookDeliveryFailed' | 'serverStateNotFound' | 'apiRequestFailed' | 'apiRateLimit' | 'invalidActionStep' | 'providerIsRequired' | 'rateLimitExceeded' | 'depositChannelNotFound' | 'snowflakeFailedToFetchSwaps' | 'auditLogInsertFailed' | 'affiliateNameHistoryInsertFailed' | 'invalidRouteId' | 'invalidQuoteId' | 'invalidRoute' | 'quoteExpired' | 'swapQuoteNotFound' | 'swapRouteNotFound' | 'swapTransactionFailed' | 'swapChainflipMetaMissing' | 'swapChainflipChannelFailed' | 'swapTransferTxFailed' | 'chainflipVaultSwapNotSupported' | 'chainflipVaultSwapEncodingFailed' | 'chainflipVaultSwapInvalidChain' | 'chainflipVaultSwapBitcoinCCMNotSupported' | 'chainflipVaultSwapTransactionBuildFailed' | 'zcashInvalidAddress' | 'zcashInsufficientUTXOs' | 'zcashUTXOSelectionFailed' | 'zcashTransactionBuildFailed' | 'invalidTokenProgram' | 'invalidRequest' | 'pubsubEventNotRegistered' | 'pubsubTopicNotFound' | 'invalidSpender' | 'outputAmountDeviationTooHigh' | 'externalServiceFailed' | 'invalidTxHashFormat';
1313
+ message?: string;
1314
+ }>;
1315
+ };
1316
+ /**
1317
+ * Default Response
1318
+ */
1319
+ 218: {
1320
+ /**
1321
+ * Quote ID
1322
+ */
1323
+ quoteId: string;
1324
+ routes: Array<{
1325
+ /**
1326
+ * Asset to sell
1327
+ */
1328
+ sellAsset: string;
1329
+ /**
1330
+ * Sell amount
1331
+ */
1332
+ sellAmount: string;
1333
+ /**
1334
+ * Asset to buy
1335
+ */
1336
+ buyAsset: string;
1337
+ /**
1338
+ * Buy amount
1339
+ */
1340
+ buyAmount?: string;
1341
+ /**
1342
+ * Buy amount max slippage
1343
+ */
1344
+ buyAmountMaxSlippage?: string;
1345
+ /**
1346
+ * Expected Buy amount
1347
+ */
1348
+ expectedBuyAmount?: string;
1349
+ /**
1350
+ * Expected Buy amount max slippage
1351
+ */
1352
+ expectedBuyAmountMaxSlippage?: string;
1353
+ fees: Array<{
1354
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1355
+ amount: string;
1356
+ asset: string;
1357
+ chain: string;
1358
+ protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1359
+ }>;
1360
+ /**
1361
+ * Route ID
1362
+ */
1363
+ routeId: string;
1364
+ providers: Array<'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>;
1365
+ /**
1366
+ * Expiration
1367
+ */
1368
+ expiration?: string;
1369
+ estimatedTime?: {
1370
+ /**
1371
+ * Time to receive inbound asset in seconds
1372
+ */
1373
+ inbound?: number;
1374
+ /**
1375
+ * Time to swap assets in seconds
1376
+ */
1377
+ swap?: number;
1378
+ /**
1379
+ * Time to receive outbound asset in seconds
1380
+ */
1381
+ outbound?: number;
1382
+ /**
1383
+ * Total time in seconds
1384
+ */
1385
+ total: number;
1386
+ };
1387
+ /**
1388
+ * Total slippage in bps
1389
+ */
1390
+ totalSlippageBps: number;
1391
+ legs: Array<{
1392
+ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1393
+ /**
1394
+ * Asset to sell
1395
+ */
1396
+ sellAsset: string;
1397
+ /**
1398
+ * Sell amount
1399
+ */
1400
+ sellAmount: string;
1401
+ /**
1402
+ * Asset to buy
1403
+ */
1404
+ buyAsset: string;
1405
+ /**
1406
+ * Buy amount
1407
+ */
1408
+ buyAmount?: string;
1409
+ /**
1410
+ * Buy amount max slippage
1411
+ */
1412
+ buyAmountMaxSlippage?: string;
1413
+ /**
1414
+ * Expected Buy amount
1415
+ */
1416
+ expectedBuyAmount?: string;
1417
+ /**
1418
+ * Expected Buy amount max slippage
1419
+ */
1420
+ expectedBuyAmountMaxSlippage?: string;
1421
+ fees: Array<{
1422
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1423
+ amount: string;
1424
+ asset: string;
1425
+ chain: string;
1426
+ protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1427
+ }>;
1428
+ }>;
1429
+ warnings: Array<{
1430
+ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1431
+ display: string;
1432
+ tooltip?: string;
1433
+ }>;
1434
+ meta: {
1435
+ assets?: Array<{
1436
+ /**
1437
+ * Asset name
1438
+ */
1439
+ asset: string;
1440
+ /**
1441
+ * Price in USD
1442
+ */
1443
+ price: number;
1444
+ /**
1445
+ * Asset image
1446
+ */
1447
+ image: string;
1448
+ }>;
1449
+ tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
1450
+ streamingInterval?: number;
1451
+ maxStreamingQuantity?: number;
1452
+ referrer?: string;
1453
+ /**
1454
+ * Approval address for token swap
1455
+ */
1456
+ approvalAddress?: string;
1457
+ };
1458
+ nextActions?: Array<{
1459
+ method: string;
1460
+ url: string;
1461
+ payload?: unknown;
1462
+ }>;
1463
+ }>;
1464
+ /**
1465
+ * Error message
1466
+ */
1467
+ error?: string;
1468
+ providerErrors?: Array<{
1469
+ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1470
+ errorCode?: 'noRpcFallbacks' | 'requestTimeout' | 'invalidApiVersion' | 'isSanctionedAddress' | 'unknownError' | 'test_error' | 'blockHeaderNotFound' | 'blockHashNotFoundAtHeight' | 'blackListAsset' | 'txHashMissing' | 'invalidAsset' | 'currentBlockHeaderNotFound' | 'failedToRetrieveBalance' | 'failedToRetrieveBlock' | 'failedToRetrieveFees' | 'notImplementedBCH' | 'notImplementedDoge' | 'noPoolsFound' | 'noVaultsFound' | 'noTxFound' | 'multipleCosmosMessages' | 'heightOrHashNotProvided' | 'priceTooVolatile' | 'unknownDenom' | 'invalidBlockHeight' | 'timestampExtrinsicNoArgumentsForBlock' | 'timestampExtrinsicNoTimestampForBlock' | 'noTimestampExtrinsicForHash' | 'timestampExtrinsicNoArgumentsForHash' | 'txMemoUndefined' | 'txMemoIncorrect' | 'txTypeNotFound' | 'txNoMessage' | 'txNotFound' | 'txReceiptNotFound' | 'txParsingError' | 'txLogsParsingError' | 'txFailed' | 'jobDataParsingError' | 'blockNotFound' | 'balanceNotFound' | 'blockbookCallFailed' | 'configError' | 'synthSwapDisallowed' | 'noQuoteResponse' | 'noPoolAssetsFound' | 'noThorchainPools' | 'noMayachainPools' | 'noThorchainNetworkInfo' | 'invalidAffiliateFee' | 'invalidBuyAssetAddress' | 'invalidSellAssetAddress' | 'invalidSourceAddress' | 'invalidDestinationAddress' | 'invalidParam' | 'xrpAddressRequiresTag' | 'invalidChainId' | 'invalidChain' | 'unsupportedChainId' | 'unsupportedEVMChainId' | 'unsupportedMethod' | 'unsupportedProvider' | 'unsupportedProgram' | 'unsupportedEvent' | 'invalidParamsForMethod' | 'noWhitelistTokens' | 'failedFetchGasPrice' | 'chainflipBrokerApiUnavailable' | 'failedToBuildVaultSwapTransaction' | 'failedToOpenBtcPrivateChannel' | 'failedToCloseBtcPrivateChannel' | 'affiliateNotRegistered' | 'failedToCreateDepositChannel' | 'failedToRegisterAccount' | 'failedToRegisterAffiliate' | 'failedToWithdrawAffiliate' | 'noProviderDetailsFound' | 'noTokenListsFound' | 'tokenNotFound' | 'tokenPriceNotFound' | 'tokenPriceFailedToUpdate' | 'legsArrayIsEmpty' | 'failedToFetchQuoteForLeg' | 'noBlockHeaderFound' | 'failedToSimulateSwap' | 'swapHalted' | 'addressScreeningFailed' | 'missingScreeningConfig' | 'noLiquidtyProvidersFound' | 'insufficientLiquidity' | 'noSaversFound' | 'noInbounDataFound' | 'noInboundAddressesFound' | 'noTargetAddress' | 'noInboundAddressFoundForChain' | 'noLastBlocksFound' | 'noVersionFound' | 'noConstantsFound' | 'noMimirsFound' | 'noRoutesFound' | 'quoteNotFound' | 'ledgerWrongPayload' | 'failedToFetchTx' | 'failedBuildTransactionDetails' | 'txBuildingTimeout' | 'noLegsForRoute' | 'insufficientBalance' | 'insufficientAllowance' | 'unableToBuildTransaction' | 'noRouterAddressFound' | 'noAggregatorAddressFound' | 'noContractInstanceFound' | 'noContractAddressFound' | 'invalidAffiliate' | 'invalidAffiliateName' | 'thornameNotFound' | 'thornameAffiliate' | 'No provider found' | 'No Record found' | 'Slippage too low' | 'tradingHalted' | 'mayanameNotFound' | 'noWrappedGasAsset' | 'aggregatorAddressNotFound' | 'routerAddressNotFound' | 'dummyAddressNotFound' | 'trackerError' | 'thorchainPoolUnavailable' | 'noTradingPairs' | 'missingState' | 'ledgerSwapNotFound' | 'ledgerSwapNotReadyForTracking' | 'ledgerInvalidParsingMode' | 'errorEstimatingGas' | 'apiKeyInvalid' | 'apiKeyFailedToUpdate' | 'apiKeySignatureExists' | 'apiKeyExpired' | 'unauthorized' | 'failedToCreateMemo' | 'radixIncorrectInstructions' | 'radixTxMissedParam' | 'radixTxMissedAccount' | 'radixManifestParseError' | 'radixManifestBuildError' | 'invalidAddressForChain' | 'riskyAddress' | 'noRoutesToProcess' | 'sellAssetAmountTooSmall' | 'sellAssetAmountTooLarge' | 'missingPrivateKey' | 'noMemoPriceProtection' | 'nodeMethodNotFound' | 'nodeRpcNotFound' | 'thirdPartyProviderNotFound' | 'quoteUnavailable' | 'targetInstructionNotFound' | 'referrerExist' | 'referrerNotFound' | 'invalidReferrer' | 'quoteLogicError' | 'missingDecimal' | 'noGasInfoInDB' | 'quoteError' | 'valueOverflow' | 'missingChainflipMeta' | 'contractAndMethodRequired' | 'tokenImageError' | 'fileNotFound' | 'fileFormatError' | 'ipError' | 'failedToSaveLedgerSwap' | 'missingValue' | 'missingDBQueryParam' | 'unableEstimateTxTime' | 'affiliateStatsMissingDate' | 'affiliateStatsMissingNextFilter' | 'affiliateStatsNoActions' | 'unsupportedNotificationEvent' | 'unsupportedNotificationChannel' | 'invalidWebhookUrl' | 'webhookDeliveryFailed' | 'serverStateNotFound' | 'apiRequestFailed' | 'apiRateLimit' | 'invalidActionStep' | 'providerIsRequired' | 'rateLimitExceeded' | 'depositChannelNotFound' | 'snowflakeFailedToFetchSwaps' | 'auditLogInsertFailed' | 'affiliateNameHistoryInsertFailed' | 'invalidRouteId' | 'invalidQuoteId' | 'invalidRoute' | 'quoteExpired' | 'swapQuoteNotFound' | 'swapRouteNotFound' | 'swapTransactionFailed' | 'swapChainflipMetaMissing' | 'swapChainflipChannelFailed' | 'swapTransferTxFailed' | 'chainflipVaultSwapNotSupported' | 'chainflipVaultSwapEncodingFailed' | 'chainflipVaultSwapInvalidChain' | 'chainflipVaultSwapBitcoinCCMNotSupported' | 'chainflipVaultSwapTransactionBuildFailed' | 'zcashInvalidAddress' | 'zcashInsufficientUTXOs' | 'zcashUTXOSelectionFailed' | 'zcashTransactionBuildFailed' | 'invalidTokenProgram' | 'invalidRequest' | 'pubsubEventNotRegistered' | 'pubsubTopicNotFound' | 'invalidSpender' | 'outputAmountDeviationTooHigh' | 'externalServiceFailed' | 'invalidTxHashFormat';
1471
+ message?: string;
1472
+ }>;
1473
+ };
1474
+ };
1475
+
1476
+ export type PostV3QuoteResponse = PostV3QuoteResponses[keyof PostV3QuoteResponses];
1477
+
1478
+ export type PostV3SwapData = {
1479
+ body: {
1480
+ /**
1481
+ * The ID of the route to swap
1482
+ */
1483
+ routeId: string;
1484
+ /**
1485
+ * Address to send asset from
1486
+ */
1487
+ sourceAddress: string;
1488
+ /**
1489
+ * Recipient address to send asset to
1490
+ */
1491
+ destinationAddress: string;
1492
+ /**
1493
+ * Whether to disable balance check
1494
+ */
1495
+ disableBalanceCheck?: boolean;
1496
+ /**
1497
+ * Whether to disable estimate gas
1498
+ */
1499
+ disableEstimate?: boolean;
1500
+ /**
1501
+ * Whether to allow smart contract sender
1502
+ */
1503
+ allowSmartContractSender?: boolean;
1504
+ /**
1505
+ * Whether to allow smart contract receiver
1506
+ */
1507
+ allowSmartContractReceiver?: boolean;
1508
+ /**
1509
+ * Whether to disable security checks
1510
+ */
1511
+ disableSecurityChecks?: boolean;
1512
+ /**
1513
+ * Whether to override slippage validation on quote refresh
1514
+ */
1515
+ overrideSlippage?: boolean;
1516
+ /**
1517
+ * Set to true to skip building a transaction. Used when you build a custom transaction from our response.
1518
+ */
1519
+ disableBuildTx?: boolean;
1520
+ };
1521
+ path?: never;
1522
+ query?: never;
1523
+ url: '/v3/swap';
1524
+ };
1525
+
1526
+ export type PostV3SwapErrors = {
1527
+ /**
1528
+ * Default Response
1529
+ */
1530
+ 400: {
1531
+ message: string;
1532
+ error: string;
1533
+ data?: unknown;
1534
+ };
1535
+ /**
1536
+ * Default Response
1537
+ */
1538
+ 404: {
1539
+ message: string;
1540
+ error: string;
1541
+ data?: unknown;
1542
+ };
1543
+ /**
1544
+ * Default Response
1545
+ */
1546
+ 500: {
1547
+ message: string;
1548
+ error: string;
1549
+ data?: unknown;
1550
+ };
1551
+ };
1552
+
1553
+ export type PostV3SwapError = PostV3SwapErrors[keyof PostV3SwapErrors];
1554
+
1555
+ export type PostV3SwapResponses = {
1556
+ /**
1557
+ * Default Response
1558
+ */
1559
+ 200: {
1560
+ /**
1561
+ * Asset to sell
1562
+ */
1563
+ sellAsset: string;
1564
+ /**
1565
+ * Sell amount
1566
+ */
1567
+ sellAmount: string;
1568
+ /**
1569
+ * Asset to buy
1570
+ */
1571
+ buyAsset: string;
1572
+ /**
1573
+ * Buy amount
1574
+ */
1575
+ buyAmount?: string;
1576
+ /**
1577
+ * Buy amount max slippage
1578
+ */
1579
+ buyAmountMaxSlippage?: string;
1580
+ /**
1581
+ * Expected Buy amount
1582
+ */
1583
+ expectedBuyAmount?: string;
1584
+ /**
1585
+ * Expected Buy amount max slippage
1586
+ */
1587
+ expectedBuyAmountMaxSlippage?: string;
1588
+ fees: Array<{
1589
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1590
+ amount: string;
1591
+ asset: string;
1592
+ chain: string;
1593
+ protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1594
+ }>;
1595
+ /**
1596
+ * Route ID
1597
+ */
1598
+ routeId: string;
1599
+ providers: Array<'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>;
1600
+ /**
1601
+ * Expiration
1602
+ */
1603
+ expiration?: string;
1604
+ estimatedTime?: {
1605
+ /**
1606
+ * Time to receive inbound asset in seconds
1607
+ */
1608
+ inbound?: number;
1609
+ /**
1610
+ * Time to swap assets in seconds
1611
+ */
1612
+ swap?: number;
1613
+ /**
1614
+ * Time to receive outbound asset in seconds
1615
+ */
1616
+ outbound?: number;
1617
+ /**
1618
+ * Total time in seconds
1619
+ */
1620
+ total: number;
1621
+ };
1622
+ /**
1623
+ * Total slippage in bps
1624
+ */
1625
+ totalSlippageBps: number;
1626
+ legs: Array<{
1627
+ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1628
+ /**
1629
+ * Asset to sell
1630
+ */
1631
+ sellAsset: string;
1632
+ /**
1633
+ * Sell amount
1634
+ */
1635
+ sellAmount: string;
1636
+ /**
1637
+ * Asset to buy
1638
+ */
1639
+ buyAsset: string;
1640
+ /**
1641
+ * Buy amount
1642
+ */
1643
+ buyAmount?: string;
1644
+ /**
1645
+ * Buy amount max slippage
1646
+ */
1647
+ buyAmountMaxSlippage?: string;
1648
+ /**
1649
+ * Expected Buy amount
1650
+ */
1651
+ expectedBuyAmount?: string;
1652
+ /**
1653
+ * Expected Buy amount max slippage
1654
+ */
1655
+ expectedBuyAmountMaxSlippage?: string;
1656
+ fees: Array<{
1657
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1658
+ amount: string;
1659
+ asset: string;
1660
+ chain: string;
1661
+ protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1662
+ }>;
1663
+ }>;
1664
+ warnings: Array<{
1665
+ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1666
+ display: string;
1667
+ tooltip?: string;
1668
+ }>;
1669
+ /**
1670
+ * Source address
1671
+ */
1672
+ sourceAddress: string;
1673
+ /**
1674
+ * Destination address
1675
+ */
1676
+ destinationAddress: string;
1677
+ /**
1678
+ * Target address
1679
+ */
1680
+ targetAddress?: string;
1681
+ /**
1682
+ * Inbound address
1683
+ */
1684
+ inboundAddress?: string;
1685
+ /**
1686
+ * Memo to include in the transaction
1687
+ */
1688
+ memo?: string;
1689
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'RADIX' | 'SOLANA' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CARDANO' | 'TON' | 'STARKNET' | 'zcash-unsigned';
1690
+ tx?: {
1691
+ /**
1692
+ * Address of the recipient
1693
+ */
1694
+ to: string;
1695
+ /**
1696
+ * Address of the sender
1697
+ */
1698
+ from?: string;
1699
+ /**
1700
+ * Gas limit
1701
+ */
1702
+ gas?: string;
1703
+ /**
1704
+ * Gas price
1705
+ */
1706
+ gasPrice?: string;
1707
+ /**
1708
+ * Value to send
1709
+ */
1710
+ value: string;
1711
+ /**
1712
+ * Data to send
1713
+ */
1714
+ data: string;
1715
+ } | {
1716
+ memo: string;
1717
+ accountNumber: number;
1718
+ sequence: number;
1719
+ chainId: '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '2868' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1720
+ msgs: Array<{
1721
+ type: string;
1722
+ value: unknown;
1723
+ } | {
1724
+ typeUrl: string;
1725
+ value: unknown;
1726
+ }>;
1727
+ fee: {
1728
+ amount: Array<{
1729
+ denom: string;
1730
+ amount: string;
1731
+ }>;
1732
+ gas: string;
1733
+ };
1734
+ } | {
1735
+ visible: boolean;
1736
+ txID: string;
1737
+ raw_data: {
1738
+ contract: unknown;
1739
+ ref_block_bytes: string;
1740
+ ref_block_hash: string;
1741
+ expiration: number;
1742
+ fee_limit?: number;
1743
+ timestamp: number;
1744
+ data?: unknown;
1745
+ };
1746
+ raw_data_hex: string;
1747
+ } | Array<{
1748
+ contractAddress: string;
1749
+ entrypoint: string;
1750
+ calldata: Array<string>;
1751
+ }> | string;
1752
+ meta: {
1753
+ assets?: Array<{
1754
+ /**
1755
+ * Asset name
1756
+ */
1757
+ asset: string;
1758
+ /**
1759
+ * Price in USD
1760
+ */
1761
+ price: number;
1762
+ /**
1763
+ * Asset image
1764
+ */
1765
+ image: string;
1766
+ }>;
1767
+ tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
1768
+ streamingInterval?: number;
1769
+ maxStreamingQuantity?: number;
1770
+ referrer?: string;
1771
+ /**
1772
+ * Price impact
1773
+ */
1774
+ priceImpact?: number;
1775
+ /**
1776
+ * Approval address for swap
1777
+ */
1778
+ approvalAddress?: string;
1779
+ affiliate?: string;
1780
+ affiliateFee?: string;
1781
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'RADIX' | 'SOLANA' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CARDANO' | 'TON' | 'STARKNET' | 'zcash-unsigned';
1782
+ chainflip?: {
1783
+ destinationAddress: string;
1784
+ sellAsset: {
1785
+ chain: string;
1786
+ asset: string;
1787
+ };
1788
+ buyAsset: {
1789
+ chain: string;
1790
+ asset: string;
1791
+ };
1792
+ channelMetadata?: {
1793
+ ccmAdditionalData?: string;
1794
+ gasBudget?: string;
1795
+ message?: string;
1796
+ cfParameters?: string;
1797
+ };
1798
+ affiliateFees?: Array<{
1799
+ brokerAddress: string;
1800
+ feeBps: number;
1801
+ }>;
1802
+ refundParameters?: {
1803
+ minPrice?: string;
1804
+ refundAddress?: string;
1805
+ retryDuration?: number;
1806
+ };
1807
+ dcaParameters?: {
1808
+ chunkInterval?: number;
1809
+ numberOfChunks?: number;
1810
+ };
1811
+ brokerCommissionBps?: number;
1812
+ maxBoostFeeBps?: number;
1813
+ };
1814
+ near?: {
1815
+ destinationAddress: string;
1816
+ sellAsset: string;
1817
+ buyAsset: string;
1818
+ sourceAddress: string;
1819
+ sellAmount: string;
1820
+ affiliateFees?: {
1821
+ nearId: string;
1822
+ feeBps: number;
1823
+ };
1824
+ slippage: number;
1825
+ };
1826
+ garden?: {
1827
+ destinationAddress: string;
1828
+ sellAsset: string;
1829
+ buyAsset: string;
1830
+ buyAmount: string;
1831
+ sellAmount: string;
1832
+ sourceAddress: string;
1833
+ affiliateFees?: {
1834
+ address: string;
1835
+ asset: string;
1836
+ fee: number;
1837
+ };
1838
+ slippage: number;
1839
+ };
1840
+ isFastQuote?: boolean;
1841
+ /**
1842
+ * Indicates if the quote was refreshed
1843
+ */
1844
+ isRefreshed?: boolean;
1845
+ };
1846
+ /**
1847
+ * The unique swap ID for tracking
1848
+ */
1849
+ swapId: string;
1850
+ /**
1851
+ * Optional approval transaction if ERC-20 approval is required before swap
1852
+ */
1853
+ approvalTx?: {
1854
+ /**
1855
+ * Token contract address
1856
+ */
1857
+ to: string;
1858
+ /**
1859
+ * User wallet address
1860
+ */
1861
+ from: string;
1862
+ /**
1863
+ * ETH value (always '0' for approvals)
1864
+ */
1865
+ value: string;
1866
+ /**
1867
+ * Encoded approval call data
1868
+ */
1869
+ data: string;
1870
+ /**
1871
+ * Estimated gas limit
1872
+ */
1873
+ gasLimit?: string;
1874
+ /**
1875
+ * Current gas price
1876
+ */
1877
+ gasPrice?: string;
1878
+ };
1879
+ };
1880
+ };
1881
+
1882
+ export type PostV3SwapResponse = PostV3SwapResponses[keyof PostV3SwapResponses];