@covalenthq/client-sdk 1.0.1 → 2.0.0
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/LICENSE +201 -0
- package/README.md +223 -282
- package/package.json +25 -12
- package/dist/cjs/index.d.ts +0 -20
- package/dist/cjs/index.js +0 -8190
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/services/BalanceService.d.ts +0 -638
- package/dist/cjs/services/BaseService.d.ts +0 -571
- package/dist/cjs/services/CovalentClient.d.ts +0 -57
- package/dist/cjs/services/NftService.d.ts +0 -686
- package/dist/cjs/services/PricingService.d.ts +0 -103
- package/dist/cjs/services/SecurityService.d.ts +0 -162
- package/dist/cjs/services/TransactionService.d.ts +0 -711
- package/dist/cjs/services/XykService.d.ts +0 -1018
- package/dist/cjs/util/ApiHelpers.d.ts +0 -6
- package/dist/cjs/util/ApiKeyValidator.d.ts +0 -8
- package/dist/cjs/util/CalculatePrettyBalance.d.ts +0 -1
- package/dist/cjs/util/Chains.d.ts +0 -223
- package/dist/cjs/util/backoff.d.ts +0 -12
- package/dist/cjs/util/prettifyCurrency.d.ts +0 -2
- package/dist/cjs/util/types/BalanceServiceTypes.d.ts +0 -378
- package/dist/cjs/util/types/BaseServiceTypes.d.ts +0 -276
- package/dist/cjs/util/types/GenericTypes.d.ts +0 -116
- package/dist/cjs/util/types/NftServiceTypes.d.ts +0 -303
- package/dist/cjs/util/types/PricingServiceTypes.d.ts +0 -33
- package/dist/cjs/util/types/SecurityServiceTypes.d.ts +0 -121
- package/dist/cjs/util/types/TransactionServiceTypes.d.ts +0 -388
- package/dist/cjs/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/es/index.d.ts +0 -20
- package/dist/es/index.js +0 -8176
- package/dist/es/index.js.map +0 -1
- package/dist/es/services/BalanceService.d.ts +0 -638
- package/dist/es/services/BaseService.d.ts +0 -571
- package/dist/es/services/CovalentClient.d.ts +0 -57
- package/dist/es/services/NftService.d.ts +0 -686
- package/dist/es/services/PricingService.d.ts +0 -103
- package/dist/es/services/SecurityService.d.ts +0 -162
- package/dist/es/services/TransactionService.d.ts +0 -711
- package/dist/es/services/XykService.d.ts +0 -1018
- package/dist/es/util/ApiHelpers.d.ts +0 -6
- package/dist/es/util/ApiKeyValidator.d.ts +0 -8
- package/dist/es/util/CalculatePrettyBalance.d.ts +0 -1
- package/dist/es/util/Chains.d.ts +0 -223
- package/dist/es/util/backoff.d.ts +0 -12
- package/dist/es/util/prettifyCurrency.d.ts +0 -2
- package/dist/es/util/types/BalanceServiceTypes.d.ts +0 -378
- package/dist/es/util/types/BaseServiceTypes.d.ts +0 -276
- package/dist/es/util/types/GenericTypes.d.ts +0 -116
- package/dist/es/util/types/NftServiceTypes.d.ts +0 -303
- package/dist/es/util/types/PricingServiceTypes.d.ts +0 -33
- package/dist/es/util/types/SecurityServiceTypes.d.ts +0 -121
- package/dist/es/util/types/TransactionServiceTypes.d.ts +0 -388
- package/dist/es/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/esm/index.d.ts +0 -20
- package/dist/esm/index.js +0 -8176
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/services/BalanceService.d.ts +0 -638
- package/dist/esm/services/BaseService.d.ts +0 -571
- package/dist/esm/services/CovalentClient.d.ts +0 -57
- package/dist/esm/services/NftService.d.ts +0 -686
- package/dist/esm/services/PricingService.d.ts +0 -103
- package/dist/esm/services/SecurityService.d.ts +0 -162
- package/dist/esm/services/TransactionService.d.ts +0 -711
- package/dist/esm/services/XykService.d.ts +0 -1018
- package/dist/esm/util/ApiHelpers.d.ts +0 -6
- package/dist/esm/util/ApiKeyValidator.d.ts +0 -8
- package/dist/esm/util/CalculatePrettyBalance.d.ts +0 -1
- package/dist/esm/util/Chains.d.ts +0 -223
- package/dist/esm/util/backoff.d.ts +0 -12
- package/dist/esm/util/prettifyCurrency.d.ts +0 -2
- package/dist/esm/util/types/BalanceServiceTypes.d.ts +0 -378
- package/dist/esm/util/types/BaseServiceTypes.d.ts +0 -276
- package/dist/esm/util/types/GenericTypes.d.ts +0 -116
- package/dist/esm/util/types/NftServiceTypes.d.ts +0 -303
- package/dist/esm/util/types/PricingServiceTypes.d.ts +0 -33
- package/dist/esm/util/types/SecurityServiceTypes.d.ts +0 -121
- package/dist/esm/util/types/TransactionServiceTypes.d.ts +0 -388
- package/dist/esm/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/services/BalanceService.d.ts +0 -638
- package/dist/services/BalanceService.js +0 -959
- package/dist/services/BalanceService.js.map +0 -1
- package/dist/services/BaseService.d.ts +0 -571
- package/dist/services/BaseService.js +0 -1202
- package/dist/services/BaseService.js.map +0 -1
- package/dist/services/CovalentClient.d.ts +0 -57
- package/dist/services/CovalentClient.js +0 -49
- package/dist/services/CovalentClient.js.map +0 -1
- package/dist/services/NftService.d.ts +0 -686
- package/dist/services/NftService.js +0 -1490
- package/dist/services/NftService.js.map +0 -1
- package/dist/services/PricingService.d.ts +0 -103
- package/dist/services/PricingService.js +0 -155
- package/dist/services/PricingService.js.map +0 -1
- package/dist/services/SecurityService.d.ts +0 -162
- package/dist/services/SecurityService.js +0 -249
- package/dist/services/SecurityService.js.map +0 -1
- package/dist/services/TransactionService.d.ts +0 -711
- package/dist/services/TransactionService.js +0 -1687
- package/dist/services/TransactionService.js.map +0 -1
- package/dist/services/XykService.d.ts +0 -1018
- package/dist/services/XykService.js +0 -1827
- package/dist/services/XykService.js.map +0 -1
- package/dist/util/ApiHelpers.d.ts +0 -6
- package/dist/util/ApiHelpers.js +0 -87
- package/dist/util/ApiHelpers.js.map +0 -1
- package/dist/util/ApiKeyValidator.d.ts +0 -8
- package/dist/util/ApiKeyValidator.js +0 -13
- package/dist/util/ApiKeyValidator.js.map +0 -1
- package/dist/util/CalculatePrettyBalance.d.ts +0 -1
- package/dist/util/CalculatePrettyBalance.js +0 -32
- package/dist/util/CalculatePrettyBalance.js.map +0 -1
- package/dist/util/Chains.d.ts +0 -223
- package/dist/util/Chains.js +0 -225
- package/dist/util/Chains.js.map +0 -1
- package/dist/util/backoff.d.ts +0 -12
- package/dist/util/backoff.js +0 -47
- package/dist/util/backoff.js.map +0 -1
- package/dist/util/prettifyCurrency.d.ts +0 -2
- package/dist/util/prettifyCurrency.js +0 -69
- package/dist/util/prettifyCurrency.js.map +0 -1
- package/dist/util/types/BalanceServiceTypes.d.ts +0 -378
- package/dist/util/types/BalanceServiceTypes.js +0 -2
- package/dist/util/types/BalanceServiceTypes.js.map +0 -1
- package/dist/util/types/BaseServiceTypes.d.ts +0 -276
- package/dist/util/types/BaseServiceTypes.js +0 -2
- package/dist/util/types/BaseServiceTypes.js.map +0 -1
- package/dist/util/types/GenericTypes.d.ts +0 -116
- package/dist/util/types/GenericTypes.js +0 -2
- package/dist/util/types/GenericTypes.js.map +0 -1
- package/dist/util/types/NftServiceTypes.d.ts +0 -303
- package/dist/util/types/NftServiceTypes.js +0 -2
- package/dist/util/types/NftServiceTypes.js.map +0 -1
- package/dist/util/types/PricingServiceTypes.d.ts +0 -33
- package/dist/util/types/PricingServiceTypes.js +0 -2
- package/dist/util/types/PricingServiceTypes.js.map +0 -1
- package/dist/util/types/SecurityServiceTypes.d.ts +0 -121
- package/dist/util/types/SecurityServiceTypes.js +0 -2
- package/dist/util/types/SecurityServiceTypes.js.map +0 -1
- package/dist/util/types/TransactionServiceTypes.d.ts +0 -388
- package/dist/util/types/TransactionServiceTypes.js +0 -2
- package/dist/util/types/TransactionServiceTypes.js.map +0 -1
- package/dist/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/util/types/XykServiceTypes.js +0 -2
- package/dist/util/types/XykServiceTypes.js.map +0 -1
|
@@ -1,1018 +0,0 @@
|
|
|
1
|
-
import { Chain, Quote, Response, ChainID, Source } from "./CovalentClient";
|
|
2
|
-
import { Chains } from "../util/Chains";
|
|
3
|
-
declare class PoolResponse {
|
|
4
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
5
|
-
updated_at: Date;
|
|
6
|
-
/** * The requested chain ID eg: `1`. */
|
|
7
|
-
chain_id: number;
|
|
8
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
9
|
-
chain_name: string;
|
|
10
|
-
/** * List of response items. */
|
|
11
|
-
items: Pool[];
|
|
12
|
-
/** * Pagination metadata. */
|
|
13
|
-
pagination: Pagination;
|
|
14
|
-
constructor(data: PoolResponse);
|
|
15
|
-
}
|
|
16
|
-
declare class Pool {
|
|
17
|
-
/** * The pair address. */
|
|
18
|
-
exchange: string;
|
|
19
|
-
swap_count_24h: number;
|
|
20
|
-
/** * The total liquidity converted to fiat in `quote-currency`. */
|
|
21
|
-
total_liquidity_quote: number;
|
|
22
|
-
volume_24h_quote: number;
|
|
23
|
-
fee_24h_quote: number;
|
|
24
|
-
/** * Total supply of this pool token. */
|
|
25
|
-
total_supply: bigint | null;
|
|
26
|
-
/** * The exchange rate for the requested quote currency. */
|
|
27
|
-
quote_rate: number;
|
|
28
|
-
/** * A prettier version of the total liquidity quote for rendering purposes. */
|
|
29
|
-
pretty_total_liquidity_quote: string;
|
|
30
|
-
/** * A prettier version of the volume 24h quote for rendering purposes. */
|
|
31
|
-
pretty_volume_24h_quote: string;
|
|
32
|
-
/** * A prettier version of the fee 24h quote for rendering purposes. */
|
|
33
|
-
pretty_fee_24h_quote: string;
|
|
34
|
-
/** * A prettier version of the volume 7d quote for rendering purposes. */
|
|
35
|
-
pretty_volume_7d_quote: string;
|
|
36
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
37
|
-
chain_name: string;
|
|
38
|
-
/** * The requested chain ID eg: `1`. */
|
|
39
|
-
chain_id: string;
|
|
40
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
41
|
-
dex_name: string;
|
|
42
|
-
volume_7d_quote: number;
|
|
43
|
-
annualized_fee: number;
|
|
44
|
-
token_0: Token;
|
|
45
|
-
token_1: Token;
|
|
46
|
-
constructor(data: Pool);
|
|
47
|
-
}
|
|
48
|
-
declare class Pagination {
|
|
49
|
-
/** * True is there is another page. */
|
|
50
|
-
has_more: boolean;
|
|
51
|
-
/** * The requested page number. */
|
|
52
|
-
page_number: number;
|
|
53
|
-
/** * The requested number of items on the current page. */
|
|
54
|
-
page_size: number;
|
|
55
|
-
/** * The total number of items across all pages for this request. */
|
|
56
|
-
total_count: number;
|
|
57
|
-
constructor(data: Pagination);
|
|
58
|
-
}
|
|
59
|
-
declare class Explorer {
|
|
60
|
-
/** * The name of the explorer. */
|
|
61
|
-
label: string;
|
|
62
|
-
/** * The URL of the explorer. */
|
|
63
|
-
url: string;
|
|
64
|
-
constructor(data: Explorer);
|
|
65
|
-
}
|
|
66
|
-
declare class Token {
|
|
67
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
68
|
-
contract_address: string;
|
|
69
|
-
/** * The string returned by the `name()` method. */
|
|
70
|
-
contract_name: string;
|
|
71
|
-
volume_in_24h: string;
|
|
72
|
-
volume_out_24h: string;
|
|
73
|
-
/** * The exchange rate for the requested quote currency. */
|
|
74
|
-
quote_rate: number;
|
|
75
|
-
reserve: string;
|
|
76
|
-
/** * The contract logo URL. */
|
|
77
|
-
logo_url: string;
|
|
78
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
79
|
-
contract_ticker_symbol: string;
|
|
80
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
81
|
-
contract_decimals: number;
|
|
82
|
-
volume_in_7d: string;
|
|
83
|
-
volume_out_7d: string;
|
|
84
|
-
constructor(data: Token);
|
|
85
|
-
}
|
|
86
|
-
declare class PoolToDexResponse {
|
|
87
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
88
|
-
updated_at: Date;
|
|
89
|
-
/** * The requested address. */
|
|
90
|
-
address: string;
|
|
91
|
-
/** * The requested chain ID eg: `1`. */
|
|
92
|
-
chain_id: number;
|
|
93
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
94
|
-
chain_name: string;
|
|
95
|
-
/** * List of response items. */
|
|
96
|
-
items: PoolToDexItem[];
|
|
97
|
-
constructor(data: PoolToDexResponse);
|
|
98
|
-
}
|
|
99
|
-
declare class SupportedDex {
|
|
100
|
-
/** * The requested chain ID eg: `1`. */
|
|
101
|
-
chain_id: string;
|
|
102
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
103
|
-
chain_name: string;
|
|
104
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
105
|
-
dex_name: string;
|
|
106
|
-
/** * A display-friendly name for the dex. */
|
|
107
|
-
display_name: string;
|
|
108
|
-
/** * The dex logo URL. */
|
|
109
|
-
logo_url: string;
|
|
110
|
-
factory_contract_address: string;
|
|
111
|
-
router_contract_addresses: string[];
|
|
112
|
-
swap_fee: number;
|
|
113
|
-
constructor(data: SupportedDex);
|
|
114
|
-
}
|
|
115
|
-
declare class PoolToDexItem extends SupportedDex {
|
|
116
|
-
/** * The dex logo URL. */
|
|
117
|
-
logo_url: string;
|
|
118
|
-
constructor(data: PoolToDexItem);
|
|
119
|
-
}
|
|
120
|
-
declare class PoolByAddressResponse {
|
|
121
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
122
|
-
updated_at: Date;
|
|
123
|
-
/** * The requested chain ID eg: `1`. */
|
|
124
|
-
chain_id: number;
|
|
125
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
126
|
-
chain_name: string;
|
|
127
|
-
/** * List of response items. */
|
|
128
|
-
items: PoolWithTimeseries[];
|
|
129
|
-
/** * Pagination metadata. */
|
|
130
|
-
pagination: Pagination;
|
|
131
|
-
constructor(data: PoolByAddressResponse);
|
|
132
|
-
}
|
|
133
|
-
declare class PoolWithTimeseries {
|
|
134
|
-
/** * The pair address. */
|
|
135
|
-
exchange: string;
|
|
136
|
-
/** * A list of explorers for this address. */
|
|
137
|
-
explorers: Explorer[];
|
|
138
|
-
swap_count_24h: number;
|
|
139
|
-
/** * The total liquidity converted to fiat in `quote-currency`. */
|
|
140
|
-
total_liquidity_quote: number;
|
|
141
|
-
volume_24h_quote: number;
|
|
142
|
-
fee_24h_quote: number;
|
|
143
|
-
/** * Total supply of this pool token. */
|
|
144
|
-
total_supply: bigint | null;
|
|
145
|
-
/** * The exchange rate for the requested quote currency. */
|
|
146
|
-
quote_rate: number;
|
|
147
|
-
/** * The requested chain ID eg: `1`. */
|
|
148
|
-
chain_id: string;
|
|
149
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
150
|
-
dex_name: string;
|
|
151
|
-
volume_7d_quote: number;
|
|
152
|
-
annualized_fee: number;
|
|
153
|
-
/** * A prettier version of the total liquidity quote for rendering purposes. */
|
|
154
|
-
pretty_total_liquidity_quote: string;
|
|
155
|
-
/** * A prettier version of the volume 24h quote for rendering purposes. */
|
|
156
|
-
pretty_volume_24h_quote: string;
|
|
157
|
-
/** * A prettier version of the fee 24h quote for rendering purposes. */
|
|
158
|
-
pretty_fee_24h_quote: string;
|
|
159
|
-
/** * A prettier version of the volume 7d quote for rendering purposes. */
|
|
160
|
-
pretty_volume_7d_quote: string;
|
|
161
|
-
token_0: Token;
|
|
162
|
-
token_1: Token;
|
|
163
|
-
token_0_reserve_quote: number;
|
|
164
|
-
token_1_reserve_quote: number;
|
|
165
|
-
volume_timeseries_7d: VolumeTimeseries[];
|
|
166
|
-
volume_timeseries_30d: VolumeTimeseries[];
|
|
167
|
-
liquidity_timeseries_7d: LiquidityTimeseries[];
|
|
168
|
-
liquidity_timeseries_30d: LiquidityTimeseries[];
|
|
169
|
-
price_timeseries_7d: PriceTimeseries[];
|
|
170
|
-
price_timeseries_30d: PriceTimeseries[];
|
|
171
|
-
constructor(data: PoolWithTimeseries);
|
|
172
|
-
}
|
|
173
|
-
declare class VolumeTimeseries {
|
|
174
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
175
|
-
dex_name: string;
|
|
176
|
-
/** * The requested chain ID eg: `1`. */
|
|
177
|
-
chain_id: string;
|
|
178
|
-
dt: Date;
|
|
179
|
-
/** * The pair address. */
|
|
180
|
-
exchange: string;
|
|
181
|
-
sum_amount0in: string;
|
|
182
|
-
sum_amount0out: string;
|
|
183
|
-
sum_amount1in: string;
|
|
184
|
-
sum_amount1out: string;
|
|
185
|
-
volume_quote: number;
|
|
186
|
-
/** * A prettier version of the volume quote for rendering purposes. */
|
|
187
|
-
pretty_volume_quote: string;
|
|
188
|
-
token_0_quote_rate: number;
|
|
189
|
-
token_1_quote_rate: number;
|
|
190
|
-
swap_count_24: number;
|
|
191
|
-
constructor(data: VolumeTimeseries);
|
|
192
|
-
}
|
|
193
|
-
declare class LiquidityTimeseries {
|
|
194
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
195
|
-
dex_name: string;
|
|
196
|
-
/** * The requested chain ID eg: `1`. */
|
|
197
|
-
chain_id: string;
|
|
198
|
-
dt: Date;
|
|
199
|
-
/** * The pair address. */
|
|
200
|
-
exchange: string;
|
|
201
|
-
r0_c: string;
|
|
202
|
-
r1_c: string;
|
|
203
|
-
liquidity_quote: number;
|
|
204
|
-
/** * A prettier version of the liquidity quote for rendering purposes. */
|
|
205
|
-
pretty_liquidity_quote: string;
|
|
206
|
-
token_0_quote_rate: number;
|
|
207
|
-
token_1_quote_rate: number;
|
|
208
|
-
constructor(data: LiquidityTimeseries);
|
|
209
|
-
}
|
|
210
|
-
declare class PriceTimeseries {
|
|
211
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
212
|
-
dex_name: string;
|
|
213
|
-
/** * The requested chain ID eg: `1`. */
|
|
214
|
-
chain_id: string;
|
|
215
|
-
dt: Date;
|
|
216
|
-
/** * The pair address. */
|
|
217
|
-
exchange: string;
|
|
218
|
-
price_of_token0_in_token1: number;
|
|
219
|
-
/** * A prettier version of the price token0 for rendering purposes. */
|
|
220
|
-
pretty_price_of_token0_in_token1: string;
|
|
221
|
-
price_of_token0_in_token1_description: string;
|
|
222
|
-
price_of_token1_in_token0: number;
|
|
223
|
-
/** * A prettier version of the price token1 for rendering purposes. */
|
|
224
|
-
pretty_price_of_token1_in_token0: string;
|
|
225
|
-
price_of_token1_in_token0_description: string;
|
|
226
|
-
/** * The requested quote currency eg: `USD`. */
|
|
227
|
-
quote_currency: string;
|
|
228
|
-
price_of_token0_in_quote_currency: number;
|
|
229
|
-
price_of_token1_in_quote_currency: number;
|
|
230
|
-
constructor(data: PriceTimeseries);
|
|
231
|
-
}
|
|
232
|
-
declare class PoolsDexDataResponse {
|
|
233
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
234
|
-
updated_at: Date;
|
|
235
|
-
/** * The requested address. */
|
|
236
|
-
address: string;
|
|
237
|
-
/** * The requested chain ID eg: `1`. */
|
|
238
|
-
chain_id: number;
|
|
239
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
240
|
-
chain_name: string;
|
|
241
|
-
/** * The requested quote currency eg: `USD`. */
|
|
242
|
-
quote_currency: string;
|
|
243
|
-
/** * List of response items. */
|
|
244
|
-
items: PoolsDexDataItem[];
|
|
245
|
-
/** * Pagination metadata. */
|
|
246
|
-
pagination: Pagination;
|
|
247
|
-
constructor(data: PoolsDexDataResponse);
|
|
248
|
-
}
|
|
249
|
-
declare class PoolsDexDataItem {
|
|
250
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
251
|
-
dex_name: string;
|
|
252
|
-
/** * The pair address. */
|
|
253
|
-
exchange: string;
|
|
254
|
-
/** * The combined ticker symbol of token0 and token1 separated with a hypen. */
|
|
255
|
-
exchange_ticker_symbol: string;
|
|
256
|
-
/** * The dex logo URL for the pair address. */
|
|
257
|
-
exchange_logo_url: string;
|
|
258
|
-
/** * The list of explorers for the token address. */
|
|
259
|
-
explorers: Explorer[];
|
|
260
|
-
/** * The total liquidity converted to fiat in `quote-currency`. */
|
|
261
|
-
total_liquidity_quote: number;
|
|
262
|
-
/** * A prettier version of the total liquidity quote for rendering purposes. */
|
|
263
|
-
pretty_total_liquidity_quote: string;
|
|
264
|
-
/** * The volume 24h converted to fiat in `quote-currency`. */
|
|
265
|
-
volume_24h_quote: number;
|
|
266
|
-
/** * The volume 7d converted to fiat in `quote-currency`. */
|
|
267
|
-
volume_7d_quote: number;
|
|
268
|
-
/** * The fee 24h converted to fiat in `quote-currency`. */
|
|
269
|
-
fee_24h_quote: number;
|
|
270
|
-
/** * The exchange rate for the requested quote currency. */
|
|
271
|
-
quote_rate: number;
|
|
272
|
-
/** * A prettier version of the quote rate for rendering purposes. */
|
|
273
|
-
pretty_quote_rate: string;
|
|
274
|
-
/** * The annual fee percentage. */
|
|
275
|
-
annualized_fee: number;
|
|
276
|
-
/** * A prettier version of the volume 24h quote for rendering purposes. */
|
|
277
|
-
pretty_volume_24h_quote: string;
|
|
278
|
-
/** * A prettier version of the volume 7d quote for rendering purposes. */
|
|
279
|
-
pretty_volume_7d_quote: string;
|
|
280
|
-
/** * A prettier version of the fee 24h quote for rendering purposes. */
|
|
281
|
-
pretty_fee_24h_quote: string;
|
|
282
|
-
/** * Token0's contract metadata and reserve data. */
|
|
283
|
-
token_0: PoolsDexToken;
|
|
284
|
-
/** * Token1's contract metadata and reserve data. */
|
|
285
|
-
token_1: PoolsDexToken;
|
|
286
|
-
constructor(data: PoolsDexDataItem);
|
|
287
|
-
}
|
|
288
|
-
declare class PoolsDexToken {
|
|
289
|
-
/** * The reserves for the token. */
|
|
290
|
-
reserve: string;
|
|
291
|
-
/** * The string returned by the `name()` method. */
|
|
292
|
-
contract_name: string;
|
|
293
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
294
|
-
contract_decimals: number;
|
|
295
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
296
|
-
contract_ticker_symbol: string;
|
|
297
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
298
|
-
contract_address: string;
|
|
299
|
-
/** * The contract logo URL. */
|
|
300
|
-
logo_url: string;
|
|
301
|
-
/** * The exchange rate for the requested quote currency. */
|
|
302
|
-
quote_rate: number;
|
|
303
|
-
constructor(data: PoolsDexToken);
|
|
304
|
-
}
|
|
305
|
-
declare class AddressExchangeBalancesResponse {
|
|
306
|
-
/** * The requested address. */
|
|
307
|
-
address: string;
|
|
308
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
309
|
-
updated_at: Date;
|
|
310
|
-
/** * The requested chain ID eg: `1`. */
|
|
311
|
-
chain_id: number;
|
|
312
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
313
|
-
chain_name: string;
|
|
314
|
-
/** * List of response items. */
|
|
315
|
-
items: UniswapLikeBalanceItem[];
|
|
316
|
-
constructor(data: AddressExchangeBalancesResponse);
|
|
317
|
-
}
|
|
318
|
-
declare class UniswapLikeBalanceItem {
|
|
319
|
-
token_0: UniswapLikeToken;
|
|
320
|
-
token_1: UniswapLikeToken;
|
|
321
|
-
pool_token: UniswapLikeTokenWithSupply;
|
|
322
|
-
constructor(data: UniswapLikeBalanceItem);
|
|
323
|
-
}
|
|
324
|
-
declare class UniswapLikeToken {
|
|
325
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
326
|
-
contract_decimals: number;
|
|
327
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
328
|
-
contract_ticker_symbol: string;
|
|
329
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
330
|
-
contract_address: string;
|
|
331
|
-
/** * The contract logo URL. */
|
|
332
|
-
logo_url: string;
|
|
333
|
-
/** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
|
|
334
|
-
balance: bigint | null;
|
|
335
|
-
quote: number;
|
|
336
|
-
/** * A prettier version of the quote for rendering purposes. */
|
|
337
|
-
pretty_quote: string;
|
|
338
|
-
/** * The exchange rate for the requested quote currency. */
|
|
339
|
-
quote_rate: number;
|
|
340
|
-
constructor(data: UniswapLikeToken);
|
|
341
|
-
}
|
|
342
|
-
declare class UniswapLikeTokenWithSupply {
|
|
343
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
344
|
-
contract_decimals: number;
|
|
345
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
346
|
-
contract_ticker_symbol: string;
|
|
347
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
348
|
-
contract_address: string;
|
|
349
|
-
/** * The contract logo URL. */
|
|
350
|
-
logo_url: string;
|
|
351
|
-
/** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
|
|
352
|
-
balance: bigint | null;
|
|
353
|
-
quote: number;
|
|
354
|
-
/** * A prettier version of the quote for rendering purposes. */
|
|
355
|
-
pretty_quote: string;
|
|
356
|
-
/** * The exchange rate for the requested quote currency. */
|
|
357
|
-
quote_rate: number;
|
|
358
|
-
/** * Total supply of this pool token. */
|
|
359
|
-
total_supply: bigint | null;
|
|
360
|
-
constructor(data: UniswapLikeTokenWithSupply);
|
|
361
|
-
}
|
|
362
|
-
declare class NetworkExchangeTokensResponse {
|
|
363
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
364
|
-
updated_at: Date;
|
|
365
|
-
/** * The requested chain ID eg: `1`. */
|
|
366
|
-
chain_id: number;
|
|
367
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
368
|
-
chain_name: string;
|
|
369
|
-
/** * List of response items. */
|
|
370
|
-
items: TokenV2Volume[];
|
|
371
|
-
/** * Pagination metadata. */
|
|
372
|
-
pagination: Pagination;
|
|
373
|
-
constructor(data: NetworkExchangeTokensResponse);
|
|
374
|
-
}
|
|
375
|
-
declare class TokenV2Volume {
|
|
376
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
377
|
-
chain_name: string;
|
|
378
|
-
/** * The requested chain ID eg: `1`. */
|
|
379
|
-
chain_id: string;
|
|
380
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
381
|
-
dex_name: string;
|
|
382
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
383
|
-
contract_address: string;
|
|
384
|
-
/** * The string returned by the `name()` method. */
|
|
385
|
-
contract_name: string;
|
|
386
|
-
total_liquidity: string;
|
|
387
|
-
total_volume_24h: string;
|
|
388
|
-
/** * The contract logo URL. */
|
|
389
|
-
logo_url: string;
|
|
390
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
391
|
-
contract_ticker_symbol: string;
|
|
392
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
393
|
-
contract_decimals: number;
|
|
394
|
-
swap_count_24h: number;
|
|
395
|
-
/** * The list of explorers for the token address. */
|
|
396
|
-
explorers: Explorer[];
|
|
397
|
-
/** * The exchange rate for the requested quote currency. */
|
|
398
|
-
quote_rate: number;
|
|
399
|
-
/** * The 24h exchange rate for the requested quote currency. */
|
|
400
|
-
quote_rate_24h: number;
|
|
401
|
-
/** * A prettier version of the exchange rate for rendering purposes. */
|
|
402
|
-
pretty_quote_rate: string;
|
|
403
|
-
/** * A prettier version of the 24h exchange rate for rendering purposes. */
|
|
404
|
-
pretty_quote_rate_24h: string;
|
|
405
|
-
/** * A prettier version of the total liquidity quote for rendering purposes. */
|
|
406
|
-
pretty_total_liquidity_quote: string;
|
|
407
|
-
/** * A prettier version of the 24h volume quote for rendering purposes. */
|
|
408
|
-
pretty_total_volume_24h_quote: string;
|
|
409
|
-
/** * The total liquidity converted to fiat in `quote-currency`. */
|
|
410
|
-
total_liquidity_quote: number;
|
|
411
|
-
/** * The total volume 24h converted to fiat in `quote-currency`. */
|
|
412
|
-
total_volume_24h_quote: number;
|
|
413
|
-
constructor(data: TokenV2Volume);
|
|
414
|
-
}
|
|
415
|
-
declare class NetworkExchangeTokenViewResponse {
|
|
416
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
417
|
-
updated_at: Date;
|
|
418
|
-
/** * The requested chain ID eg: `1`. */
|
|
419
|
-
chain_id: number;
|
|
420
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
421
|
-
chain_name: string;
|
|
422
|
-
/** * List of response items. */
|
|
423
|
-
items: TokenV2VolumeWithChartData[];
|
|
424
|
-
/** * Pagination metadata. */
|
|
425
|
-
pagination: Pagination;
|
|
426
|
-
constructor(data: NetworkExchangeTokenViewResponse);
|
|
427
|
-
}
|
|
428
|
-
declare class TokenV2VolumeWithChartData {
|
|
429
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
430
|
-
chain_name: string;
|
|
431
|
-
/** * The requested chain ID eg: `1`. */
|
|
432
|
-
chain_id: string;
|
|
433
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
434
|
-
dex_name: string;
|
|
435
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
436
|
-
contract_address: string;
|
|
437
|
-
/** * The string returned by the `name()` method. */
|
|
438
|
-
contract_name: string;
|
|
439
|
-
/** * A list of explorers for this address. */
|
|
440
|
-
explorers: Explorer[];
|
|
441
|
-
/** * The total liquidity unscaled value. */
|
|
442
|
-
total_liquidity: string;
|
|
443
|
-
/** * The total volume 24h unscaled value. */
|
|
444
|
-
total_volume_24h: string;
|
|
445
|
-
/** * The contract logo URL. */
|
|
446
|
-
logo_url: string;
|
|
447
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
448
|
-
contract_ticker_symbol: string;
|
|
449
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
450
|
-
contract_decimals: number;
|
|
451
|
-
/** * The total amount of swaps in the last 24h. */
|
|
452
|
-
swap_count_24h: number;
|
|
453
|
-
/** * The exchange rate for the requested quote currency. */
|
|
454
|
-
quote_rate: number;
|
|
455
|
-
/** * The 24h exchange rate for the requested quote currency. */
|
|
456
|
-
quote_rate_24h: number;
|
|
457
|
-
/** * A prettier version of the exchange rate for rendering purposes. */
|
|
458
|
-
pretty_quote_rate: string;
|
|
459
|
-
/** * A prettier version of the 24h exchange rate for rendering purposes. */
|
|
460
|
-
pretty_quote_rate_24h: string;
|
|
461
|
-
/** * A prettier version of the total liquidity quote for rendering purposes. */
|
|
462
|
-
pretty_total_liquidity_quote: string;
|
|
463
|
-
/** * A prettier version of the 24h volume quote for rendering purposes. */
|
|
464
|
-
pretty_total_volume_24h_quote: string;
|
|
465
|
-
/** * The total liquidity converted to fiat in `quote-currency`. */
|
|
466
|
-
total_liquidity_quote: number;
|
|
467
|
-
/** * The total volume 24h converted to fiat in `quote-currency`. */
|
|
468
|
-
total_volume_24h_quote: number;
|
|
469
|
-
/** * The number of transactions in the last 24h. */
|
|
470
|
-
transactions_24h: number;
|
|
471
|
-
volume_timeseries_7d: VolumeTokenTimeseries[];
|
|
472
|
-
volume_timeseries_30d: VolumeTokenTimeseries[];
|
|
473
|
-
liquidity_timeseries_7d: LiquidityTokenTimeseries[];
|
|
474
|
-
liquidity_timeseries_30d: LiquidityTokenTimeseries[];
|
|
475
|
-
price_timeseries_7d: PriceTokenTimeseries[];
|
|
476
|
-
price_timeseries_30d: PriceTokenTimeseries[];
|
|
477
|
-
constructor(data: TokenV2VolumeWithChartData);
|
|
478
|
-
}
|
|
479
|
-
declare class VolumeTokenTimeseries {
|
|
480
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
481
|
-
dex_name: string;
|
|
482
|
-
/** * The requested chain ID eg: `1`. */
|
|
483
|
-
chain_id: string;
|
|
484
|
-
/** * The current date. */
|
|
485
|
-
dt: Date;
|
|
486
|
-
/** * The total volume unscaled for this day. */
|
|
487
|
-
total_volume: string;
|
|
488
|
-
/** * The volume in `quote-currency` denomination. */
|
|
489
|
-
volume_quote: number;
|
|
490
|
-
/** * A prettier version of the volume quote for rendering purposes. */
|
|
491
|
-
pretty_volume_quote: string;
|
|
492
|
-
constructor(data: VolumeTokenTimeseries);
|
|
493
|
-
}
|
|
494
|
-
declare class LiquidityTokenTimeseries {
|
|
495
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
496
|
-
dex_name: string;
|
|
497
|
-
/** * The requested chain ID eg: `1`. */
|
|
498
|
-
chain_id: string;
|
|
499
|
-
/** * The current date. */
|
|
500
|
-
dt: Date;
|
|
501
|
-
/** * The total liquidity unscaled up to this day. */
|
|
502
|
-
total_liquidity: string;
|
|
503
|
-
/** * The liquidity in `quote-currency` denomination. */
|
|
504
|
-
liquidity_quote: number;
|
|
505
|
-
/** * A prettier version of the liquidity quote for rendering purposes. */
|
|
506
|
-
pretty_liquidity_quote: string;
|
|
507
|
-
constructor(data: LiquidityTokenTimeseries);
|
|
508
|
-
}
|
|
509
|
-
declare class PriceTokenTimeseries {
|
|
510
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
511
|
-
dex_name: string;
|
|
512
|
-
/** * The requested chain ID eg: `1`. */
|
|
513
|
-
chain_id: string;
|
|
514
|
-
/** * The current date. */
|
|
515
|
-
dt: Date;
|
|
516
|
-
/** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
|
|
517
|
-
quote_currency: string;
|
|
518
|
-
/** * The exchange rate for the requested quote currency. */
|
|
519
|
-
quote_rate: number;
|
|
520
|
-
/** * A prettier version of the exchange rate for rendering purposes. */
|
|
521
|
-
pretty_quote_rate: string;
|
|
522
|
-
constructor(data: PriceTokenTimeseries);
|
|
523
|
-
}
|
|
524
|
-
declare class SupportedDexesResponse {
|
|
525
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
526
|
-
updated_at: Date;
|
|
527
|
-
/** * List of response items. */
|
|
528
|
-
items: SupportedDex[];
|
|
529
|
-
/** * Pagination metadata. */
|
|
530
|
-
pagination: Pagination;
|
|
531
|
-
constructor(data: SupportedDexesResponse);
|
|
532
|
-
}
|
|
533
|
-
declare class SingleNetworkExchangeTokenResponse {
|
|
534
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
535
|
-
updated_at: Date;
|
|
536
|
-
/** * The requested chain ID eg: `1`. */
|
|
537
|
-
chain_id: number;
|
|
538
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
539
|
-
chain_name: string;
|
|
540
|
-
/** * List of response items. */
|
|
541
|
-
items: PoolWithTimeseries[];
|
|
542
|
-
/** * Pagination metadata. */
|
|
543
|
-
pagination: Pagination;
|
|
544
|
-
constructor(data: SingleNetworkExchangeTokenResponse);
|
|
545
|
-
}
|
|
546
|
-
declare class TransactionsForAccountAddressResponse {
|
|
547
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
548
|
-
updated_at: Date;
|
|
549
|
-
/** * The requested chain ID eg: `1`. */
|
|
550
|
-
chain_id: number;
|
|
551
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
552
|
-
chain_name: string;
|
|
553
|
-
/** * List of response items. */
|
|
554
|
-
items: ExchangeTransaction[];
|
|
555
|
-
/** * Pagination metadata. */
|
|
556
|
-
pagination: Pagination;
|
|
557
|
-
constructor(data: TransactionsForAccountAddressResponse);
|
|
558
|
-
}
|
|
559
|
-
declare class ExchangeTransaction {
|
|
560
|
-
/** * The block signed timestamp in UTC. */
|
|
561
|
-
block_signed_at: Date;
|
|
562
|
-
/** * The requested transaction hash. */
|
|
563
|
-
tx_hash: string;
|
|
564
|
-
act: string;
|
|
565
|
-
/** * The requested address. */
|
|
566
|
-
address: string;
|
|
567
|
-
/** * A list of explorers for this transaction. */
|
|
568
|
-
explorers: Explorer[];
|
|
569
|
-
amount_0: string;
|
|
570
|
-
amount_1: string;
|
|
571
|
-
amount_0_in: string;
|
|
572
|
-
amount_0_out: string;
|
|
573
|
-
amount_1_in: string;
|
|
574
|
-
amount_1_out: string;
|
|
575
|
-
to_address: string;
|
|
576
|
-
from_address: string;
|
|
577
|
-
sender_address: string;
|
|
578
|
-
total_quote: number;
|
|
579
|
-
/** * A prettier version of the total quote for rendering purposes. */
|
|
580
|
-
pretty_total_quote: string;
|
|
581
|
-
/** * The value attached to this tx. */
|
|
582
|
-
value: bigint | null;
|
|
583
|
-
/** * The value attached in `quote-currency` to this tx. */
|
|
584
|
-
value_quote: number;
|
|
585
|
-
/** * A prettier version of the quote for rendering purposes. */
|
|
586
|
-
pretty_value_quote: string;
|
|
587
|
-
/** * The requested chain native gas token metadata. */
|
|
588
|
-
gas_metadata: ContractMetadata;
|
|
589
|
-
/** * The amount of gas supplied for this tx. */
|
|
590
|
-
gas_offered: number;
|
|
591
|
-
/** * The gas spent for this tx. */
|
|
592
|
-
gas_spent: number;
|
|
593
|
-
/** * The gas price at the time of this tx. */
|
|
594
|
-
gas_price: number;
|
|
595
|
-
/** * The total transaction fees (`gas_price` * `gas_spent`) paid for this tx, denoted in wei. */
|
|
596
|
-
fees_paid: bigint | null;
|
|
597
|
-
/** * The gas spent in `quote-currency` denomination. */
|
|
598
|
-
gas_quote: number;
|
|
599
|
-
/** * A prettier version of the quote for rendering purposes. */
|
|
600
|
-
pretty_gas_quote: string;
|
|
601
|
-
/** * The native gas exchange rate for the requested `quote-currency`. */
|
|
602
|
-
gas_quote_rate: number;
|
|
603
|
-
/** * The requested quote currency eg: `USD`. */
|
|
604
|
-
quote_currency: string;
|
|
605
|
-
token_0: PoolToken;
|
|
606
|
-
token_1: PoolToken;
|
|
607
|
-
token_0_quote_rate: number;
|
|
608
|
-
token_1_quote_rate: number;
|
|
609
|
-
constructor(data: ExchangeTransaction);
|
|
610
|
-
}
|
|
611
|
-
declare class ContractMetadata {
|
|
612
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
613
|
-
contract_decimals: number;
|
|
614
|
-
/** * The string returned by the `name()` method. */
|
|
615
|
-
contract_name: string;
|
|
616
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
617
|
-
contract_ticker_symbol: string;
|
|
618
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
619
|
-
contract_address: string;
|
|
620
|
-
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
621
|
-
supports_erc: string[];
|
|
622
|
-
/** * The contract logo URL. */
|
|
623
|
-
logo_url: string;
|
|
624
|
-
constructor(data: ContractMetadata);
|
|
625
|
-
}
|
|
626
|
-
declare class PoolToken {
|
|
627
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
628
|
-
contract_decimals: number;
|
|
629
|
-
/** * The string returned by the `name()` method. */
|
|
630
|
-
contract_name: string;
|
|
631
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
632
|
-
contract_ticker_symbol: string;
|
|
633
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
634
|
-
contract_address: string;
|
|
635
|
-
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
636
|
-
supports_erc: string[];
|
|
637
|
-
/** * The contract logo URL. */
|
|
638
|
-
logo_url: string;
|
|
639
|
-
constructor(data: PoolToken);
|
|
640
|
-
}
|
|
641
|
-
declare class TransactionsForTokenAddressResponse {
|
|
642
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
643
|
-
updated_at: Date;
|
|
644
|
-
/** * The requested chain ID eg: `1`. */
|
|
645
|
-
chain_id: number;
|
|
646
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
647
|
-
chain_name: string;
|
|
648
|
-
/** * List of response items. */
|
|
649
|
-
items: ExchangeTransaction[];
|
|
650
|
-
/** * Pagination metadata. */
|
|
651
|
-
pagination: Pagination;
|
|
652
|
-
constructor(data: TransactionsForTokenAddressResponse);
|
|
653
|
-
}
|
|
654
|
-
declare class TransactionsForExchangeResponse {
|
|
655
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
656
|
-
updated_at: Date;
|
|
657
|
-
/** * The requested chain ID eg: `1`. */
|
|
658
|
-
chain_id: number;
|
|
659
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
660
|
-
chain_name: string;
|
|
661
|
-
/** * List of response items. */
|
|
662
|
-
items: ExchangeTransaction[];
|
|
663
|
-
/** * Pagination metadata. */
|
|
664
|
-
pagination: Pagination;
|
|
665
|
-
constructor(data: TransactionsForExchangeResponse);
|
|
666
|
-
}
|
|
667
|
-
declare class NetworkTransactionsResponse {
|
|
668
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
669
|
-
updated_at: Date;
|
|
670
|
-
/** * The requested chain ID eg: `1`. */
|
|
671
|
-
chain_id: number;
|
|
672
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
673
|
-
chain_name: string;
|
|
674
|
-
/** * List of response items. */
|
|
675
|
-
items: ExchangeTransaction[];
|
|
676
|
-
/** * Pagination metadata. */
|
|
677
|
-
pagination: Pagination;
|
|
678
|
-
constructor(data: NetworkTransactionsResponse);
|
|
679
|
-
}
|
|
680
|
-
declare class EcosystemChartDataResponse {
|
|
681
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
682
|
-
updated_at: Date;
|
|
683
|
-
/** * The requested chain ID eg: `1`. */
|
|
684
|
-
chain_id: number;
|
|
685
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
686
|
-
chain_name: string;
|
|
687
|
-
/** * List of response items. */
|
|
688
|
-
items: UniswapLikeEcosystemCharts[];
|
|
689
|
-
/** * Pagination metadata. */
|
|
690
|
-
pagination: Pagination;
|
|
691
|
-
constructor(data: EcosystemChartDataResponse);
|
|
692
|
-
}
|
|
693
|
-
declare class UniswapLikeEcosystemCharts {
|
|
694
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
695
|
-
dex_name: string;
|
|
696
|
-
/** * The requested chain ID eg: `1`. */
|
|
697
|
-
chain_id: string;
|
|
698
|
-
/** * The requested quote currency eg: `USD`. */
|
|
699
|
-
quote_currency: string;
|
|
700
|
-
gas_token_price_quote: number;
|
|
701
|
-
total_swaps_24h: number;
|
|
702
|
-
total_active_pairs_7d: number;
|
|
703
|
-
total_fees_24h: number;
|
|
704
|
-
/** * A prettier version of the gas quote for rendering purposes. */
|
|
705
|
-
pretty_gas_token_price_quote: string;
|
|
706
|
-
/** * A prettier version of the 24h total fees for rendering purposes. */
|
|
707
|
-
pretty_total_fees_24h: string;
|
|
708
|
-
volume_chart_7d: VolumeEcosystemChart[];
|
|
709
|
-
volume_chart_30d: VolumeEcosystemChart[];
|
|
710
|
-
liquidity_chart_7d: LiquidityEcosystemChart[];
|
|
711
|
-
liquidity_chart_30d: LiquidityEcosystemChart[];
|
|
712
|
-
constructor(data: UniswapLikeEcosystemCharts);
|
|
713
|
-
}
|
|
714
|
-
declare class VolumeEcosystemChart {
|
|
715
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
716
|
-
dex_name: string;
|
|
717
|
-
/** * The requested chain ID eg: `1`. */
|
|
718
|
-
chain_id: string;
|
|
719
|
-
dt: Date;
|
|
720
|
-
/** * The requested quote currency eg: `USD`. */
|
|
721
|
-
quote_currency: string;
|
|
722
|
-
volume_quote: number;
|
|
723
|
-
/** * A prettier version of the volume quote for rendering purposes. */
|
|
724
|
-
pretty_volume_quote: string;
|
|
725
|
-
swap_count_24: number;
|
|
726
|
-
constructor(data: VolumeEcosystemChart);
|
|
727
|
-
}
|
|
728
|
-
declare class LiquidityEcosystemChart {
|
|
729
|
-
/** * The name of the DEX, eg: `uniswap_v2`. */
|
|
730
|
-
dex_name: string;
|
|
731
|
-
/** * The requested chain ID eg: `1`. */
|
|
732
|
-
chain_id: string;
|
|
733
|
-
dt: Date;
|
|
734
|
-
/** * The requested quote currency eg: `USD`. */
|
|
735
|
-
quote_currency: string;
|
|
736
|
-
liquidity_quote: number;
|
|
737
|
-
/** * A prettier version of the liquidity quote for rendering purposes. */
|
|
738
|
-
pretty_liquidity_quote: string;
|
|
739
|
-
constructor(data: LiquidityEcosystemChart);
|
|
740
|
-
}
|
|
741
|
-
declare class HealthDataResponse {
|
|
742
|
-
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
743
|
-
updated_at: Date;
|
|
744
|
-
/** * The requested chain ID eg: `1`. */
|
|
745
|
-
chain_id: number;
|
|
746
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
747
|
-
chain_name: string;
|
|
748
|
-
/** * List of response items. */
|
|
749
|
-
items: HealthData[];
|
|
750
|
-
/** * Pagination metadata. */
|
|
751
|
-
pagination: Pagination;
|
|
752
|
-
constructor(data: HealthDataResponse);
|
|
753
|
-
}
|
|
754
|
-
declare class HealthData {
|
|
755
|
-
synced_block_height: number;
|
|
756
|
-
synced_block_signed_at: Date;
|
|
757
|
-
latest_block_height: number;
|
|
758
|
-
latest_block_signed_at: Date;
|
|
759
|
-
constructor(data: HealthData);
|
|
760
|
-
}
|
|
761
|
-
export interface GetPoolsQueryParamOpts {
|
|
762
|
-
/** * Ending date to define a block range (YYYY-MM-DD). Omitting this parameter defaults to the current date. */
|
|
763
|
-
date?: string;
|
|
764
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
765
|
-
pageSize?: number;
|
|
766
|
-
/** * 0-indexed page number to begin pagination. */
|
|
767
|
-
pageNumber?: number;
|
|
768
|
-
}
|
|
769
|
-
export interface GetPoolsForTokenAddressQueryParamOpts {
|
|
770
|
-
/** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
|
|
771
|
-
quoteCurrency?: Quote;
|
|
772
|
-
/** * The DEX name eg: `uniswap_v2`. */
|
|
773
|
-
dexName?: string;
|
|
774
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
775
|
-
pageSize?: number;
|
|
776
|
-
}
|
|
777
|
-
export interface GetPoolsForWalletAddressQueryParamOpts {
|
|
778
|
-
/** * The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically. */
|
|
779
|
-
tokenAddress?: string;
|
|
780
|
-
/** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
|
|
781
|
-
quoteCurrency?: Quote;
|
|
782
|
-
/** * The DEX name eg: `uniswap_v2`. */
|
|
783
|
-
dexName?: string;
|
|
784
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
785
|
-
pageSize?: number;
|
|
786
|
-
}
|
|
787
|
-
export interface GetNetworkExchangeTokensQueryParamOpts {
|
|
788
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
789
|
-
pageSize?: number;
|
|
790
|
-
/** * 0-indexed page number to begin pagination. */
|
|
791
|
-
pageNumber?: number;
|
|
792
|
-
}
|
|
793
|
-
export interface GetLpTokenViewQueryParamOpts {
|
|
794
|
-
/** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
|
|
795
|
-
quoteCurrency?: Quote;
|
|
796
|
-
}
|
|
797
|
-
export interface GetSingleNetworkExchangeTokenQueryParamOpts {
|
|
798
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
799
|
-
pageSize?: number;
|
|
800
|
-
/** * 0-indexed page number to begin pagination. */
|
|
801
|
-
pageNumber?: number;
|
|
802
|
-
}
|
|
803
|
-
export interface GetTransactionsForTokenAddressQueryParamOpts {
|
|
804
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
805
|
-
pageSize?: number;
|
|
806
|
-
/** * 0-indexed page number to begin pagination. */
|
|
807
|
-
pageNumber?: number;
|
|
808
|
-
}
|
|
809
|
-
export interface GetTransactionsForExchangeQueryParamOpts {
|
|
810
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
811
|
-
pageSize?: number;
|
|
812
|
-
/** * 0-indexed page number to begin pagination. */
|
|
813
|
-
pageNumber?: number;
|
|
814
|
-
}
|
|
815
|
-
export interface GetTransactionsForDexQueryParamOpts {
|
|
816
|
-
/** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
|
|
817
|
-
quoteCurrency?: Quote;
|
|
818
|
-
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
819
|
-
pageSize?: number;
|
|
820
|
-
/** * 0-indexed page number to begin pagination. */
|
|
821
|
-
pageNumber?: number;
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* XYK APIs
|
|
825
|
-
*
|
|
826
|
-
*/
|
|
827
|
-
export declare class XykService {
|
|
828
|
-
private apiKey;
|
|
829
|
-
private debug;
|
|
830
|
-
private threadCount;
|
|
831
|
-
private is_key_valid;
|
|
832
|
-
private enableRetry;
|
|
833
|
-
private source;
|
|
834
|
-
private LIMIT;
|
|
835
|
-
constructor(apiKey: string, debug: boolean, threadCount: number, is_key_valid: boolean, enableRetry: boolean, source: Source);
|
|
836
|
-
/**
|
|
837
|
-
*
|
|
838
|
-
* Commonly used to get all the pools of a particular DEX. Supports most common DEXs (Uniswap, SushiSwap, etc), and returns detailed trading data (volume, liquidity, swap counts, fees, LP token prices).
|
|
839
|
-
*
|
|
840
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
841
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
842
|
-
* @param {GetPoolsQueryParamOpts} queryParamOpts
|
|
843
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
844
|
-
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
845
|
-
*
|
|
846
|
-
*/
|
|
847
|
-
getPools(chainName: Chain | Chains | ChainID, dexName: string, queryParamOpts?: GetPoolsQueryParamOpts): Promise<Response<PoolResponse>>;
|
|
848
|
-
/**
|
|
849
|
-
*
|
|
850
|
-
* Commonly used to get the corresponding supported DEX given a pool address, along with the swap fees, DEX's logo url, and factory addresses. Useful to identifying the specific DEX to which a pair address is associated.
|
|
851
|
-
*
|
|
852
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
853
|
-
* @param {string} poolAddress - The requested pool address.
|
|
854
|
-
*
|
|
855
|
-
*/
|
|
856
|
-
getDexForPoolAddress(chainName: Chain | Chains | ChainID, poolAddress: string): Promise<Response<PoolToDexResponse>>;
|
|
857
|
-
/**
|
|
858
|
-
*
|
|
859
|
-
* Commonly used to get the 7 day and 30 day time-series data (volume, liquidity, price) of a particular liquidity pool in a DEX. Useful for building time-series charts on DEX trading activity.
|
|
860
|
-
*
|
|
861
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
862
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
863
|
-
* @param {string} poolAddress - The pool contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
864
|
-
*
|
|
865
|
-
*/
|
|
866
|
-
getPoolByAddress(chainName: Chain | Chains | ChainID, dexName: string, poolAddress: string): Promise<Response<PoolByAddressResponse>>;
|
|
867
|
-
/**
|
|
868
|
-
*
|
|
869
|
-
* Commonly used to get all pools and the supported DEX for a token. Useful for building a table of top pairs across all supported DEXes that the token is trading on.
|
|
870
|
-
*
|
|
871
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
872
|
-
* @param {string} tokenAddress - The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
873
|
-
* @param {number} page - The requested 0-indexed page number.
|
|
874
|
-
* @param {GetPoolsForTokenAddressQueryParamOpts} queryParamOpts
|
|
875
|
-
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
876
|
-
* - `dexName`: The DEX name eg: `uniswap_v2`.
|
|
877
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
878
|
-
*
|
|
879
|
-
*/
|
|
880
|
-
getPoolsForTokenAddress(chainName: Chain | Chains | ChainID, tokenAddress: string, page: number, queryParamOpts?: GetPoolsForTokenAddressQueryParamOpts): Promise<Response<PoolsDexDataResponse>>;
|
|
881
|
-
/**
|
|
882
|
-
*
|
|
883
|
-
* Commonly used to return balance of a wallet/contract address on a specific DEX.
|
|
884
|
-
*
|
|
885
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
886
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
887
|
-
* @param {string} accountAddress - The account address.
|
|
888
|
-
*
|
|
889
|
-
*/
|
|
890
|
-
getAddressExchangeBalances(chainName: Chain | Chains | ChainID, dexName: string, accountAddress: string): Promise<Response<AddressExchangeBalancesResponse>>;
|
|
891
|
-
/**
|
|
892
|
-
*
|
|
893
|
-
* Commonly used to get all pools and supported DEX for a wallet. Useful for building a personal DEX UI showcasing pairs and supported DEXes associated to the wallet.
|
|
894
|
-
*
|
|
895
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
896
|
-
* @param {string} walletAddress - The account address.
|
|
897
|
-
* @param {number} page - The requested 0-indexed page number.
|
|
898
|
-
* @param {GetPoolsForWalletAddressQueryParamOpts} queryParamOpts
|
|
899
|
-
* - `tokenAddress`: The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
900
|
-
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
901
|
-
* - `dexName`: The DEX name eg: `uniswap_v2`.
|
|
902
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
903
|
-
*
|
|
904
|
-
*/
|
|
905
|
-
getPoolsForWalletAddress(chainName: Chain | Chains | ChainID, walletAddress: string, page: number, queryParamOpts?: GetPoolsForWalletAddressQueryParamOpts): Promise<Response<PoolsDexDataResponse>>;
|
|
906
|
-
/**
|
|
907
|
-
*
|
|
908
|
-
* Commonly used to retrieve all network exchange tokens for a specific DEX. Useful for building a top tokens table by total liquidity within a particular DEX.
|
|
909
|
-
*
|
|
910
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
911
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
912
|
-
* @param {GetNetworkExchangeTokensQueryParamOpts} queryParamOpts
|
|
913
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
914
|
-
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
915
|
-
*
|
|
916
|
-
*/
|
|
917
|
-
getNetworkExchangeTokens(chainName: Chain | Chains | ChainID, dexName: string, queryParamOpts?: GetNetworkExchangeTokensQueryParamOpts): Promise<Response<NetworkExchangeTokensResponse>>;
|
|
918
|
-
/**
|
|
919
|
-
*
|
|
920
|
-
* Commonly used to get a detailed view for a single liquidity pool token. Includes time series data.
|
|
921
|
-
*
|
|
922
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
923
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
924
|
-
* @param {string} tokenAddress - The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
925
|
-
* @param {GetLpTokenViewQueryParamOpts} queryParamOpts
|
|
926
|
-
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
927
|
-
*
|
|
928
|
-
*/
|
|
929
|
-
getLpTokenView(chainName: Chain | Chains | ChainID, dexName: string, tokenAddress: string, queryParamOpts?: GetLpTokenViewQueryParamOpts): Promise<Response<NetworkExchangeTokenViewResponse>>;
|
|
930
|
-
/**
|
|
931
|
-
*
|
|
932
|
-
* Commonly used to get all the supported DEXs available for the xy=k endpoints, along with the swap fees and factory addresses.
|
|
933
|
-
*
|
|
934
|
-
*
|
|
935
|
-
*/
|
|
936
|
-
getSupportedDEXes(): Promise<Response<SupportedDexesResponse>>;
|
|
937
|
-
/**
|
|
938
|
-
*
|
|
939
|
-
* Commonly used to get historical daily swap count for a single network exchange token.
|
|
940
|
-
*
|
|
941
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
942
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
943
|
-
* @param {string} tokenAddress - The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
944
|
-
* @param {GetSingleNetworkExchangeTokenQueryParamOpts} queryParamOpts
|
|
945
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
946
|
-
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
947
|
-
*
|
|
948
|
-
*/
|
|
949
|
-
getSingleNetworkExchangeToken(chainName: Chain | Chains | ChainID, dexName: string, tokenAddress: string, queryParamOpts?: GetSingleNetworkExchangeTokenQueryParamOpts): Promise<Response<SingleNetworkExchangeTokenResponse>>;
|
|
950
|
-
/**
|
|
951
|
-
*
|
|
952
|
-
* Commonly used to get all the DEX transactions of a wallet. Useful for building tables of DEX activity segmented by wallet.
|
|
953
|
-
*
|
|
954
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
955
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
956
|
-
* @param {string} accountAddress - The account address. Passing in an `ENS` or `RNS` resolves automatically.
|
|
957
|
-
*
|
|
958
|
-
*/
|
|
959
|
-
getTransactionsForAccountAddress(chainName: Chain | Chains | ChainID, dexName: string, accountAddress: string): Promise<Response<TransactionsForAccountAddressResponse>>;
|
|
960
|
-
/**
|
|
961
|
-
*
|
|
962
|
-
* Commonly used to get all the transactions of a token within a particular DEX. Useful for getting a per-token view of DEX activity.
|
|
963
|
-
*
|
|
964
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
965
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
966
|
-
* @param {string} tokenAddress - The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
967
|
-
* @param {GetTransactionsForTokenAddressQueryParamOpts} queryParamOpts
|
|
968
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
969
|
-
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
970
|
-
*
|
|
971
|
-
*/
|
|
972
|
-
getTransactionsForTokenAddress(chainName: Chain | Chains | ChainID, dexName: string, tokenAddress: string, queryParamOpts?: GetTransactionsForTokenAddressQueryParamOpts): Promise<Response<TransactionsForTokenAddressResponse>>;
|
|
973
|
-
/**
|
|
974
|
-
*
|
|
975
|
-
* Commonly used for getting all the transactions of a particular DEX liquidity pool. Useful for building a transactions history table for an individual pool.
|
|
976
|
-
*
|
|
977
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
978
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
979
|
-
* @param {string} poolAddress - The pool contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
980
|
-
* @param {GetTransactionsForExchangeQueryParamOpts} queryParamOpts
|
|
981
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
982
|
-
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
983
|
-
*
|
|
984
|
-
*/
|
|
985
|
-
getTransactionsForExchange(chainName: Chain | Chains | ChainID, dexName: string, poolAddress: string, queryParamOpts?: GetTransactionsForExchangeQueryParamOpts): Promise<Response<TransactionsForExchangeResponse>>;
|
|
986
|
-
/**
|
|
987
|
-
*
|
|
988
|
-
* Commonly used to get all the the transactions for a given DEX. Useful for building DEX activity views.
|
|
989
|
-
*
|
|
990
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
991
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
992
|
-
* @param {GetTransactionsForDexQueryParamOpts} queryParamOpts
|
|
993
|
-
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
994
|
-
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
995
|
-
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
996
|
-
*
|
|
997
|
-
*/
|
|
998
|
-
getTransactionsForDex(chainName: Chain | Chains | ChainID, dexName: string, queryParamOpts?: GetTransactionsForDexQueryParamOpts): Promise<Response<NetworkTransactionsResponse>>;
|
|
999
|
-
/**
|
|
1000
|
-
*
|
|
1001
|
-
* Commonly used to get a 7d and 30d time-series chart of DEX activity. Includes volume and swap count.
|
|
1002
|
-
*
|
|
1003
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
1004
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
1005
|
-
*
|
|
1006
|
-
*/
|
|
1007
|
-
getEcosystemChartData(chainName: Chain | Chains | ChainID, dexName: string): Promise<Response<EcosystemChartDataResponse>>;
|
|
1008
|
-
/**
|
|
1009
|
-
*
|
|
1010
|
-
* Commonly used to ping the health of xy=k endpoints to get the synced block height per chain.
|
|
1011
|
-
*
|
|
1012
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
1013
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
1014
|
-
*
|
|
1015
|
-
*/
|
|
1016
|
-
getHealthData(chainName: Chain | Chains | ChainID, dexName: string): Promise<Response<HealthDataResponse>>;
|
|
1017
|
-
}
|
|
1018
|
-
export {};
|