@swapkit/api-sdk-typescript 1.0.3 → 1.0.5

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