@swapkit/api-sdk-typescript 1.0.0 → 1.0.5

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/dist/index.d.cts CHANGED
@@ -27,7 +27,7 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
27
27
  type ObjectStyle = 'form' | 'deepObject';
28
28
 
29
29
  type QuerySerializer = (query: Record<string, unknown>) => string;
30
- type BodySerializer = (body: any) => any;
30
+ type BodySerializer = (body: unknown) => unknown;
31
31
  type QuerySerializerOptionsObject = {
32
32
  allowReserved?: boolean;
33
33
  array?: Partial<SerializerOptions<ArrayStyle>>;
@@ -102,7 +102,7 @@ interface Config$1 {
102
102
  requestValidator?: (data: unknown) => Promise<unknown>;
103
103
  /**
104
104
  * A function transforming response data before it's returned. This is useful
105
- * for post-processing data, e.g. converting ISO strings into Date objects.
105
+ * for post-processing data, e.g., converting ISO strings into Date objects.
106
106
  */
107
107
  responseTransformer?: (data: unknown) => Promise<unknown>;
108
108
  /**
@@ -246,7 +246,7 @@ interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Reque
246
246
  interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
247
247
  responseStyle: TResponseStyle;
248
248
  throwOnError: ThrowOnError;
249
- }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
249
+ }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
250
250
  /**
251
251
  * Any body that you want to add to your request.
252
252
  *
@@ -262,6 +262,7 @@ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle =
262
262
  url: Url;
263
263
  }
264
264
  interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
265
+ headers: Headers;
265
266
  serializedBody?: string;
266
267
  }
267
268
  type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
@@ -284,7 +285,7 @@ interface ClientOptions$1 {
284
285
  throwOnError?: boolean;
285
286
  }
286
287
  type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
287
- type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
288
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
288
289
  type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
289
290
  type BuildUrlFn = <TData extends {
290
291
  body?: unknown;
@@ -306,314 +307,1172 @@ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
306
307
  type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
307
308
 
308
309
  type ClientOptions = {
309
- baseUrl: 'http://localhost:8080' | 'https://api.swapkit.dev/tokenlist' | 'https://dev-api.swapkit.dev/tokenlist' | (string & {});
310
+ baseUrl: 'http://localhost:0' | 'https://api.swapkit.dev/tokenlist' | 'https://dev-api.swapkit.dev/tokenlist' | (string & {});
310
311
  };
311
- type GetProvidersData = {
312
- body?: never;
313
- path?: never;
314
- query?: never;
315
- url: '/providers';
316
- };
317
- type GetProvidersErrors = {
318
- /**
319
- * Default Response
320
- */
321
- 500: {
322
- message: string;
323
- error: string;
324
- data?: unknown;
312
+ type GetTokensResponse = {
313
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
314
+ chainId?: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
315
+ name: string;
316
+ tags?: {
317
+ [key: string]: unknown;
318
+ };
319
+ timestamp: string;
320
+ version?: {
321
+ major: number;
322
+ minor: number;
323
+ patch: number;
324
+ };
325
+ keywords?: Array<string>;
326
+ count: number;
327
+ tokens: Array<{
328
+ chain?: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
329
+ address?: string;
330
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
331
+ ticker: string;
332
+ identifier: string;
333
+ symbol?: string;
334
+ name?: string;
335
+ decimals: number;
336
+ logoURI?: string;
337
+ extensions?: {
338
+ [key: string]: unknown;
339
+ };
340
+ shortCode?: string;
341
+ coingeckoId?: string;
342
+ }>;
343
+ logoURI?: string;
344
+ url?: string;
345
+ enabledChainIds?: Array<'36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
346
+ supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
347
+ supportedChainIds?: Array<'36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
348
+ } | Array<{
349
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
350
+ chainId?: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
351
+ name: string;
352
+ tags?: {
353
+ [key: string]: unknown;
354
+ };
355
+ timestamp: string;
356
+ version?: {
357
+ major: number;
358
+ minor: number;
359
+ patch: number;
360
+ };
361
+ keywords?: Array<string>;
362
+ count: number;
363
+ tokens: Array<{
364
+ chain?: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
365
+ address?: string;
366
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
367
+ ticker: string;
368
+ identifier: string;
369
+ symbol?: string;
370
+ name?: string;
371
+ decimals: number;
372
+ logoURI?: string;
373
+ extensions?: {
374
+ [key: string]: unknown;
375
+ };
376
+ shortCode?: string;
377
+ coingeckoId?: string;
378
+ }>;
379
+ logoURI?: string;
380
+ url?: string;
381
+ enabledChainIds?: Array<'36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
382
+ supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
383
+ supportedChainIds?: Array<'36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
384
+ }>;
385
+ type GetProvidersResponse = Array<{
386
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
387
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
388
+ displayName?: string;
389
+ displayNameLong?: string;
390
+ keywords?: Array<string>;
391
+ count: number;
392
+ logoURI?: string;
393
+ url?: string;
394
+ enabledChainIds?: Array<'36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
395
+ supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
396
+ supportedChainIds?: Array<'36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>;
397
+ }>;
398
+ type GetSwapFromAssetsResponse = Array<string>;
399
+ type GetSwapToAssetsResponse = Array<string>;
400
+ type CreateBrokerChannelRequest = {
401
+ destinationAddress: string;
402
+ sellAsset: {
403
+ chain: string;
404
+ asset: string;
405
+ };
406
+ buyAsset: {
407
+ chain: string;
408
+ asset: string;
409
+ };
410
+ channelMetadata?: {
411
+ ccmAdditionalData?: string;
412
+ gasBudget?: string;
413
+ message?: string;
414
+ cfParameters?: string;
415
+ };
416
+ affiliateFees?: Array<{
417
+ brokerAddress: string;
418
+ feeBps: number;
419
+ }>;
420
+ refundParameters?: {
421
+ minPrice?: string;
422
+ refundAddress?: string;
423
+ retryDuration?: number;
424
+ maxOraclePriceSlippage?: number;
425
+ slippageTolerancePercent?: number;
426
+ livePriceSlippageTolerancePercent?: number;
325
427
  };
428
+ dcaParameters?: {
429
+ chunkInterval?: number;
430
+ numberOfChunks?: number;
431
+ };
432
+ brokerCommissionBps?: number;
433
+ maxBoostFeeBps?: number;
326
434
  };
327
- type GetProvidersError = GetProvidersErrors[keyof GetProvidersErrors];
328
- type GetProvidersResponses = {
435
+ type CreateBrokerChannelResponse = {
436
+ depositAddress: string;
437
+ channelId: string;
438
+ explorerUrl: string;
329
439
  /**
330
- * Default Response
440
+ * Error message
331
441
  */
332
- 200: Array<{
333
- 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';
334
- 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';
335
- displayName?: string;
336
- displayNameLong?: string;
337
- keywords?: Array<string>;
338
- count: number;
339
- logoURI?: string;
340
- url?: string;
341
- 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'>;
342
- supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
343
- 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'>;
442
+ error?: string;
443
+ };
444
+ type GetCachedPriceRequest = {
445
+ tokens: Array<{
446
+ identifier: string;
344
447
  }>;
448
+ metadata: boolean;
345
449
  };
346
- type GetProvidersResponse = GetProvidersResponses[keyof GetProvidersResponses];
347
- type GetTokensData = {
348
- body?: never;
349
- path?: never;
350
- query?: {
351
- /**
352
- * Provider name
353
- */
354
- 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';
450
+ type GetCachedPriceResponse = Array<{
451
+ identifier?: string;
452
+ provider?: string;
453
+ cg?: {
454
+ id: string;
455
+ name?: string;
456
+ market_cap?: number;
457
+ total_volume?: number;
458
+ price_change_24h_usd?: number | null;
459
+ price_change_percentage_24h_usd?: number | null;
460
+ sparkline_in_7d?: Array<number>;
461
+ timestamp?: string;
355
462
  };
356
- url: '/tokens';
463
+ price_usd?: number;
464
+ timestamp?: number;
465
+ }>;
466
+ type ScreenAddressRequest = {
467
+ addresses: string | Array<string>;
468
+ chains: string | Array<string>;
357
469
  };
358
- type GetTokensErrors = {
470
+ type ScreenAddressResponse = {
471
+ confirm: boolean;
472
+ isBlacklisted?: boolean;
473
+ isRisky?: boolean;
474
+ isSanctioned?: boolean;
475
+ module?: number;
476
+ };
477
+ type ExecuteSwapRequest = {
359
478
  /**
360
- * Default Response
479
+ * The ID of the route to swap
361
480
  */
362
- 400: {
363
- message: string;
364
- error: string;
365
- data?: unknown;
366
- };
481
+ routeId: string;
367
482
  /**
368
- * Default Response
483
+ * Address to send asset from
369
484
  */
370
- 500: {
371
- message: string;
372
- error: string;
373
- data?: unknown;
374
- };
485
+ sourceAddress: string;
486
+ /**
487
+ * Recipient address to send asset to
488
+ */
489
+ destinationAddress: string;
490
+ /**
491
+ * Whether to disable balance check
492
+ */
493
+ disableBalanceCheck?: boolean;
494
+ /**
495
+ * Whether to disable estimate gas
496
+ */
497
+ disableEstimate?: boolean;
498
+ /**
499
+ * Whether to allow smart contract sender
500
+ */
501
+ allowSmartContractSender?: boolean;
502
+ /**
503
+ * Whether to allow smart contract receiver
504
+ */
505
+ allowSmartContractReceiver?: boolean;
506
+ /**
507
+ * Whether to disable security checks
508
+ */
509
+ disableSecurityChecks?: boolean;
510
+ /**
511
+ * Whether to override slippage validation on quote refresh
512
+ */
513
+ overrideSlippage?: boolean;
514
+ /**
515
+ * Set to true to skip building a transaction. Used when you build a custom transaction from our response.
516
+ */
517
+ disableBuildTx?: boolean;
375
518
  };
376
- type GetTokensError = GetTokensErrors[keyof GetTokensErrors];
377
- type GetTokensResponses = {
519
+ type ExecuteSwapResponse = {
378
520
  /**
379
- * Default Response
521
+ * Asset to sell
380
522
  */
381
- 200: {
382
- 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';
383
- 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';
384
- name: string;
385
- tags?: {
386
- [key: string]: unknown;
387
- };
388
- timestamp: string;
389
- version?: {
390
- major: number;
391
- minor: number;
392
- patch: number;
393
- };
394
- keywords?: Array<string>;
395
- count: number;
396
- tokens: Array<{
397
- 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';
398
- address?: string;
399
- 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';
400
- ticker: string;
401
- identifier: string;
402
- symbol?: string;
403
- name?: string;
404
- decimals: number;
405
- logoURI?: string;
406
- extensions?: {
407
- [key: string]: unknown;
408
- };
409
- shortCode?: string;
410
- coingeckoId?: string;
411
- }>;
412
- logoURI?: string;
413
- url?: string;
414
- 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'>;
415
- supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
416
- 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'>;
417
- } | Array<{
418
- 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';
419
- 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';
420
- name: string;
421
- tags?: {
422
- [key: string]: unknown;
423
- };
424
- timestamp: string;
425
- version?: {
426
- major: number;
427
- minor: number;
428
- patch: number;
429
- };
430
- keywords?: Array<string>;
431
- count: number;
432
- tokens: Array<{
433
- 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';
434
- address?: string;
435
- 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';
436
- ticker: string;
437
- identifier: string;
438
- symbol?: string;
439
- name?: string;
440
- decimals: number;
441
- logoURI?: string;
442
- extensions?: {
443
- [key: string]: unknown;
444
- };
445
- shortCode?: string;
446
- coingeckoId?: string;
447
- }>;
448
- logoURI?: string;
449
- url?: string;
450
- 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'>;
451
- supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake'>;
452
- 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'>;
523
+ sellAsset: string;
524
+ /**
525
+ * Sell amount
526
+ */
527
+ sellAmount: string;
528
+ /**
529
+ * Asset to buy
530
+ */
531
+ buyAsset: string;
532
+ /**
533
+ * Buy amount
534
+ */
535
+ buyAmount?: string;
536
+ /**
537
+ * Buy amount max slippage
538
+ */
539
+ buyAmountMaxSlippage?: string;
540
+ /**
541
+ * Expected Buy amount
542
+ */
543
+ expectedBuyAmount?: string;
544
+ /**
545
+ * Expected Buy amount max slippage
546
+ */
547
+ expectedBuyAmountMaxSlippage?: string;
548
+ fees: Array<{
549
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
550
+ amount: string;
551
+ amountBps?: number;
552
+ asset: string;
553
+ chain: string;
554
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
453
555
  }>;
454
- };
455
- type GetTokensResponse = GetTokensResponses[keyof GetTokensResponses];
456
- type GetSwapToData = {
457
- body?: never;
458
- path?: never;
459
- query: {
460
- /**
461
- * Asset to swap from
462
- */
463
- sellAsset: string;
464
- };
465
- url: '/swapTo';
466
- };
467
- type GetSwapToErrors = {
468
556
  /**
469
- * Default Response
557
+ * The provider of the previous leg in the route, if any
470
558
  */
471
- 400: {
472
- message: string;
473
- error: string;
474
- data?: unknown;
475
- };
559
+ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
476
560
  /**
477
- * Default Response
561
+ * The provider of the next leg in the route, if any
478
562
  */
479
- 500: {
480
- message: string;
481
- error: string;
482
- data?: unknown;
563
+ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
564
+ /**
565
+ * Route ID
566
+ */
567
+ routeId: string;
568
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>;
569
+ /**
570
+ * Expiration
571
+ */
572
+ expiration?: string;
573
+ estimatedTime?: {
574
+ /**
575
+ * Time to receive inbound asset in seconds
576
+ */
577
+ inbound?: number;
578
+ /**
579
+ * Time to swap assets in seconds
580
+ */
581
+ swap?: number;
582
+ /**
583
+ * Time to receive outbound asset in seconds
584
+ */
585
+ outbound?: number;
586
+ /**
587
+ * Total time in seconds
588
+ */
589
+ total: number;
483
590
  };
484
- };
485
- type GetSwapToError = GetSwapToErrors[keyof GetSwapToErrors];
486
- type GetSwapToResponses = {
487
591
  /**
488
- * Default Response
592
+ * Total slippage in bps
489
593
  */
490
- 200: Array<string>;
491
- };
492
- type GetSwapToResponse = GetSwapToResponses[keyof GetSwapToResponses];
493
- type GetSwapFromData = {
494
- body?: never;
495
- path?: never;
496
- query: {
594
+ totalSlippageBps: number;
595
+ legs: Array<{
596
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
497
597
  /**
498
- * Asset to swap to (target asset)
598
+ * Asset to sell
599
+ */
600
+ sellAsset: string;
601
+ /**
602
+ * Sell amount
603
+ */
604
+ sellAmount: string;
605
+ /**
606
+ * Asset to buy
499
607
  */
500
608
  buyAsset: string;
501
- };
502
- url: '/swapFrom';
503
- };
504
- type GetSwapFromErrors = {
609
+ /**
610
+ * Buy amount
611
+ */
612
+ buyAmount?: string;
613
+ /**
614
+ * Buy amount max slippage
615
+ */
616
+ buyAmountMaxSlippage?: string;
617
+ /**
618
+ * Expected Buy amount
619
+ */
620
+ expectedBuyAmount?: string;
621
+ /**
622
+ * Expected Buy amount max slippage
623
+ */
624
+ expectedBuyAmountMaxSlippage?: string;
625
+ fees: Array<{
626
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
627
+ amount: string;
628
+ amountBps?: number;
629
+ asset: string;
630
+ chain: string;
631
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
632
+ }>;
633
+ /**
634
+ * The provider of the previous leg in the route, if any
635
+ */
636
+ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
637
+ /**
638
+ * The provider of the next leg in the route, if any
639
+ */
640
+ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
641
+ }>;
642
+ warnings: Array<{
643
+ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
644
+ display: string;
645
+ tooltip?: string;
646
+ }>;
505
647
  /**
506
- * Default Response
648
+ * Source address
507
649
  */
508
- 400: {
509
- message: string;
510
- error: string;
511
- data?: unknown;
512
- };
650
+ sourceAddress: string;
513
651
  /**
514
- * Default Response
652
+ * Destination address
515
653
  */
516
- 500: {
517
- message: string;
518
- error: string;
519
- data?: unknown;
520
- };
521
- };
522
- type GetSwapFromError = GetSwapFromErrors[keyof GetSwapFromErrors];
523
- type GetSwapFromResponses = {
654
+ destinationAddress: string;
524
655
  /**
525
- * Default Response
656
+ * Target address
526
657
  */
527
- 200: Array<string>;
528
- };
529
- type GetSwapFromResponse = GetSwapFromResponses[keyof GetSwapFromResponses];
530
- type PostChainflipBrokerChannelData = {
531
- body: {
532
- destinationAddress: string;
533
- sellAsset: {
534
- chain: string;
535
- asset: string;
536
- };
537
- buyAsset: {
538
- chain: string;
539
- asset: string;
540
- };
541
- channelMetadata?: {
542
- ccmAdditionalData?: string;
543
- gasBudget?: string;
544
- message?: string;
545
- cfParameters?: string;
546
- };
547
- affiliateFees?: Array<{
548
- brokerAddress: string;
549
- feeBps: number;
658
+ targetAddress?: string;
659
+ /**
660
+ * Inbound address
661
+ */
662
+ inboundAddress?: string;
663
+ /**
664
+ * Memo to include in the transaction
665
+ */
666
+ memo?: string;
667
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SOLANA' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CARDANO' | 'TON' | 'STARKNET' | 'zcash-unsigned';
668
+ tx?: {
669
+ /**
670
+ * Address of the recipient
671
+ */
672
+ to: string;
673
+ /**
674
+ * Address of the sender
675
+ */
676
+ from?: string;
677
+ /**
678
+ * Gas limit
679
+ */
680
+ gas?: string;
681
+ /**
682
+ * Gas price
683
+ */
684
+ gasPrice?: string;
685
+ /**
686
+ * Value to send
687
+ */
688
+ value: string;
689
+ /**
690
+ * Data to send
691
+ */
692
+ data: string;
693
+ } | {
694
+ memo: string;
695
+ accountNumber: number;
696
+ sequence: number;
697
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
698
+ msgs: Array<{
699
+ type: string;
700
+ value: unknown;
701
+ } | {
702
+ typeUrl: string;
703
+ value: unknown;
550
704
  }>;
551
- refundParameters?: {
552
- minPrice?: string;
553
- refundAddress?: string;
554
- retryDuration?: number;
705
+ fee: {
706
+ amount: Array<{
707
+ denom: string;
708
+ amount: string;
709
+ }>;
710
+ gas: string;
555
711
  };
556
- dcaParameters?: {
557
- chunkInterval?: number;
558
- numberOfChunks?: number;
712
+ } | {
713
+ visible?: boolean;
714
+ txID: string;
715
+ raw_data: {
716
+ contract: unknown;
717
+ ref_block_bytes: string;
718
+ ref_block_hash: string;
719
+ expiration: number;
720
+ fee_limit?: unknown;
721
+ timestamp: number;
722
+ data?: unknown;
559
723
  };
560
- brokerCommissionBps?: number;
561
- maxBoostFeeBps?: number;
562
- };
563
- path?: never;
564
- query?: never;
565
- url: '/chainflip/broker/channel';
566
- };
567
- type PostChainflipBrokerChannelResponses = {
568
- /**
569
- * Default Response
570
- */
571
- 200: {
572
- depositAddress: string;
573
- channelId: string;
574
- explorerUrl: string;
724
+ raw_data_hex: string;
725
+ } | Array<{
726
+ contractAddress: string;
727
+ entrypoint: string;
728
+ calldata: Array<string>;
729
+ }> | Array<{
575
730
  /**
576
- * Error message
731
+ * Destination address in friendly format
577
732
  */
578
- error?: string;
579
- };
580
- };
581
- type PostChainflipBrokerChannelResponse = PostChainflipBrokerChannelResponses[keyof PostChainflipBrokerChannelResponses];
582
- type PostTrackData = {
583
- body?: {
733
+ address: string;
584
734
  /**
585
- * Hash for the first transaction broadcasted by the end user. e.g. `88D1819378ECD09E5284C54937CDC1E99B52F253C007617A02DD1200710CE677`
735
+ * Amount in nanotons
586
736
  */
587
- hash?: string;
737
+ amount: string;
588
738
  /**
589
- * ChainId for the hash. e.g. `thorchain-1`
739
+ * Base64 BOC of body cell
590
740
  */
591
- chainId?: string;
741
+ payload?: string;
592
742
  /**
593
- * Block number. Required for Polkadot chain. e.g. `123456`
743
+ * Base64 BOC of state init
594
744
  */
595
- block?: number;
745
+ stateInit?: string;
746
+ }> | string;
747
+ meta: {
748
+ assets?: Array<{
749
+ /**
750
+ * Asset name
751
+ */
752
+ asset: string;
753
+ /**
754
+ * Price in USD
755
+ */
756
+ price: number;
757
+ /**
758
+ * Asset image
759
+ */
760
+ image: string;
761
+ }>;
762
+ tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
763
+ streamingInterval?: number;
764
+ maxStreamingQuantity?: number;
765
+ referrer?: string;
596
766
  /**
597
- * Deposit channel ID, required for Chainflip if tx was broadcasted without wallet connection
767
+ * Price impact
598
768
  */
599
- depositChannelId?: string;
769
+ priceImpact?: number;
600
770
  /**
601
- * Deposit address associated with a deposit channel
771
+ * Approval address for swap
602
772
  */
603
- depositAddress?: string;
604
- };
605
- path?: never;
606
- query?: {
607
- forceUpdate?: string;
773
+ approvalAddress?: string;
774
+ affiliate?: string;
775
+ affiliateFee?: string;
776
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SOLANA' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CARDANO' | 'TON' | 'STARKNET' | 'zcash-unsigned';
777
+ chainflip?: {
778
+ destinationAddress: string;
779
+ sellAsset: {
780
+ chain: string;
781
+ asset: string;
782
+ };
783
+ buyAsset: {
784
+ chain: string;
785
+ asset: string;
786
+ };
787
+ channelMetadata?: {
788
+ ccmAdditionalData?: string;
789
+ gasBudget?: string;
790
+ message?: string;
791
+ cfParameters?: string;
792
+ };
793
+ affiliateFees?: Array<{
794
+ brokerAddress: string;
795
+ feeBps: number;
796
+ }>;
797
+ refundParameters?: {
798
+ minPrice?: string;
799
+ refundAddress?: string;
800
+ retryDuration?: number;
801
+ maxOraclePriceSlippage?: number;
802
+ slippageTolerancePercent?: number;
803
+ livePriceSlippageTolerancePercent?: number;
804
+ };
805
+ dcaParameters?: {
806
+ chunkInterval?: number;
807
+ numberOfChunks?: number;
808
+ };
809
+ brokerCommissionBps?: number;
810
+ maxBoostFeeBps?: number;
811
+ };
812
+ garden?: {
813
+ destinationAddress: string;
814
+ sellAsset: string;
815
+ buyAsset: string;
816
+ buyAmount: string;
817
+ sellAmount: string;
818
+ sourceAddress: string;
819
+ affiliateFees?: {
820
+ address: string;
821
+ asset: string;
822
+ fee: number;
823
+ };
824
+ slippage: number;
825
+ };
826
+ near?: {
827
+ destinationAddress: string;
828
+ sellAsset: string;
829
+ buyAsset: string;
830
+ sourceAddress: string;
831
+ sellAmount: string;
832
+ affiliateFees?: {
833
+ nearId: string;
834
+ feeBps: number;
835
+ };
836
+ slippage: number;
837
+ };
838
+ isFastQuote?: boolean;
839
+ /**
840
+ * Indicates if the quote was refreshed
841
+ */
842
+ isRefreshed?: boolean;
843
+ /**
844
+ * Indicates if the tx is wrapped
845
+ */
846
+ isWrapped?: boolean;
847
+ signedTx?: string;
848
+ signature?: string;
849
+ slip24?: {
850
+ recipientName: string;
851
+ nonce: string | null;
852
+ coinType: number;
853
+ memos: Array<{
854
+ type: 'text';
855
+ text: string;
856
+ } | {
857
+ type: 'refund';
858
+ refund: string;
859
+ } | {
860
+ type: 'coinPurchase';
861
+ coinPurchase: {
862
+ coinType: number;
863
+ amount: string;
864
+ address: string;
865
+ };
866
+ }>;
867
+ outputs: Array<{
868
+ amount: number;
869
+ address: string;
870
+ }>;
871
+ signature: string;
872
+ };
608
873
  };
609
- url: '/track';
874
+ /**
875
+ * The unique swap ID for tracking
876
+ */
877
+ swapId: string;
878
+ /**
879
+ * Optional approval transaction if ERC-20 approval is required before swap
880
+ */
881
+ approvalTx?: {
882
+ /**
883
+ * Token contract address
884
+ */
885
+ to: string;
886
+ /**
887
+ * User wallet address
888
+ */
889
+ from: string;
890
+ /**
891
+ * ETH value (always '0' for approvals)
892
+ */
893
+ value: string;
894
+ /**
895
+ * Encoded approval call data
896
+ */
897
+ data: string;
898
+ /**
899
+ * Estimated gas limit
900
+ */
901
+ gasLimit?: string;
902
+ /**
903
+ * Current gas price
904
+ */
905
+ gasPrice?: string;
906
+ };
907
+ };
908
+ type GetGasHistoryResponse = Array<{
909
+ id: number;
910
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
911
+ value: string;
912
+ unit: string;
913
+ createdAt: string;
914
+ }> | {
915
+ [key: string]: Array<{
916
+ id: number;
917
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
918
+ value: string;
919
+ unit: string;
920
+ createdAt: string;
921
+ }>;
922
+ };
923
+ type GetGasPricesResponse = {
924
+ id: number;
925
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
926
+ value: string;
927
+ unit: string;
928
+ createdAt: string;
929
+ } | Array<{
930
+ id: number;
931
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
932
+ value: string;
933
+ unit: string;
934
+ createdAt: string;
935
+ }>;
936
+ type GetQuoteRequest = {
937
+ /**
938
+ * Asset to sell
939
+ */
940
+ sellAsset: string;
941
+ /**
942
+ * Asset to buy
943
+ */
944
+ buyAsset: string;
945
+ /**
946
+ * Amount of asset to sell
947
+ */
948
+ sellAmount: string;
949
+ providers?: Array<string>;
950
+ /**
951
+ * Address to send asset from
952
+ */
953
+ sourceAddress?: string;
954
+ /**
955
+ * Address to send asset to
956
+ */
957
+ destinationAddress?: string;
958
+ /**
959
+ * Slippage tolerance as a percentage. Default is 3%.
960
+ */
961
+ slippage?: number;
962
+ /**
963
+ * Set to true to enable CF boost to speed up Chainflip swaps. BTC only.
964
+ */
965
+ cfBoost?: boolean;
966
+ referrer?: string;
967
+ /**
968
+ * Set to true to disable on-chain estimation
969
+ */
970
+ disableEstimate?: boolean;
971
+ /**
972
+ * Maximum execution time in seconds. Routes exceeding this time will be filtered out.
973
+ */
974
+ maxExecutionTime?: number;
975
+ /**
976
+ * 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.
977
+ */
978
+ affiliateFee?: number;
979
+ };
980
+ type GetQuoteResponse = {
981
+ /**
982
+ * Quote ID
983
+ */
984
+ quoteId: string;
985
+ routes: Array<{
986
+ /**
987
+ * Asset to sell
988
+ */
989
+ sellAsset: string;
990
+ /**
991
+ * Sell amount
992
+ */
993
+ sellAmount: string;
994
+ /**
995
+ * Asset to buy
996
+ */
997
+ buyAsset: string;
998
+ /**
999
+ * Buy amount
1000
+ */
1001
+ buyAmount?: string;
1002
+ /**
1003
+ * Buy amount max slippage
1004
+ */
1005
+ buyAmountMaxSlippage?: string;
1006
+ /**
1007
+ * Expected Buy amount
1008
+ */
1009
+ expectedBuyAmount?: string;
1010
+ /**
1011
+ * Expected Buy amount max slippage
1012
+ */
1013
+ expectedBuyAmountMaxSlippage?: string;
1014
+ fees: Array<{
1015
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1016
+ amount: string;
1017
+ amountBps?: number;
1018
+ asset: string;
1019
+ chain: string;
1020
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1021
+ }>;
1022
+ /**
1023
+ * The provider of the previous leg in the route, if any
1024
+ */
1025
+ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1026
+ /**
1027
+ * The provider of the next leg in the route, if any
1028
+ */
1029
+ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1030
+ /**
1031
+ * Route ID
1032
+ */
1033
+ routeId: string;
1034
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>;
1035
+ /**
1036
+ * Expiration
1037
+ */
1038
+ expiration?: string;
1039
+ estimatedTime?: {
1040
+ /**
1041
+ * Time to receive inbound asset in seconds
1042
+ */
1043
+ inbound?: number;
1044
+ /**
1045
+ * Time to swap assets in seconds
1046
+ */
1047
+ swap?: number;
1048
+ /**
1049
+ * Time to receive outbound asset in seconds
1050
+ */
1051
+ outbound?: number;
1052
+ /**
1053
+ * Total time in seconds
1054
+ */
1055
+ total: number;
1056
+ };
1057
+ /**
1058
+ * Total slippage in bps
1059
+ */
1060
+ totalSlippageBps: number;
1061
+ legs: Array<{
1062
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1063
+ /**
1064
+ * Asset to sell
1065
+ */
1066
+ sellAsset: string;
1067
+ /**
1068
+ * Sell amount
1069
+ */
1070
+ sellAmount: string;
1071
+ /**
1072
+ * Asset to buy
1073
+ */
1074
+ buyAsset: string;
1075
+ /**
1076
+ * Buy amount
1077
+ */
1078
+ buyAmount?: string;
1079
+ /**
1080
+ * Buy amount max slippage
1081
+ */
1082
+ buyAmountMaxSlippage?: string;
1083
+ /**
1084
+ * Expected Buy amount
1085
+ */
1086
+ expectedBuyAmount?: string;
1087
+ /**
1088
+ * Expected Buy amount max slippage
1089
+ */
1090
+ expectedBuyAmountMaxSlippage?: string;
1091
+ fees: Array<{
1092
+ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1093
+ amount: string;
1094
+ amountBps?: number;
1095
+ asset: string;
1096
+ chain: string;
1097
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1098
+ }>;
1099
+ /**
1100
+ * The provider of the previous leg in the route, if any
1101
+ */
1102
+ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1103
+ /**
1104
+ * The provider of the next leg in the route, if any
1105
+ */
1106
+ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1107
+ }>;
1108
+ warnings: Array<{
1109
+ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1110
+ display: string;
1111
+ tooltip?: string;
1112
+ }>;
1113
+ meta: {
1114
+ assets?: Array<{
1115
+ /**
1116
+ * Asset name
1117
+ */
1118
+ asset: string;
1119
+ /**
1120
+ * Price in USD
1121
+ */
1122
+ price: number;
1123
+ /**
1124
+ * Asset image
1125
+ */
1126
+ image: string;
1127
+ }>;
1128
+ tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
1129
+ streamingInterval?: number;
1130
+ maxStreamingQuantity?: number;
1131
+ referrer?: string;
1132
+ /**
1133
+ * Approval address for token swap
1134
+ */
1135
+ approvalAddress?: string;
1136
+ };
1137
+ nextActions?: Array<{
1138
+ method: string;
1139
+ url: string;
1140
+ payload?: unknown;
1141
+ }>;
1142
+ }>;
1143
+ /**
1144
+ * Error message
1145
+ */
1146
+ error?: string;
1147
+ providerErrors?: Array<{
1148
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1149
+ 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' | 'insufficientLiquidity' | 'noSaversFound' | 'noInbounDataFound' | 'noInboundAddressesFound' | 'noTargetAddress' | 'noInboundAddressFoundForChain' | 'noLastBlocksFound' | 'noVersionFound' | 'noConstantsFound' | 'noMimirsFound' | 'noRoutesFound' | 'quoteNotFound' | 'ledgerWrongPayload' | 'failedToFetchTx' | 'failedBuildTransactionDetails' | 'failedToCreateRouteMetadata' | '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' | 'apiKeySignatureKeyTypeMismatch' | 'apiKeyExpired' | 'unauthorized' | 'failedToCreateMemo' | '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' | 'swapSizeExceeded' | 'v2EndpointNotAllowed' | 'externalServiceFailed' | 'tenantEncryptKeyNotFound' | 'tenantKeyPairEncryptionError' | 'slip24AmountOverflow' | 'slip24InvalidSignature' | 'slip24DigestComputationFailed' | 'invalidTxHashFormat' | 'nearAffiliateProviderAssetNotFound' | 'nearAffiliateDepositAddressFailed' | 'nearAffiliateNotFound' | 'flashnetAffiliateRegistrationFailed' | 'flashnetAffiliateNotFound' | 'flashnetAffiliateClaimFailed';
1150
+ message?: string;
1151
+ }>;
1152
+ };
1153
+ type TrackTransactionRequest = {
1154
+ /**
1155
+ * Hash for the first transaction broadcasted by the end user. e.g. `88D1819378ECD09E5284C54937CDC1E99B52F253C007617A02DD1200710CE677`
1156
+ */
1157
+ hash?: string;
1158
+ /**
1159
+ * ChainId for the hash. e.g. `thorchain-1`
1160
+ */
1161
+ chainId?: string;
1162
+ /**
1163
+ * Block number. Required for Polkadot chain. e.g. `123456`
1164
+ */
1165
+ block?: number;
1166
+ /**
1167
+ * Deposit channel ID, required for Chainflip if tx was broadcasted without wallet connection
1168
+ */
1169
+ depositChannelId?: string;
1170
+ /**
1171
+ * Deposit address associated with a deposit channel
1172
+ */
1173
+ depositAddress?: string;
1174
+ };
1175
+ type TrackTransactionResponse = {
1176
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1177
+ hash: string;
1178
+ block: number;
1179
+ 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';
1180
+ status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
1181
+ trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
1182
+ fromAsset: string;
1183
+ fromAmount: string;
1184
+ fromAddress: string;
1185
+ toAsset: string;
1186
+ toAmount: string;
1187
+ toAddress: string;
1188
+ finalAsset?: {
1189
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1190
+ symbol: string;
1191
+ ticker: string;
1192
+ decimal?: number;
1193
+ address?: string;
1194
+ isGasAsset: boolean;
1195
+ isSynthetic: boolean;
1196
+ tax?: {
1197
+ buy: number;
1198
+ sell: number;
1199
+ };
1200
+ };
1201
+ finalAddress?: string;
1202
+ finalisedAt: number;
1203
+ transient?: {
1204
+ estimatedTimeToComplete: number;
1205
+ currentLegIndex?: number;
1206
+ estimates?: {
1207
+ inboundObservation: number;
1208
+ inboundConfirmation: number;
1209
+ streamingSwap: number;
1210
+ outboundDelay: number;
1211
+ outboundObservation: number;
1212
+ currentStage: string;
1213
+ };
1214
+ providerDetails?: {
1215
+ streamingDetails?: {
1216
+ quantity?: number;
1217
+ count?: number;
1218
+ interval?: number;
1219
+ subSwapsMap?: Array<number>;
1220
+ };
1221
+ depositChannelId?: string;
1222
+ depositAddress?: string;
1223
+ };
1224
+ };
1225
+ meta?: {
1226
+ broadcastedAt?: number;
1227
+ wallet?: string;
1228
+ quoteId?: string;
1229
+ explorerUrl?: string;
1230
+ affiliate?: string;
1231
+ fees?: {
1232
+ network?: {
1233
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1234
+ symbol: string;
1235
+ ticker: string;
1236
+ decimal?: number;
1237
+ address?: string;
1238
+ isGasAsset: boolean;
1239
+ isSynthetic: boolean;
1240
+ tax?: {
1241
+ buy: number;
1242
+ sell: number;
1243
+ };
1244
+ };
1245
+ affiliate?: {
1246
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1247
+ symbol: string;
1248
+ ticker: string;
1249
+ decimal?: number;
1250
+ address?: string;
1251
+ isGasAsset: boolean;
1252
+ isSynthetic: boolean;
1253
+ tax?: {
1254
+ buy: number;
1255
+ sell: number;
1256
+ };
1257
+ };
1258
+ liquidity?: {
1259
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1260
+ symbol: string;
1261
+ ticker: string;
1262
+ decimal?: number;
1263
+ address?: string;
1264
+ isGasAsset: boolean;
1265
+ isSynthetic: boolean;
1266
+ tax?: {
1267
+ buy: number;
1268
+ sell: number;
1269
+ };
1270
+ };
1271
+ protocol?: {
1272
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1273
+ symbol: string;
1274
+ ticker: string;
1275
+ decimal?: number;
1276
+ address?: string;
1277
+ isGasAsset: boolean;
1278
+ isSynthetic: boolean;
1279
+ tax?: {
1280
+ buy: number;
1281
+ sell: number;
1282
+ };
1283
+ };
1284
+ tax?: {
1285
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1286
+ symbol: string;
1287
+ ticker: string;
1288
+ decimal?: number;
1289
+ address?: string;
1290
+ isGasAsset: boolean;
1291
+ isSynthetic: boolean;
1292
+ tax?: {
1293
+ buy: number;
1294
+ sell: number;
1295
+ };
1296
+ };
1297
+ };
1298
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1299
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
1300
+ images?: {
1301
+ from?: string;
1302
+ to?: string;
1303
+ provider?: string;
1304
+ chain?: string;
1305
+ };
1306
+ affiliateFees?: Array<{
1307
+ affiliate: string;
1308
+ bps: string;
1309
+ isReferrer: boolean;
1310
+ }>;
1311
+ };
1312
+ payload?: {
1313
+ evmCalldata?: string;
1314
+ evmValue?: string;
1315
+ logs?: unknown;
1316
+ memo?: string;
1317
+ spender?: string;
1318
+ manifest?: unknown;
1319
+ intentHash?: string;
1320
+ thorname?: string;
1321
+ decodedPayload?: unknown;
1322
+ };
1323
+ legs: Array<{
1324
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1325
+ hash: string;
1326
+ block: number;
1327
+ 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';
1328
+ status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
1329
+ trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
1330
+ fromAsset: string;
1331
+ fromAmount: string;
1332
+ fromAddress: string;
1333
+ toAsset: string;
1334
+ toAmount: string;
1335
+ toAddress: string;
1336
+ finalAsset?: {
1337
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1338
+ symbol: string;
1339
+ ticker: string;
1340
+ decimal?: number;
1341
+ address?: string;
1342
+ isGasAsset: boolean;
1343
+ isSynthetic: boolean;
1344
+ tax?: {
1345
+ buy: number;
1346
+ sell: number;
1347
+ };
1348
+ };
1349
+ finalAddress?: string;
1350
+ finalisedAt: number;
1351
+ transient?: {
1352
+ estimatedTimeToComplete: number;
1353
+ currentLegIndex?: number;
1354
+ estimates?: {
1355
+ inboundObservation: number;
1356
+ inboundConfirmation: number;
1357
+ streamingSwap: number;
1358
+ outboundDelay: number;
1359
+ outboundObservation: number;
1360
+ currentStage: string;
1361
+ };
1362
+ providerDetails?: {
1363
+ streamingDetails?: {
1364
+ quantity?: number;
1365
+ count?: number;
1366
+ interval?: number;
1367
+ subSwapsMap?: Array<number>;
1368
+ };
1369
+ depositChannelId?: string;
1370
+ depositAddress?: string;
1371
+ };
1372
+ };
1373
+ meta?: {
1374
+ broadcastedAt?: number;
1375
+ wallet?: string;
1376
+ quoteId?: string;
1377
+ explorerUrl?: string;
1378
+ affiliate?: string;
1379
+ fees?: {
1380
+ network?: {
1381
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1382
+ symbol: string;
1383
+ ticker: string;
1384
+ decimal?: number;
1385
+ address?: string;
1386
+ isGasAsset: boolean;
1387
+ isSynthetic: boolean;
1388
+ tax?: {
1389
+ buy: number;
1390
+ sell: number;
1391
+ };
1392
+ };
1393
+ affiliate?: {
1394
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1395
+ symbol: string;
1396
+ ticker: string;
1397
+ decimal?: number;
1398
+ address?: string;
1399
+ isGasAsset: boolean;
1400
+ isSynthetic: boolean;
1401
+ tax?: {
1402
+ buy: number;
1403
+ sell: number;
1404
+ };
1405
+ };
1406
+ liquidity?: {
1407
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1408
+ symbol: string;
1409
+ ticker: string;
1410
+ decimal?: number;
1411
+ address?: string;
1412
+ isGasAsset: boolean;
1413
+ isSynthetic: boolean;
1414
+ tax?: {
1415
+ buy: number;
1416
+ sell: number;
1417
+ };
1418
+ };
1419
+ protocol?: {
1420
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1421
+ symbol: string;
1422
+ ticker: string;
1423
+ decimal?: number;
1424
+ address?: string;
1425
+ isGasAsset: boolean;
1426
+ isSynthetic: boolean;
1427
+ tax?: {
1428
+ buy: number;
1429
+ sell: number;
1430
+ };
1431
+ };
1432
+ tax?: {
1433
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1434
+ symbol: string;
1435
+ ticker: string;
1436
+ decimal?: number;
1437
+ address?: string;
1438
+ isGasAsset: boolean;
1439
+ isSynthetic: boolean;
1440
+ tax?: {
1441
+ buy: number;
1442
+ sell: number;
1443
+ };
1444
+ };
1445
+ };
1446
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1447
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
1448
+ images?: {
1449
+ from?: string;
1450
+ to?: string;
1451
+ provider?: string;
1452
+ chain?: string;
1453
+ };
1454
+ affiliateFees?: Array<{
1455
+ affiliate: string;
1456
+ bps: string;
1457
+ isReferrer: boolean;
1458
+ }>;
1459
+ };
1460
+ payload?: {
1461
+ evmCalldata?: string;
1462
+ evmValue?: string;
1463
+ logs?: unknown;
1464
+ memo?: string;
1465
+ spender?: string;
1466
+ manifest?: unknown;
1467
+ intentHash?: string;
1468
+ thorname?: string;
1469
+ decodedPayload?: unknown;
1470
+ };
1471
+ }>;
610
1472
  };
611
- type PostTrackResponses = {
612
- /**
613
- * Default Response
614
- */
615
- 200: {
616
- 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';
1473
+ type InsertTrackedTransactionRequest = {
1474
+ legs: Array<{
1475
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
617
1476
  hash: string;
618
1477
  block: number;
619
1478
  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';
@@ -626,7 +1485,7 @@ type PostTrackResponses = {
626
1485
  toAmount: string;
627
1486
  toAddress: string;
628
1487
  finalAsset?: {
629
- 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';
1488
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
630
1489
  symbol: string;
631
1490
  ticker: string;
632
1491
  decimal?: number;
@@ -670,7 +1529,7 @@ type PostTrackResponses = {
670
1529
  affiliate?: string;
671
1530
  fees?: {
672
1531
  network?: {
673
- 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';
1532
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
674
1533
  symbol: string;
675
1534
  ticker: string;
676
1535
  decimal?: number;
@@ -683,7 +1542,7 @@ type PostTrackResponses = {
683
1542
  };
684
1543
  };
685
1544
  affiliate?: {
686
- 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';
1545
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
687
1546
  symbol: string;
688
1547
  ticker: string;
689
1548
  decimal?: number;
@@ -696,7 +1555,7 @@ type PostTrackResponses = {
696
1555
  };
697
1556
  };
698
1557
  liquidity?: {
699
- 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';
1558
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
700
1559
  symbol: string;
701
1560
  ticker: string;
702
1561
  decimal?: number;
@@ -709,7 +1568,7 @@ type PostTrackResponses = {
709
1568
  };
710
1569
  };
711
1570
  protocol?: {
712
- 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';
1571
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
713
1572
  symbol: string;
714
1573
  ticker: string;
715
1574
  decimal?: number;
@@ -722,7 +1581,7 @@ type PostTrackResponses = {
722
1581
  };
723
1582
  };
724
1583
  tax?: {
725
- 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';
1584
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
726
1585
  symbol: string;
727
1586
  ticker: string;
728
1587
  decimal?: number;
@@ -735,7 +1594,7 @@ type PostTrackResponses = {
735
1594
  };
736
1595
  };
737
1596
  };
738
- 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';
1597
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
739
1598
  providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
740
1599
  images?: {
741
1600
  from?: string;
@@ -760,161 +1619,209 @@ type PostTrackResponses = {
760
1619
  thorname?: string;
761
1620
  decodedPayload?: unknown;
762
1621
  };
763
- legs: Array<{
764
- 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';
765
- hash: string;
766
- block: number;
767
- 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';
768
- status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed';
769
- trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error';
770
- fromAsset: string;
771
- fromAmount: string;
772
- fromAddress: string;
773
- toAsset: string;
774
- toAmount: string;
775
- toAddress: string;
776
- finalAsset?: {
777
- 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';
778
- symbol: string;
779
- ticker: string;
780
- decimal?: number;
781
- address?: string;
782
- isGasAsset: boolean;
783
- isSynthetic: boolean;
784
- tax?: {
785
- buy: number;
786
- sell: number;
787
- };
788
- };
789
- finalAddress?: string;
790
- finalisedAt: number;
791
- transient?: {
792
- estimatedTimeToComplete: number;
793
- currentLegIndex?: number;
794
- estimates?: {
795
- inboundObservation: number;
796
- inboundConfirmation: number;
797
- streamingSwap: number;
798
- outboundDelay: number;
799
- outboundObservation: number;
800
- currentStage: string;
801
- };
802
- providerDetails?: {
803
- streamingDetails?: {
804
- quantity?: number;
805
- count?: number;
806
- interval?: number;
807
- subSwapsMap?: Array<number>;
808
- };
809
- depositChannelId?: string;
810
- depositAddress?: string;
811
- };
812
- };
813
- meta?: {
814
- broadcastedAt?: number;
815
- wallet?: string;
816
- quoteId?: string;
817
- explorerUrl?: string;
818
- affiliate?: string;
819
- fees?: {
820
- network?: {
821
- 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';
822
- symbol: string;
823
- ticker: string;
824
- decimal?: number;
825
- address?: string;
826
- isGasAsset: boolean;
827
- isSynthetic: boolean;
828
- tax?: {
829
- buy: number;
830
- sell: number;
831
- };
832
- };
833
- affiliate?: {
834
- 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';
835
- symbol: string;
836
- ticker: string;
837
- decimal?: number;
838
- address?: string;
839
- isGasAsset: boolean;
840
- isSynthetic: boolean;
841
- tax?: {
842
- buy: number;
843
- sell: number;
844
- };
845
- };
846
- liquidity?: {
847
- 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';
848
- symbol: string;
849
- ticker: string;
850
- decimal?: number;
851
- address?: string;
852
- isGasAsset: boolean;
853
- isSynthetic: boolean;
854
- tax?: {
855
- buy: number;
856
- sell: number;
857
- };
858
- };
859
- protocol?: {
860
- 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';
861
- symbol: string;
862
- ticker: string;
863
- decimal?: number;
864
- address?: string;
865
- isGasAsset: boolean;
866
- isSynthetic: boolean;
867
- tax?: {
868
- buy: number;
869
- sell: number;
870
- };
871
- };
872
- tax?: {
873
- 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';
874
- symbol: string;
875
- ticker: string;
876
- decimal?: number;
877
- address?: string;
878
- isGasAsset: boolean;
879
- isSynthetic: boolean;
880
- tax?: {
881
- buy: number;
882
- sell: number;
883
- };
884
- };
885
- };
886
- 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';
887
- providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
888
- images?: {
889
- from?: string;
890
- to?: string;
891
- provider?: string;
892
- chain?: string;
893
- };
894
- affiliateFees?: Array<{
895
- affiliate: string;
896
- bps: string;
897
- isReferrer: boolean;
898
- }>;
899
- };
900
- payload?: {
901
- evmCalldata?: string;
902
- evmValue?: string;
903
- logs?: unknown;
904
- memo?: string;
905
- spender?: string;
906
- manifest?: unknown;
907
- intentHash?: string;
908
- thorname?: string;
909
- decodedPayload?: unknown;
910
- };
911
- }>;
1622
+ }>;
1623
+ depositChannelId?: string;
1624
+ depositAddress?: string;
1625
+ };
1626
+ type InsertTrackedTransactionResponse = {
1627
+ id: string;
1628
+ hash: string;
1629
+ status: string;
1630
+ message: string;
1631
+ };
1632
+ type GetProvidersData = {
1633
+ body?: never;
1634
+ path?: never;
1635
+ query?: never;
1636
+ url: '/providers';
1637
+ };
1638
+ type GetProvidersErrors = {
1639
+ /**
1640
+ * Default Response
1641
+ */
1642
+ 500: {
1643
+ message: string;
1644
+ error: string;
1645
+ data?: unknown;
1646
+ };
1647
+ };
1648
+ type GetProvidersError = GetProvidersErrors[keyof GetProvidersErrors];
1649
+ type GetProvidersResponses = {
1650
+ /**
1651
+ * Default Response
1652
+ */
1653
+ 200: GetProvidersResponse;
1654
+ };
1655
+ type GetProvidersResponse2 = GetProvidersResponses[keyof GetProvidersResponses];
1656
+ type GetTokensData = {
1657
+ body?: never;
1658
+ path?: never;
1659
+ query?: {
1660
+ /**
1661
+ * Provider name
1662
+ */
1663
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1664
+ };
1665
+ url: '/tokens';
1666
+ };
1667
+ type GetTokensErrors = {
1668
+ /**
1669
+ * Default Response
1670
+ */
1671
+ 400: {
1672
+ message: string;
1673
+ error: string;
1674
+ data?: unknown;
1675
+ };
1676
+ /**
1677
+ * Default Response
1678
+ */
1679
+ 500: {
1680
+ message: string;
1681
+ error: string;
1682
+ data?: unknown;
1683
+ };
1684
+ };
1685
+ type GetTokensError = GetTokensErrors[keyof GetTokensErrors];
1686
+ type GetTokensResponses = {
1687
+ /**
1688
+ * Default Response
1689
+ */
1690
+ 200: GetTokensResponse;
1691
+ };
1692
+ type GetTokensResponse2 = GetTokensResponses[keyof GetTokensResponses];
1693
+ type GetSwapToAssetsData = {
1694
+ body?: never;
1695
+ path?: never;
1696
+ query: {
1697
+ /**
1698
+ * Asset to swap from
1699
+ */
1700
+ sellAsset: string;
1701
+ };
1702
+ url: '/swapTo';
1703
+ };
1704
+ type GetSwapToAssetsErrors = {
1705
+ /**
1706
+ * Default Response
1707
+ */
1708
+ 400: {
1709
+ message: string;
1710
+ error: string;
1711
+ data?: unknown;
1712
+ };
1713
+ /**
1714
+ * Default Response
1715
+ */
1716
+ 500: {
1717
+ message: string;
1718
+ error: string;
1719
+ data?: unknown;
1720
+ };
1721
+ };
1722
+ type GetSwapToAssetsError = GetSwapToAssetsErrors[keyof GetSwapToAssetsErrors];
1723
+ type GetSwapToAssetsResponses = {
1724
+ /**
1725
+ * Default Response
1726
+ */
1727
+ 200: GetSwapToAssetsResponse;
1728
+ };
1729
+ type GetSwapToAssetsResponse2 = GetSwapToAssetsResponses[keyof GetSwapToAssetsResponses];
1730
+ type GetSwapFromAssetsData = {
1731
+ body?: never;
1732
+ path?: never;
1733
+ query: {
1734
+ /**
1735
+ * Asset to swap to (target asset)
1736
+ */
1737
+ buyAsset: string;
1738
+ };
1739
+ url: '/swapFrom';
1740
+ };
1741
+ type GetSwapFromAssetsErrors = {
1742
+ /**
1743
+ * Default Response
1744
+ */
1745
+ 400: {
1746
+ message: string;
1747
+ error: string;
1748
+ data?: unknown;
1749
+ };
1750
+ /**
1751
+ * Default Response
1752
+ */
1753
+ 500: {
1754
+ message: string;
1755
+ error: string;
1756
+ data?: unknown;
1757
+ };
1758
+ };
1759
+ type GetSwapFromAssetsError = GetSwapFromAssetsErrors[keyof GetSwapFromAssetsErrors];
1760
+ type GetSwapFromAssetsResponses = {
1761
+ /**
1762
+ * Default Response
1763
+ */
1764
+ 200: GetSwapFromAssetsResponse;
1765
+ };
1766
+ type GetSwapFromAssetsResponse2 = GetSwapFromAssetsResponses[keyof GetSwapFromAssetsResponses];
1767
+ type CreateBrokerChannelData = {
1768
+ body: CreateBrokerChannelRequest;
1769
+ path?: never;
1770
+ query?: never;
1771
+ url: '/chainflip/broker/channel';
1772
+ };
1773
+ type CreateBrokerChannelResponses = {
1774
+ /**
1775
+ * Default Response
1776
+ */
1777
+ 200: CreateBrokerChannelResponse;
1778
+ };
1779
+ type CreateBrokerChannelResponse2 = CreateBrokerChannelResponses[keyof CreateBrokerChannelResponses];
1780
+ type TrackTransactionData = {
1781
+ body?: TrackTransactionRequest;
1782
+ path?: never;
1783
+ query?: {
1784
+ forceUpdate?: string;
1785
+ };
1786
+ url: '/track';
1787
+ };
1788
+ type TrackTransactionErrors = {
1789
+ /**
1790
+ * Default Response
1791
+ */
1792
+ 400: {
1793
+ message: string;
1794
+ error: string;
1795
+ data?: unknown;
1796
+ };
1797
+ /**
1798
+ * Default Response
1799
+ */
1800
+ 401: {
1801
+ message: string;
1802
+ error: string;
1803
+ data?: unknown;
1804
+ };
1805
+ /**
1806
+ * Default Response
1807
+ */
1808
+ 500: {
1809
+ message: string;
1810
+ error: string;
1811
+ data?: unknown;
912
1812
  };
1813
+ };
1814
+ type TrackTransactionError = TrackTransactionErrors[keyof TrackTransactionErrors];
1815
+ type TrackTransactionResponses = {
1816
+ /**
1817
+ * Default Response
1818
+ */
1819
+ 200: TrackTransactionResponse;
913
1820
  /**
914
1821
  * Default Response
915
1822
  */
916
1823
  202: {
917
- 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';
1824
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
918
1825
  hash: string;
919
1826
  block: number;
920
1827
  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';
@@ -927,7 +1834,7 @@ type PostTrackResponses = {
927
1834
  toAmount: string;
928
1835
  toAddress: string;
929
1836
  finalAsset?: {
930
- 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';
1837
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
931
1838
  symbol: string;
932
1839
  ticker: string;
933
1840
  decimal?: number;
@@ -971,7 +1878,7 @@ type PostTrackResponses = {
971
1878
  affiliate?: string;
972
1879
  fees?: {
973
1880
  network?: {
974
- 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';
1881
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
975
1882
  symbol: string;
976
1883
  ticker: string;
977
1884
  decimal?: number;
@@ -984,7 +1891,7 @@ type PostTrackResponses = {
984
1891
  };
985
1892
  };
986
1893
  affiliate?: {
987
- 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';
1894
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
988
1895
  symbol: string;
989
1896
  ticker: string;
990
1897
  decimal?: number;
@@ -997,7 +1904,7 @@ type PostTrackResponses = {
997
1904
  };
998
1905
  };
999
1906
  liquidity?: {
1000
- 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';
1907
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1001
1908
  symbol: string;
1002
1909
  ticker: string;
1003
1910
  decimal?: number;
@@ -1010,7 +1917,7 @@ type PostTrackResponses = {
1010
1917
  };
1011
1918
  };
1012
1919
  protocol?: {
1013
- 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';
1920
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1014
1921
  symbol: string;
1015
1922
  ticker: string;
1016
1923
  decimal?: number;
@@ -1023,7 +1930,7 @@ type PostTrackResponses = {
1023
1930
  };
1024
1931
  };
1025
1932
  tax?: {
1026
- 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';
1933
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1027
1934
  symbol: string;
1028
1935
  ticker: string;
1029
1936
  decimal?: number;
@@ -1036,7 +1943,7 @@ type PostTrackResponses = {
1036
1943
  };
1037
1944
  };
1038
1945
  };
1039
- 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';
1946
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
1040
1947
  providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
1041
1948
  images?: {
1042
1949
  from?: string;
@@ -1062,7 +1969,7 @@ type PostTrackResponses = {
1062
1969
  decodedPayload?: unknown;
1063
1970
  };
1064
1971
  legs: Array<{
1065
- 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';
1972
+ chainId: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1066
1973
  hash: string;
1067
1974
  block: number;
1068
1975
  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';
@@ -1075,7 +1982,7 @@ type PostTrackResponses = {
1075
1982
  toAmount: string;
1076
1983
  toAddress: string;
1077
1984
  finalAsset?: {
1078
- 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';
1985
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1079
1986
  symbol: string;
1080
1987
  ticker: string;
1081
1988
  decimal?: number;
@@ -1119,7 +2026,7 @@ type PostTrackResponses = {
1119
2026
  affiliate?: string;
1120
2027
  fees?: {
1121
2028
  network?: {
1122
- 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';
2029
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1123
2030
  symbol: string;
1124
2031
  ticker: string;
1125
2032
  decimal?: number;
@@ -1132,7 +2039,7 @@ type PostTrackResponses = {
1132
2039
  };
1133
2040
  };
1134
2041
  affiliate?: {
1135
- 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';
2042
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1136
2043
  symbol: string;
1137
2044
  ticker: string;
1138
2045
  decimal?: number;
@@ -1145,7 +2052,7 @@ type PostTrackResponses = {
1145
2052
  };
1146
2053
  };
1147
2054
  liquidity?: {
1148
- 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';
2055
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1149
2056
  symbol: string;
1150
2057
  ticker: string;
1151
2058
  decimal?: number;
@@ -1158,7 +2065,7 @@ type PostTrackResponses = {
1158
2065
  };
1159
2066
  };
1160
2067
  protocol?: {
1161
- 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';
2068
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1162
2069
  symbol: string;
1163
2070
  ticker: string;
1164
2071
  decimal?: number;
@@ -1171,617 +2078,166 @@ type PostTrackResponses = {
1171
2078
  };
1172
2079
  };
1173
2080
  tax?: {
1174
- 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';
2081
+ chain: 'ADI' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPERCORE' | 'KUJI' | 'LTC' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'SOL' | 'SONIC' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC';
1175
2082
  symbol: string;
1176
2083
  ticker: string;
1177
- decimal?: number;
1178
- address?: string;
1179
- isGasAsset: boolean;
1180
- isSynthetic: boolean;
1181
- tax?: {
1182
- buy: number;
1183
- sell: number;
1184
- };
1185
- };
1186
- };
1187
- 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';
1188
- providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
1189
- images?: {
1190
- from?: string;
1191
- to?: string;
1192
- provider?: string;
1193
- chain?: string;
1194
- };
1195
- affiliateFees?: Array<{
1196
- affiliate: string;
1197
- bps: string;
1198
- isReferrer: boolean;
1199
- }>;
1200
- };
1201
- payload?: {
1202
- evmCalldata?: string;
1203
- evmValue?: string;
1204
- logs?: unknown;
1205
- memo?: string;
1206
- spender?: string;
1207
- manifest?: unknown;
1208
- intentHash?: string;
1209
- thorname?: string;
1210
- decodedPayload?: unknown;
1211
- };
1212
- }>;
1213
- };
1214
- };
1215
- type PostTrackResponse = PostTrackResponses[keyof PostTrackResponses];
1216
- type PostScreenData = {
1217
- body: {
1218
- addresses: string | Array<string>;
1219
- chains: string | Array<string>;
1220
- };
1221
- path?: never;
1222
- query?: never;
1223
- url: '/screen';
1224
- };
1225
- type PostScreenErrors = {
1226
- /**
1227
- * Default Response
1228
- */
1229
- 400: {
1230
- message: string;
1231
- };
1232
- };
1233
- type PostScreenError = PostScreenErrors[keyof PostScreenErrors];
1234
- type PostScreenResponses = {
1235
- /**
1236
- * Default Response
1237
- */
1238
- 200: {
1239
- confirm: boolean;
1240
- isBlacklisted?: boolean;
1241
- isRisky?: boolean;
1242
- isSanctioned?: boolean;
1243
- module?: number;
1244
- };
1245
- };
1246
- type PostScreenResponse = PostScreenResponses[keyof PostScreenResponses];
1247
- type GetGasHistoryData = {
1248
- body?: never;
1249
- path?: never;
1250
- query?: {
1251
- /**
1252
- * Chain id, if omitted return gas for all chains
1253
- */
1254
- 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';
1255
- /**
1256
- * Time frame to get gas history
1257
- */
1258
- timeFrame?: '1h' | '1d' | '1w' | '1m';
1259
- };
1260
- url: '/gas/history';
1261
- };
1262
- type GetGasHistoryResponses = {
1263
- /**
1264
- * Default Response
1265
- */
1266
- 200: Array<{
1267
- id: number;
1268
- 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';
1269
- value: string;
1270
- unit: string;
1271
- createdAt: string;
1272
- }> | {
1273
- [key: string]: Array<{
1274
- id: number;
1275
- 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';
1276
- value: string;
1277
- unit: string;
1278
- createdAt: string;
1279
- }>;
1280
- };
1281
- };
1282
- type GetGasHistoryResponse = GetGasHistoryResponses[keyof GetGasHistoryResponses];
1283
- type GetGasData = {
1284
- body?: never;
1285
- path?: never;
1286
- query?: {
1287
- /**
1288
- * Chain id, if omitted return gas for all chains
1289
- */
1290
- 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';
1291
- /**
1292
- * Time frame to get gas history
1293
- */
1294
- timeFrame?: '1h' | '1d' | '1w' | '1m';
1295
- };
1296
- url: '/gas';
1297
- };
1298
- type GetGasResponses = {
1299
- /**
1300
- * Default Response
1301
- */
1302
- 200: {
1303
- id: number;
1304
- 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';
1305
- value: string;
1306
- unit: string;
1307
- createdAt: string;
1308
- } | Array<{
1309
- id: number;
1310
- 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';
1311
- value: string;
1312
- unit: string;
1313
- createdAt: string;
1314
- }>;
1315
- };
1316
- type GetGasResponse = GetGasResponses[keyof GetGasResponses];
1317
- type PostPriceCachedPriceData = {
1318
- body: {
1319
- tokens: Array<{
1320
- identifier: string;
2084
+ decimal?: number;
2085
+ address?: string;
2086
+ isGasAsset: boolean;
2087
+ isSynthetic: boolean;
2088
+ tax?: {
2089
+ buy: number;
2090
+ sell: number;
2091
+ };
2092
+ };
2093
+ };
2094
+ 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' | 'FLASHNET' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3';
2095
+ providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake';
2096
+ images?: {
2097
+ from?: string;
2098
+ to?: string;
2099
+ provider?: string;
2100
+ chain?: string;
2101
+ };
2102
+ affiliateFees?: Array<{
2103
+ affiliate: string;
2104
+ bps: string;
2105
+ isReferrer: boolean;
2106
+ }>;
2107
+ };
2108
+ payload?: {
2109
+ evmCalldata?: string;
2110
+ evmValue?: string;
2111
+ logs?: unknown;
2112
+ memo?: string;
2113
+ spender?: string;
2114
+ manifest?: unknown;
2115
+ intentHash?: string;
2116
+ thorname?: string;
2117
+ decodedPayload?: unknown;
2118
+ };
1321
2119
  }>;
1322
- metadata: boolean;
1323
2120
  };
1324
- path?: never;
1325
- query?: never;
1326
- url: '/price/cached-price';
1327
- };
1328
- type PostPriceCachedPriceResponses = {
1329
- /**
1330
- * Default Response
1331
- */
1332
- 200: Array<{
1333
- identifier?: string;
1334
- provider?: string;
1335
- cg?: {
1336
- id: string;
1337
- name?: string;
1338
- market_cap?: number;
1339
- total_volume?: number;
1340
- price_change_24h_usd?: number | null;
1341
- price_change_percentage_24h_usd?: number | null;
1342
- sparkline_in_7d?: Array<number>;
1343
- timestamp?: string;
1344
- };
1345
- price_usd?: number;
1346
- timestamp?: number;
1347
- }>;
1348
2121
  };
1349
- type PostPriceCachedPriceResponse = PostPriceCachedPriceResponses[keyof PostPriceCachedPriceResponses];
1350
- type PostV3QuoteData = {
1351
- body: {
1352
- /**
1353
- * Asset to sell
1354
- */
1355
- sellAsset: string;
1356
- /**
1357
- * Asset to buy
1358
- */
1359
- buyAsset: string;
1360
- /**
1361
- * Amount of asset to sell
1362
- */
1363
- sellAmount: string;
1364
- providers?: Array<string>;
1365
- /**
1366
- * Address to send asset from
1367
- */
1368
- sourceAddress?: string;
1369
- /**
1370
- * Address to send asset to
1371
- */
1372
- destinationAddress?: string;
1373
- /**
1374
- * Slippage tolerance as a percentage. Default is 3%.
1375
- */
1376
- slippage?: number;
1377
- /**
1378
- * Set to true to enable CF boost to speed up Chainflip swaps. BTC only.
1379
- */
1380
- cfBoost?: boolean;
1381
- referrer?: string;
1382
- /**
1383
- * Set to true to disable on-chain estimation
1384
- */
1385
- disableEstimate?: boolean;
1386
- /**
1387
- * Maximum execution time in seconds. Routes exceeding this time will be filtered out.
1388
- */
1389
- maxExecutionTime?: number;
1390
- /**
1391
- * 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.
1392
- */
1393
- affiliateFee?: number;
1394
- };
2122
+ type TrackTransactionResponse2 = TrackTransactionResponses[keyof TrackTransactionResponses];
2123
+ type ScreenAddressData = {
2124
+ body: ScreenAddressRequest;
1395
2125
  path?: never;
1396
2126
  query?: never;
1397
- url: '/v3/quote';
2127
+ url: '/screen';
1398
2128
  };
1399
- type PostV3QuoteErrors = {
2129
+ type ScreenAddressErrors = {
1400
2130
  /**
1401
2131
  * Default Response
1402
2132
  */
1403
2133
  400: {
1404
2134
  message: string;
1405
- error: string;
1406
- data?: unknown;
1407
- };
1408
- /**
1409
- * Default Response
1410
- */
1411
- 500: {
1412
- message: string;
1413
- error: string;
1414
- data?: unknown;
1415
2135
  };
1416
2136
  };
1417
- type PostV3QuoteError = PostV3QuoteErrors[keyof PostV3QuoteErrors];
1418
- type PostV3QuoteResponses = {
1419
- /**
1420
- * Default Response
1421
- */
1422
- 200: {
1423
- /**
1424
- * Quote ID
1425
- */
1426
- quoteId: string;
1427
- routes: Array<{
1428
- /**
1429
- * Asset to sell
1430
- */
1431
- sellAsset: string;
1432
- /**
1433
- * Sell amount
1434
- */
1435
- sellAmount: string;
1436
- /**
1437
- * Asset to buy
1438
- */
1439
- buyAsset: string;
1440
- /**
1441
- * Buy amount
1442
- */
1443
- buyAmount?: string;
1444
- /**
1445
- * Buy amount max slippage
1446
- */
1447
- buyAmountMaxSlippage?: string;
1448
- /**
1449
- * Expected Buy amount
1450
- */
1451
- expectedBuyAmount?: string;
1452
- /**
1453
- * Expected Buy amount max slippage
1454
- */
1455
- expectedBuyAmountMaxSlippage?: string;
1456
- fees: Array<{
1457
- type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1458
- amount: string;
1459
- asset: string;
1460
- chain: string;
1461
- 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';
1462
- }>;
1463
- /**
1464
- * Route ID
1465
- */
1466
- routeId: string;
1467
- 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'>;
1468
- /**
1469
- * Expiration
1470
- */
1471
- expiration?: string;
1472
- estimatedTime?: {
1473
- /**
1474
- * Time to receive inbound asset in seconds
1475
- */
1476
- inbound?: number;
1477
- /**
1478
- * Time to swap assets in seconds
1479
- */
1480
- swap?: number;
1481
- /**
1482
- * Time to receive outbound asset in seconds
1483
- */
1484
- outbound?: number;
1485
- /**
1486
- * Total time in seconds
1487
- */
1488
- total: number;
1489
- };
1490
- /**
1491
- * Total slippage in bps
1492
- */
1493
- totalSlippageBps: number;
1494
- legs: Array<{
1495
- 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';
1496
- /**
1497
- * Asset to sell
1498
- */
1499
- sellAsset: string;
1500
- /**
1501
- * Sell amount
1502
- */
1503
- sellAmount: string;
1504
- /**
1505
- * Asset to buy
1506
- */
1507
- buyAsset: string;
1508
- /**
1509
- * Buy amount
1510
- */
1511
- buyAmount?: string;
1512
- /**
1513
- * Buy amount max slippage
1514
- */
1515
- buyAmountMaxSlippage?: string;
1516
- /**
1517
- * Expected Buy amount
1518
- */
1519
- expectedBuyAmount?: string;
1520
- /**
1521
- * Expected Buy amount max slippage
1522
- */
1523
- expectedBuyAmountMaxSlippage?: string;
1524
- fees: Array<{
1525
- type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1526
- amount: string;
1527
- asset: string;
1528
- chain: string;
1529
- 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';
1530
- }>;
1531
- }>;
1532
- warnings: Array<{
1533
- code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1534
- display: string;
1535
- tooltip?: string;
1536
- }>;
1537
- meta: {
1538
- assets?: Array<{
1539
- /**
1540
- * Asset name
1541
- */
1542
- asset: string;
1543
- /**
1544
- * Price in USD
1545
- */
1546
- price: number;
1547
- /**
1548
- * Asset image
1549
- */
1550
- image: string;
1551
- }>;
1552
- tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
1553
- streamingInterval?: number;
1554
- maxStreamingQuantity?: number;
1555
- referrer?: string;
1556
- /**
1557
- * Approval address for token swap
1558
- */
1559
- approvalAddress?: string;
1560
- };
1561
- nextActions?: Array<{
1562
- method: string;
1563
- url: string;
1564
- payload?: unknown;
1565
- }>;
1566
- }>;
1567
- /**
1568
- * Error message
1569
- */
1570
- error?: string;
1571
- providerErrors?: Array<{
1572
- 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';
1573
- 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';
1574
- message?: string;
1575
- }>;
1576
- };
2137
+ type ScreenAddressError = ScreenAddressErrors[keyof ScreenAddressErrors];
2138
+ type ScreenAddressResponses = {
1577
2139
  /**
1578
2140
  * Default Response
1579
2141
  */
1580
- 218: {
1581
- /**
1582
- * Quote ID
1583
- */
1584
- quoteId: string;
1585
- routes: Array<{
1586
- /**
1587
- * Asset to sell
1588
- */
1589
- sellAsset: string;
1590
- /**
1591
- * Sell amount
1592
- */
1593
- sellAmount: string;
1594
- /**
1595
- * Asset to buy
1596
- */
1597
- buyAsset: string;
1598
- /**
1599
- * Buy amount
1600
- */
1601
- buyAmount?: string;
1602
- /**
1603
- * Buy amount max slippage
1604
- */
1605
- buyAmountMaxSlippage?: string;
1606
- /**
1607
- * Expected Buy amount
1608
- */
1609
- expectedBuyAmount?: string;
1610
- /**
1611
- * Expected Buy amount max slippage
1612
- */
1613
- expectedBuyAmountMaxSlippage?: string;
1614
- fees: Array<{
1615
- type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1616
- amount: string;
1617
- asset: string;
1618
- chain: string;
1619
- 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';
1620
- }>;
1621
- /**
1622
- * Route ID
1623
- */
1624
- routeId: string;
1625
- 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'>;
1626
- /**
1627
- * Expiration
1628
- */
1629
- expiration?: string;
1630
- estimatedTime?: {
1631
- /**
1632
- * Time to receive inbound asset in seconds
1633
- */
1634
- inbound?: number;
1635
- /**
1636
- * Time to swap assets in seconds
1637
- */
1638
- swap?: number;
1639
- /**
1640
- * Time to receive outbound asset in seconds
1641
- */
1642
- outbound?: number;
1643
- /**
1644
- * Total time in seconds
1645
- */
1646
- total: number;
1647
- };
1648
- /**
1649
- * Total slippage in bps
1650
- */
1651
- totalSlippageBps: number;
1652
- legs: Array<{
1653
- 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';
1654
- /**
1655
- * Asset to sell
1656
- */
1657
- sellAsset: string;
1658
- /**
1659
- * Sell amount
1660
- */
1661
- sellAmount: string;
1662
- /**
1663
- * Asset to buy
1664
- */
1665
- buyAsset: string;
1666
- /**
1667
- * Buy amount
1668
- */
1669
- buyAmount?: string;
1670
- /**
1671
- * Buy amount max slippage
1672
- */
1673
- buyAmountMaxSlippage?: string;
1674
- /**
1675
- * Expected Buy amount
1676
- */
1677
- expectedBuyAmount?: string;
1678
- /**
1679
- * Expected Buy amount max slippage
1680
- */
1681
- expectedBuyAmountMaxSlippage?: string;
1682
- fees: Array<{
1683
- type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1684
- amount: string;
1685
- asset: string;
1686
- chain: string;
1687
- 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';
1688
- }>;
1689
- }>;
1690
- warnings: Array<{
1691
- code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1692
- display: string;
1693
- tooltip?: string;
1694
- }>;
1695
- meta: {
1696
- assets?: Array<{
1697
- /**
1698
- * Asset name
1699
- */
1700
- asset: string;
1701
- /**
1702
- * Price in USD
1703
- */
1704
- price: number;
1705
- /**
1706
- * Asset image
1707
- */
1708
- image: string;
1709
- }>;
1710
- tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
1711
- streamingInterval?: number;
1712
- maxStreamingQuantity?: number;
1713
- referrer?: string;
1714
- /**
1715
- * Approval address for token swap
1716
- */
1717
- approvalAddress?: string;
1718
- };
1719
- nextActions?: Array<{
1720
- method: string;
1721
- url: string;
1722
- payload?: unknown;
1723
- }>;
1724
- }>;
1725
- /**
1726
- * Error message
1727
- */
1728
- error?: string;
1729
- providerErrors?: Array<{
1730
- 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';
1731
- 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';
1732
- message?: string;
1733
- }>;
1734
- };
2142
+ 200: ScreenAddressResponse;
1735
2143
  };
1736
- type PostV3QuoteResponse = PostV3QuoteResponses[keyof PostV3QuoteResponses];
1737
- type PostV3SwapData = {
1738
- body: {
1739
- /**
1740
- * The ID of the route to swap
1741
- */
1742
- routeId: string;
1743
- /**
1744
- * Address to send asset from
1745
- */
1746
- sourceAddress: string;
1747
- /**
1748
- * Recipient address to send asset to
1749
- */
1750
- destinationAddress: string;
1751
- /**
1752
- * Whether to disable balance check
1753
- */
1754
- disableBalanceCheck?: boolean;
1755
- /**
1756
- * Whether to disable estimate gas
1757
- */
1758
- disableEstimate?: boolean;
1759
- /**
1760
- * Whether to allow smart contract sender
1761
- */
1762
- allowSmartContractSender?: boolean;
2144
+ type ScreenAddressResponse2 = ScreenAddressResponses[keyof ScreenAddressResponses];
2145
+ type GetGasPricesData = {
2146
+ body?: never;
2147
+ path?: never;
2148
+ query?: {
1763
2149
  /**
1764
- * Whether to allow smart contract receiver
2150
+ * Chain id, if omitted return gas for all chains
1765
2151
  */
1766
- allowSmartContractReceiver?: boolean;
2152
+ chainId?: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1767
2153
  /**
1768
- * Whether to disable security checks
2154
+ * Time frame to get gas history
1769
2155
  */
1770
- disableSecurityChecks?: boolean;
2156
+ timeFrame?: '1h' | '1d' | '1w' | '1m';
2157
+ };
2158
+ url: '/gas';
2159
+ };
2160
+ type GetGasPricesResponses = {
2161
+ /**
2162
+ * Default Response
2163
+ */
2164
+ 200: GetGasPricesResponse;
2165
+ };
2166
+ type GetGasPricesResponse2 = GetGasPricesResponses[keyof GetGasPricesResponses];
2167
+ type GetGasHistoryData = {
2168
+ body?: never;
2169
+ path?: never;
2170
+ query?: {
1771
2171
  /**
1772
- * Whether to override slippage validation on quote refresh
2172
+ * Chain id, if omitted return gas for all chains
1773
2173
  */
1774
- overrideSlippage?: boolean;
2174
+ chainId?: '36900' | 'aptos' | '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' | '999' | 'hypercore' | 'kaiyo-1' | 'litecoin' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | 'solana' | '146' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash';
1775
2175
  /**
1776
- * Set to true to skip building a transaction. Used when you build a custom transaction from our response.
2176
+ * Time frame to get gas history
1777
2177
  */
1778
- disableBuildTx?: boolean;
2178
+ timeFrame?: '1h' | '1d' | '1w' | '1m';
2179
+ };
2180
+ url: '/gas/history';
2181
+ };
2182
+ type GetGasHistoryResponses = {
2183
+ /**
2184
+ * Default Response
2185
+ */
2186
+ 200: GetGasHistoryResponse;
2187
+ };
2188
+ type GetGasHistoryResponse2 = GetGasHistoryResponses[keyof GetGasHistoryResponses];
2189
+ type GetCachedPriceData = {
2190
+ body: GetCachedPriceRequest;
2191
+ path?: never;
2192
+ query?: never;
2193
+ url: '/price/cached-price';
2194
+ };
2195
+ type GetCachedPriceResponses = {
2196
+ /**
2197
+ * Default Response
2198
+ */
2199
+ 200: GetCachedPriceResponse;
2200
+ };
2201
+ type GetCachedPriceResponse2 = GetCachedPriceResponses[keyof GetCachedPriceResponses];
2202
+ type GetQuoteData = {
2203
+ body: GetQuoteRequest;
2204
+ path?: never;
2205
+ query?: never;
2206
+ url: '/v3/quote';
2207
+ };
2208
+ type GetQuoteErrors = {
2209
+ /**
2210
+ * Default Response
2211
+ */
2212
+ 400: {
2213
+ message: string;
2214
+ error: string;
2215
+ data?: unknown;
2216
+ };
2217
+ /**
2218
+ * Default Response
2219
+ */
2220
+ 500: {
2221
+ message: string;
2222
+ error: string;
2223
+ data?: unknown;
1779
2224
  };
2225
+ };
2226
+ type GetQuoteError = GetQuoteErrors[keyof GetQuoteErrors];
2227
+ type GetQuoteResponses = {
2228
+ /**
2229
+ * Default Response
2230
+ */
2231
+ 200: GetQuoteResponse;
2232
+ };
2233
+ type GetQuoteResponse2 = GetQuoteResponses[keyof GetQuoteResponses];
2234
+ type ExecuteSwapData = {
2235
+ body: ExecuteSwapRequest;
1780
2236
  path?: never;
1781
2237
  query?: never;
1782
2238
  url: '/v3/swap';
1783
2239
  };
1784
- type PostV3SwapErrors = {
2240
+ type ExecuteSwapErrors = {
1785
2241
  /**
1786
2242
  * Default Response
1787
2243
  */
@@ -1807,336 +2263,16 @@ type PostV3SwapErrors = {
1807
2263
  data?: unknown;
1808
2264
  };
1809
2265
  };
1810
- type PostV3SwapError = PostV3SwapErrors[keyof PostV3SwapErrors];
1811
- type PostV3SwapResponses = {
2266
+ type ExecuteSwapError = ExecuteSwapErrors[keyof ExecuteSwapErrors];
2267
+ type ExecuteSwapResponses = {
1812
2268
  /**
1813
2269
  * Default Response
1814
2270
  */
1815
- 200: {
1816
- /**
1817
- * Asset to sell
1818
- */
1819
- sellAsset: string;
1820
- /**
1821
- * Sell amount
1822
- */
1823
- sellAmount: string;
1824
- /**
1825
- * Asset to buy
1826
- */
1827
- buyAsset: string;
1828
- /**
1829
- * Buy amount
1830
- */
1831
- buyAmount?: string;
1832
- /**
1833
- * Buy amount max slippage
1834
- */
1835
- buyAmountMaxSlippage?: string;
1836
- /**
1837
- * Expected Buy amount
1838
- */
1839
- expectedBuyAmount?: string;
1840
- /**
1841
- * Expected Buy amount max slippage
1842
- */
1843
- expectedBuyAmountMaxSlippage?: string;
1844
- fees: Array<{
1845
- type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1846
- amount: string;
1847
- asset: string;
1848
- chain: string;
1849
- 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';
1850
- }>;
1851
- /**
1852
- * Route ID
1853
- */
1854
- routeId: string;
1855
- 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'>;
1856
- /**
1857
- * Expiration
1858
- */
1859
- expiration?: string;
1860
- estimatedTime?: {
1861
- /**
1862
- * Time to receive inbound asset in seconds
1863
- */
1864
- inbound?: number;
1865
- /**
1866
- * Time to swap assets in seconds
1867
- */
1868
- swap?: number;
1869
- /**
1870
- * Time to receive outbound asset in seconds
1871
- */
1872
- outbound?: number;
1873
- /**
1874
- * Total time in seconds
1875
- */
1876
- total: number;
1877
- };
1878
- /**
1879
- * Total slippage in bps
1880
- */
1881
- totalSlippageBps: number;
1882
- legs: Array<{
1883
- 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';
1884
- /**
1885
- * Asset to sell
1886
- */
1887
- sellAsset: string;
1888
- /**
1889
- * Sell amount
1890
- */
1891
- sellAmount: string;
1892
- /**
1893
- * Asset to buy
1894
- */
1895
- buyAsset: string;
1896
- /**
1897
- * Buy amount
1898
- */
1899
- buyAmount?: string;
1900
- /**
1901
- * Buy amount max slippage
1902
- */
1903
- buyAmountMaxSlippage?: string;
1904
- /**
1905
- * Expected Buy amount
1906
- */
1907
- expectedBuyAmount?: string;
1908
- /**
1909
- * Expected Buy amount max slippage
1910
- */
1911
- expectedBuyAmountMaxSlippage?: string;
1912
- fees: Array<{
1913
- type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority';
1914
- amount: string;
1915
- asset: string;
1916
- chain: string;
1917
- 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';
1918
- }>;
1919
- }>;
1920
- warnings: Array<{
1921
- code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas';
1922
- display: string;
1923
- tooltip?: string;
1924
- }>;
1925
- /**
1926
- * Source address
1927
- */
1928
- sourceAddress: string;
1929
- /**
1930
- * Destination address
1931
- */
1932
- destinationAddress: string;
1933
- /**
1934
- * Target address
1935
- */
1936
- targetAddress?: string;
1937
- /**
1938
- * Inbound address
1939
- */
1940
- inboundAddress?: string;
1941
- /**
1942
- * Memo to include in the transaction
1943
- */
1944
- memo?: string;
1945
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'RADIX' | 'SOLANA' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CARDANO' | 'TON' | 'STARKNET' | 'zcash-unsigned';
1946
- tx?: {
1947
- /**
1948
- * Address of the recipient
1949
- */
1950
- to: string;
1951
- /**
1952
- * Address of the sender
1953
- */
1954
- from?: string;
1955
- /**
1956
- * Gas limit
1957
- */
1958
- gas?: string;
1959
- /**
1960
- * Gas price
1961
- */
1962
- gasPrice?: string;
1963
- /**
1964
- * Value to send
1965
- */
1966
- value: string;
1967
- /**
1968
- * Data to send
1969
- */
1970
- data: string;
1971
- } | {
1972
- memo: string;
1973
- accountNumber: number;
1974
- sequence: number;
1975
- 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';
1976
- msgs: Array<{
1977
- type: string;
1978
- value: unknown;
1979
- } | {
1980
- typeUrl: string;
1981
- value: unknown;
1982
- }>;
1983
- fee: {
1984
- amount: Array<{
1985
- denom: string;
1986
- amount: string;
1987
- }>;
1988
- gas: string;
1989
- };
1990
- } | {
1991
- visible: boolean;
1992
- txID: string;
1993
- raw_data: {
1994
- contract: unknown;
1995
- ref_block_bytes: string;
1996
- ref_block_hash: string;
1997
- expiration: number;
1998
- fee_limit?: number;
1999
- timestamp: number;
2000
- data?: unknown;
2001
- };
2002
- raw_data_hex: string;
2003
- } | Array<{
2004
- contractAddress: string;
2005
- entrypoint: string;
2006
- calldata: Array<string>;
2007
- }> | string;
2008
- meta: {
2009
- assets?: Array<{
2010
- /**
2011
- * Asset name
2012
- */
2013
- asset: string;
2014
- /**
2015
- * Price in USD
2016
- */
2017
- price: number;
2018
- /**
2019
- * Asset image
2020
- */
2021
- image: string;
2022
- }>;
2023
- tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>;
2024
- streamingInterval?: number;
2025
- maxStreamingQuantity?: number;
2026
- referrer?: string;
2027
- /**
2028
- * Price impact
2029
- */
2030
- priceImpact?: number;
2031
- /**
2032
- * Approval address for swap
2033
- */
2034
- approvalAddress?: string;
2035
- affiliate?: string;
2036
- affiliateFee?: string;
2037
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'RADIX' | 'SOLANA' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CARDANO' | 'TON' | 'STARKNET' | 'zcash-unsigned';
2038
- chainflip?: {
2039
- destinationAddress: string;
2040
- sellAsset: {
2041
- chain: string;
2042
- asset: string;
2043
- };
2044
- buyAsset: {
2045
- chain: string;
2046
- asset: string;
2047
- };
2048
- channelMetadata?: {
2049
- ccmAdditionalData?: string;
2050
- gasBudget?: string;
2051
- message?: string;
2052
- cfParameters?: string;
2053
- };
2054
- affiliateFees?: Array<{
2055
- brokerAddress: string;
2056
- feeBps: number;
2057
- }>;
2058
- refundParameters?: {
2059
- minPrice?: string;
2060
- refundAddress?: string;
2061
- retryDuration?: number;
2062
- };
2063
- dcaParameters?: {
2064
- chunkInterval?: number;
2065
- numberOfChunks?: number;
2066
- };
2067
- brokerCommissionBps?: number;
2068
- maxBoostFeeBps?: number;
2069
- };
2070
- near?: {
2071
- destinationAddress: string;
2072
- sellAsset: string;
2073
- buyAsset: string;
2074
- sourceAddress: string;
2075
- sellAmount: string;
2076
- affiliateFees?: {
2077
- nearId: string;
2078
- feeBps: number;
2079
- };
2080
- slippage: number;
2081
- };
2082
- garden?: {
2083
- destinationAddress: string;
2084
- sellAsset: string;
2085
- buyAsset: string;
2086
- buyAmount: string;
2087
- sellAmount: string;
2088
- sourceAddress: string;
2089
- affiliateFees?: {
2090
- address: string;
2091
- asset: string;
2092
- fee: number;
2093
- };
2094
- slippage: number;
2095
- };
2096
- isFastQuote?: boolean;
2097
- /**
2098
- * Indicates if the quote was refreshed
2099
- */
2100
- isRefreshed?: boolean;
2101
- };
2102
- /**
2103
- * The unique swap ID for tracking
2104
- */
2105
- swapId: string;
2106
- /**
2107
- * Optional approval transaction if ERC-20 approval is required before swap
2108
- */
2109
- approvalTx?: {
2110
- /**
2111
- * Token contract address
2112
- */
2113
- to: string;
2114
- /**
2115
- * User wallet address
2116
- */
2117
- from: string;
2118
- /**
2119
- * ETH value (always '0' for approvals)
2120
- */
2121
- value: string;
2122
- /**
2123
- * Encoded approval call data
2124
- */
2125
- data: string;
2126
- /**
2127
- * Estimated gas limit
2128
- */
2129
- gasLimit?: string;
2130
- /**
2131
- * Current gas price
2132
- */
2133
- gasPrice?: string;
2134
- };
2135
- };
2271
+ 200: ExecuteSwapResponse;
2136
2272
  };
2137
- type PostV3SwapResponse = PostV3SwapResponses[keyof PostV3SwapResponses];
2273
+ type ExecuteSwapResponse2 = ExecuteSwapResponses[keyof ExecuteSwapResponses];
2138
2274
 
2139
- type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
2275
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
2140
2276
  /**
2141
2277
  * You can provide a client instance returned by `createClient()` instead of
2142
2278
  * individual options. This might be also useful if you want to implement a
@@ -2151,16 +2287,16 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
2151
2287
  };
2152
2288
  declare const getProviders: <ThrowOnError extends boolean = false>(options?: Options<GetProvidersData, ThrowOnError>) => RequestResult<GetProvidersResponses, GetProvidersErrors, ThrowOnError, "fields">;
2153
2289
  declare const getTokens: <ThrowOnError extends boolean = false>(options?: Options<GetTokensData, ThrowOnError>) => RequestResult<GetTokensResponses, GetTokensErrors, ThrowOnError, "fields">;
2154
- declare const getSwapTo: <ThrowOnError extends boolean = false>(options: Options<GetSwapToData, ThrowOnError>) => RequestResult<GetSwapToResponses, GetSwapToErrors, ThrowOnError, "fields">;
2155
- declare const getSwapFrom: <ThrowOnError extends boolean = false>(options: Options<GetSwapFromData, ThrowOnError>) => RequestResult<GetSwapFromResponses, GetSwapFromErrors, ThrowOnError, "fields">;
2156
- declare const postChainflipBrokerChannel: <ThrowOnError extends boolean = false>(options: Options<PostChainflipBrokerChannelData, ThrowOnError>) => RequestResult<PostChainflipBrokerChannelResponses, unknown, ThrowOnError, "fields">;
2157
- declare const postTrack: <ThrowOnError extends boolean = false>(options?: Options<PostTrackData, ThrowOnError>) => RequestResult<PostTrackResponses, unknown, ThrowOnError, "fields">;
2158
- declare const postScreen: <ThrowOnError extends boolean = false>(options: Options<PostScreenData, ThrowOnError>) => RequestResult<PostScreenResponses, PostScreenErrors, ThrowOnError, "fields">;
2290
+ declare const getSwapToAssets: <ThrowOnError extends boolean = false>(options: Options<GetSwapToAssetsData, ThrowOnError>) => RequestResult<GetSwapToAssetsResponses, GetSwapToAssetsErrors, ThrowOnError, "fields">;
2291
+ declare const getSwapFromAssets: <ThrowOnError extends boolean = false>(options: Options<GetSwapFromAssetsData, ThrowOnError>) => RequestResult<GetSwapFromAssetsResponses, GetSwapFromAssetsErrors, ThrowOnError, "fields">;
2292
+ declare const createBrokerChannel: <ThrowOnError extends boolean = false>(options: Options<CreateBrokerChannelData, ThrowOnError>) => RequestResult<CreateBrokerChannelResponses, unknown, ThrowOnError, "fields">;
2293
+ declare const trackTransaction: <ThrowOnError extends boolean = false>(options?: Options<TrackTransactionData, ThrowOnError>) => RequestResult<TrackTransactionResponses, TrackTransactionErrors, ThrowOnError, "fields">;
2294
+ declare const screenAddress: <ThrowOnError extends boolean = false>(options: Options<ScreenAddressData, ThrowOnError>) => RequestResult<ScreenAddressResponses, ScreenAddressErrors, ThrowOnError, "fields">;
2295
+ declare const getGasPrices: <ThrowOnError extends boolean = false>(options?: Options<GetGasPricesData, ThrowOnError>) => RequestResult<GetGasPricesResponses, unknown, ThrowOnError, "fields">;
2159
2296
  declare const getGasHistory: <ThrowOnError extends boolean = false>(options?: Options<GetGasHistoryData, ThrowOnError>) => RequestResult<GetGasHistoryResponses, unknown, ThrowOnError, "fields">;
2160
- declare const getGas: <ThrowOnError extends boolean = false>(options?: Options<GetGasData, ThrowOnError>) => RequestResult<GetGasResponses, unknown, ThrowOnError, "fields">;
2161
- declare const postPriceCachedPrice: <ThrowOnError extends boolean = false>(options: Options<PostPriceCachedPriceData, ThrowOnError>) => RequestResult<PostPriceCachedPriceResponses, unknown, ThrowOnError, "fields">;
2162
- declare const postV3Quote: <ThrowOnError extends boolean = false>(options: Options<PostV3QuoteData, ThrowOnError>) => RequestResult<PostV3QuoteResponses, PostV3QuoteErrors, ThrowOnError, "fields">;
2163
- declare const postV3Swap: <ThrowOnError extends boolean = false>(options: Options<PostV3SwapData, ThrowOnError>) => RequestResult<PostV3SwapResponses, PostV3SwapErrors, ThrowOnError, "fields">;
2297
+ declare const getCachedPrice: <ThrowOnError extends boolean = false>(options: Options<GetCachedPriceData, ThrowOnError>) => RequestResult<GetCachedPriceResponses, unknown, ThrowOnError, "fields">;
2298
+ declare const getQuote: <ThrowOnError extends boolean = false>(options: Options<GetQuoteData, ThrowOnError>) => RequestResult<GetQuoteResponses, GetQuoteErrors, ThrowOnError, "fields">;
2299
+ declare const executeSwap: <ThrowOnError extends boolean = false>(options: Options<ExecuteSwapData, ThrowOnError>) => RequestResult<ExecuteSwapResponses, ExecuteSwapErrors, ThrowOnError, "fields">;
2164
2300
 
2165
2301
  declare const client: Client;
2166
2302
 
@@ -2173,52 +2309,52 @@ declare function configureSwapKit(options: SwapKitClientOptions): void;
2173
2309
  declare class SwapKitService {
2174
2310
  static getProviders: <ThrowOnError extends boolean = false>(options?: Options<GetProvidersData, ThrowOnError>) => RequestResult<GetProvidersResponses, GetProvidersErrors, ThrowOnError, "fields">;
2175
2311
  static getTokens: <ThrowOnError extends boolean = false>(options?: Options<GetTokensData, ThrowOnError>) => RequestResult<GetTokensResponses, GetTokensErrors, ThrowOnError, "fields">;
2176
- static getSwapTo: <ThrowOnError extends boolean = false>(options: Options<GetSwapToData, ThrowOnError>) => RequestResult<GetSwapToResponses, GetSwapToErrors, ThrowOnError, "fields">;
2177
- static getSwapFrom: <ThrowOnError extends boolean = false>(options: Options<GetSwapFromData, ThrowOnError>) => RequestResult<GetSwapFromResponses, GetSwapFromErrors, ThrowOnError, "fields">;
2178
- static getQuote: <ThrowOnError extends boolean = false>(options: Options<PostV3QuoteData, ThrowOnError>) => RequestResult<PostV3QuoteResponses, PostV3QuoteErrors, ThrowOnError, "fields">;
2179
- static getSwap: <ThrowOnError extends boolean = false>(options: Options<PostV3SwapData, ThrowOnError>) => RequestResult<PostV3SwapResponses, PostV3SwapErrors, ThrowOnError, "fields">;
2180
- static trackTransaction: <ThrowOnError extends boolean = false>(options?: Options<PostTrackData, ThrowOnError>) => RequestResult<PostTrackResponses, unknown, ThrowOnError, "fields">;
2181
- static screenAddress: <ThrowOnError extends boolean = false>(options: Options<PostScreenData, ThrowOnError>) => RequestResult<PostScreenResponses, PostScreenErrors, ThrowOnError, "fields">;
2182
- static getGasPrices: <ThrowOnError extends boolean = false>(options?: Options<GetGasData, ThrowOnError>) => RequestResult<GetGasResponses, unknown, ThrowOnError, "fields">;
2312
+ static getSwapTo: <ThrowOnError extends boolean = false>(options: Options<GetSwapToAssetsData, ThrowOnError>) => RequestResult<GetSwapToAssetsResponses, GetSwapToAssetsErrors, ThrowOnError, "fields">;
2313
+ static getSwapFrom: <ThrowOnError extends boolean = false>(options: Options<GetSwapFromAssetsData, ThrowOnError>) => RequestResult<GetSwapFromAssetsResponses, GetSwapFromAssetsErrors, ThrowOnError, "fields">;
2314
+ static getQuote: <ThrowOnError extends boolean = false>(options: Options<GetQuoteData, ThrowOnError>) => RequestResult<GetQuoteResponses, GetQuoteErrors, ThrowOnError, "fields">;
2315
+ static getSwap: <ThrowOnError extends boolean = false>(options: Options<ExecuteSwapData, ThrowOnError>) => RequestResult<ExecuteSwapResponses, ExecuteSwapErrors, ThrowOnError, "fields">;
2316
+ static trackTransaction: <ThrowOnError extends boolean = false>(options?: Options<TrackTransactionData, ThrowOnError>) => RequestResult<TrackTransactionResponses, TrackTransactionErrors, ThrowOnError, "fields">;
2317
+ static screenAddress: <ThrowOnError extends boolean = false>(options: Options<ScreenAddressData, ThrowOnError>) => RequestResult<ScreenAddressResponses, ScreenAddressErrors, ThrowOnError, "fields">;
2318
+ static getGasPrices: <ThrowOnError extends boolean = false>(options?: Options<GetGasPricesData, ThrowOnError>) => RequestResult<GetGasPricesResponses, unknown, ThrowOnError, "fields">;
2183
2319
  static getGasHistory: <ThrowOnError extends boolean = false>(options?: Options<GetGasHistoryData, ThrowOnError>) => RequestResult<GetGasHistoryResponses, unknown, ThrowOnError, "fields">;
2184
- static getCachedPrice: <ThrowOnError extends boolean = false>(options: Options<PostPriceCachedPriceData, ThrowOnError>) => RequestResult<PostPriceCachedPriceResponses, unknown, ThrowOnError, "fields">;
2185
- static createBrokerChannel: <ThrowOnError extends boolean = false>(options: Options<PostChainflipBrokerChannelData, ThrowOnError>) => RequestResult<PostChainflipBrokerChannelResponses, unknown, ThrowOnError, "fields">;
2320
+ static getCachedPrice: <ThrowOnError extends boolean = false>(options: Options<GetCachedPriceData, ThrowOnError>) => RequestResult<GetCachedPriceResponses, unknown, ThrowOnError, "fields">;
2321
+ static createBrokerChannel: <ThrowOnError extends boolean = false>(options: Options<CreateBrokerChannelData, ThrowOnError>) => RequestResult<CreateBrokerChannelResponses, unknown, ThrowOnError, "fields">;
2186
2322
  }
2187
2323
  /** @deprecated Use `SwapKitService` instead */
2188
2324
  declare const TokenlistService: {
2189
2325
  readonly getProviders: <ThrowOnError extends boolean = false>(options?: Options<GetProvidersData, ThrowOnError>) => RequestResult<GetProvidersResponses, GetProvidersErrors, ThrowOnError, "fields">;
2190
2326
  readonly getTokens: <ThrowOnError extends boolean = false>(options?: Options<GetTokensData, ThrowOnError>) => RequestResult<GetTokensResponses, GetTokensErrors, ThrowOnError, "fields">;
2191
- readonly getSwapTo: <ThrowOnError extends boolean = false>(options: Options<GetSwapToData, ThrowOnError>) => RequestResult<GetSwapToResponses, GetSwapToErrors, ThrowOnError, "fields">;
2192
- readonly getSwapFrom: <ThrowOnError extends boolean = false>(options: Options<GetSwapFromData, ThrowOnError>) => RequestResult<GetSwapFromResponses, GetSwapFromErrors, ThrowOnError, "fields">;
2327
+ readonly getSwapTo: <ThrowOnError extends boolean = false>(options: Options<GetSwapToAssetsData, ThrowOnError>) => RequestResult<GetSwapToAssetsResponses, GetSwapToAssetsErrors, ThrowOnError, "fields">;
2328
+ readonly getSwapFrom: <ThrowOnError extends boolean = false>(options: Options<GetSwapFromAssetsData, ThrowOnError>) => RequestResult<GetSwapFromAssetsResponses, GetSwapFromAssetsErrors, ThrowOnError, "fields">;
2193
2329
  };
2194
2330
  /** @deprecated Use `SwapKitService` instead */
2195
2331
  declare const QuoteService: {
2196
- readonly getQuote: <ThrowOnError extends boolean = false>(options: Options<PostV3QuoteData, ThrowOnError>) => RequestResult<PostV3QuoteResponses, PostV3QuoteErrors, ThrowOnError, "fields">;
2332
+ readonly getQuote: <ThrowOnError extends boolean = false>(options: Options<GetQuoteData, ThrowOnError>) => RequestResult<GetQuoteResponses, GetQuoteErrors, ThrowOnError, "fields">;
2197
2333
  };
2198
2334
  /** @deprecated Use `SwapKitService` instead */
2199
2335
  declare const SwapService: {
2200
- readonly getSwap: <ThrowOnError extends boolean = false>(options: Options<PostV3SwapData, ThrowOnError>) => RequestResult<PostV3SwapResponses, PostV3SwapErrors, ThrowOnError, "fields">;
2336
+ readonly getSwap: <ThrowOnError extends boolean = false>(options: Options<ExecuteSwapData, ThrowOnError>) => RequestResult<ExecuteSwapResponses, ExecuteSwapErrors, ThrowOnError, "fields">;
2201
2337
  };
2202
2338
  /** @deprecated Use `SwapKitService` instead */
2203
2339
  declare const TrackService: {
2204
- readonly trackTransaction: <ThrowOnError extends boolean = false>(options?: Options<PostTrackData, ThrowOnError>) => RequestResult<PostTrackResponses, unknown, ThrowOnError, "fields">;
2340
+ readonly trackTransaction: <ThrowOnError extends boolean = false>(options?: Options<TrackTransactionData, ThrowOnError>) => RequestResult<TrackTransactionResponses, TrackTransactionErrors, ThrowOnError, "fields">;
2205
2341
  };
2206
2342
  /** @deprecated Use `SwapKitService` instead */
2207
2343
  declare const ScreenService: {
2208
- readonly screenAddress: <ThrowOnError extends boolean = false>(options: Options<PostScreenData, ThrowOnError>) => RequestResult<PostScreenResponses, PostScreenErrors, ThrowOnError, "fields">;
2344
+ readonly screenAddress: <ThrowOnError extends boolean = false>(options: Options<ScreenAddressData, ThrowOnError>) => RequestResult<ScreenAddressResponses, ScreenAddressErrors, ThrowOnError, "fields">;
2209
2345
  };
2210
2346
  /** @deprecated Use `SwapKitService` instead */
2211
2347
  declare const GasService: {
2212
- readonly getGasPrices: <ThrowOnError extends boolean = false>(options?: Options<GetGasData, ThrowOnError>) => RequestResult<GetGasResponses, unknown, ThrowOnError, "fields">;
2348
+ readonly getGasPrices: <ThrowOnError extends boolean = false>(options?: Options<GetGasPricesData, ThrowOnError>) => RequestResult<GetGasPricesResponses, unknown, ThrowOnError, "fields">;
2213
2349
  readonly getGasHistory: <ThrowOnError extends boolean = false>(options?: Options<GetGasHistoryData, ThrowOnError>) => RequestResult<GetGasHistoryResponses, unknown, ThrowOnError, "fields">;
2214
2350
  };
2215
2351
  /** @deprecated Use `SwapKitService` instead */
2216
2352
  declare const PriceService: {
2217
- readonly getCachedPrice: <ThrowOnError extends boolean = false>(options: Options<PostPriceCachedPriceData, ThrowOnError>) => RequestResult<PostPriceCachedPriceResponses, unknown, ThrowOnError, "fields">;
2353
+ readonly getCachedPrice: <ThrowOnError extends boolean = false>(options: Options<GetCachedPriceData, ThrowOnError>) => RequestResult<GetCachedPriceResponses, unknown, ThrowOnError, "fields">;
2218
2354
  };
2219
2355
  /** @deprecated Use `SwapKitService` instead */
2220
2356
  declare const ChainflipService: {
2221
- readonly createBrokerChannel: <ThrowOnError extends boolean = false>(options: Options<PostChainflipBrokerChannelData, ThrowOnError>) => RequestResult<PostChainflipBrokerChannelResponses, unknown, ThrowOnError, "fields">;
2357
+ readonly createBrokerChannel: <ThrowOnError extends boolean = false>(options: Options<CreateBrokerChannelData, ThrowOnError>) => RequestResult<CreateBrokerChannelResponses, unknown, ThrowOnError, "fields">;
2222
2358
  };
2223
2359
 
2224
- export { ChainflipService, type ClientOptions, GasService, type GetGasData, type GetGasHistoryData, type GetGasHistoryResponse, type GetGasHistoryResponses, type GetGasResponse, type GetGasResponses, type GetProvidersData, type GetProvidersError, type GetProvidersErrors, type GetProvidersResponse, type GetProvidersResponses, type GetSwapFromData, type GetSwapFromError, type GetSwapFromErrors, type GetSwapFromResponse, type GetSwapFromResponses, type GetSwapToData, type GetSwapToError, type GetSwapToErrors, type GetSwapToResponse, type GetSwapToResponses, type GetTokensData, type GetTokensError, type GetTokensErrors, type GetTokensResponse, type GetTokensResponses, type Options, type PostChainflipBrokerChannelData, type PostChainflipBrokerChannelResponse, type PostChainflipBrokerChannelResponses, type PostPriceCachedPriceData, type PostPriceCachedPriceResponse, type PostPriceCachedPriceResponses, type PostScreenData, type PostScreenError, type PostScreenErrors, type PostScreenResponse, type PostScreenResponses, type PostTrackData, type PostTrackResponse, type PostTrackResponses, type PostV3QuoteData, type PostV3QuoteError, type PostV3QuoteErrors, type PostV3QuoteResponse, type PostV3QuoteResponses, type PostV3SwapData, type PostV3SwapError, type PostV3SwapErrors, type PostV3SwapResponse, type PostV3SwapResponses, PriceService, QuoteService, ScreenService, type SwapKitClientOptions, SwapKitService, SwapService, TokenlistService, TrackService, client, configureSwapKit, getGas, getGasHistory, getProviders, getSwapFrom, getSwapTo, getTokens, postChainflipBrokerChannel, postPriceCachedPrice, postScreen, postTrack, postV3Quote, postV3Swap };
2360
+ export { ChainflipService, type ClientOptions, type CreateBrokerChannelData, type CreateBrokerChannelRequest, type CreateBrokerChannelResponse, type CreateBrokerChannelResponse2, type CreateBrokerChannelResponses, type ExecuteSwapData, type ExecuteSwapError, type ExecuteSwapErrors, type ExecuteSwapRequest, type ExecuteSwapResponse, type ExecuteSwapResponse2, type ExecuteSwapResponses, GasService, type GetCachedPriceData, type GetCachedPriceRequest, type GetCachedPriceResponse, type GetCachedPriceResponse2, type GetCachedPriceResponses, type GetGasHistoryData, type GetGasHistoryResponse, type GetGasHistoryResponse2, type GetGasHistoryResponses, type GetGasPricesData, type GetGasPricesResponse, type GetGasPricesResponse2, type GetGasPricesResponses, type GetProvidersData, type GetProvidersError, type GetProvidersErrors, type GetProvidersResponse, type GetProvidersResponse2, type GetProvidersResponses, type GetQuoteData, type GetQuoteError, type GetQuoteErrors, type GetQuoteRequest, type GetQuoteResponse, type GetQuoteResponse2, type GetQuoteResponses, type GetSwapFromAssetsData, type GetSwapFromAssetsError, type GetSwapFromAssetsErrors, type GetSwapFromAssetsResponse, type GetSwapFromAssetsResponse2, type GetSwapFromAssetsResponses, type GetSwapToAssetsData, type GetSwapToAssetsError, type GetSwapToAssetsErrors, type GetSwapToAssetsResponse, type GetSwapToAssetsResponse2, type GetSwapToAssetsResponses, type GetTokensData, type GetTokensError, type GetTokensErrors, type GetTokensResponse, type GetTokensResponse2, type GetTokensResponses, type InsertTrackedTransactionRequest, type InsertTrackedTransactionResponse, type Options, PriceService, QuoteService, type ScreenAddressData, type ScreenAddressError, type ScreenAddressErrors, type ScreenAddressRequest, type ScreenAddressResponse, type ScreenAddressResponse2, type ScreenAddressResponses, ScreenService, type SwapKitClientOptions, SwapKitService, SwapService, TokenlistService, TrackService, type TrackTransactionData, type TrackTransactionError, type TrackTransactionErrors, type TrackTransactionRequest, type TrackTransactionResponse, type TrackTransactionResponse2, type TrackTransactionResponses, client, configureSwapKit, createBrokerChannel, executeSwap, getCachedPrice, getGasHistory, getGasPrices, getProviders, getQuote, getSwapFromAssets, getSwapToAssets, getTokens, screenAddress, trackTransaction };