@swapkit/api-sdk-typescript 1.0.3 → 1.1.0-nightly.20260701161042

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