@covalenthq/client-sdk 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/{cjs/index.js → index.js} +92 -32
  2. package/dist/index.js.map +1 -0
  3. package/dist/{esm/src → src}/services/StreamingService.d.ts +26 -1
  4. package/dist/{esm/src → src}/utils/types/Generic.types.d.ts +11 -27
  5. package/dist/{esm/src → src}/utils/types/StreamingService.types.d.ts +22 -1
  6. package/package.json +18 -23
  7. package/dist/cjs/index.js.map +0 -1
  8. package/dist/cjs/src/services/StreamingService.d.ts +0 -151
  9. package/dist/cjs/src/utils/types/Generic.types.d.ts +0 -391
  10. package/dist/cjs/src/utils/types/StreamingService.types.d.ts +0 -201
  11. package/dist/esm/index.d.ts +0 -16
  12. package/dist/esm/index.js +0 -5696
  13. package/dist/esm/index.js.map +0 -1
  14. package/dist/esm/src/GoldRushClient.d.ts +0 -27
  15. package/dist/esm/src/services/AllChainsService.d.ts +0 -63
  16. package/dist/esm/src/services/BalanceService.d.ts +0 -125
  17. package/dist/esm/src/services/BaseService.d.ts +0 -163
  18. package/dist/esm/src/services/BitcoinService.d.ts +0 -40
  19. package/dist/esm/src/services/NftService.d.ts +0 -193
  20. package/dist/esm/src/services/PricingService.d.ts +0 -36
  21. package/dist/esm/src/services/SecurityService.d.ts +0 -28
  22. package/dist/esm/src/services/TransactionService.d.ts +0 -134
  23. package/dist/esm/src/utils/functions/bigIntParser.d.ts +0 -1
  24. package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +0 -1
  25. package/dist/esm/src/utils/functions/debugOutput.d.ts +0 -2
  26. package/dist/esm/src/utils/functions/endpointGenerator.d.ts +0 -4
  27. package/dist/esm/src/utils/functions/execution.d.ts +0 -11
  28. package/dist/esm/src/utils/functions/isValidApiKey.d.ts +0 -1
  29. package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +0 -7
  30. package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +0 -2
  31. package/dist/esm/src/utils/functions/timestamp-parser.d.ts +0 -1
  32. package/dist/esm/src/utils/types/AllChainService.types.d.ts +0 -123
  33. package/dist/esm/src/utils/types/BalanceService.types.d.ts +0 -442
  34. package/dist/esm/src/utils/types/BaseService.types.d.ts +0 -312
  35. package/dist/esm/src/utils/types/BitcoinService.types.d.ts +0 -88
  36. package/dist/esm/src/utils/types/NftService.types.d.ts +0 -355
  37. package/dist/esm/src/utils/types/PricingService.types.d.ts +0 -80
  38. package/dist/esm/src/utils/types/SecurityService.types.d.ts +0 -124
  39. package/dist/esm/src/utils/types/TransactionService.types.d.ts +0 -392
  40. /package/dist/{cjs/index.d.ts → index.d.ts} +0 -0
  41. /package/dist/{cjs/src → src}/GoldRushClient.d.ts +0 -0
  42. /package/dist/{cjs/src → src}/services/AllChainsService.d.ts +0 -0
  43. /package/dist/{cjs/src → src}/services/BalanceService.d.ts +0 -0
  44. /package/dist/{cjs/src → src}/services/BaseService.d.ts +0 -0
  45. /package/dist/{cjs/src → src}/services/BitcoinService.d.ts +0 -0
  46. /package/dist/{cjs/src → src}/services/NftService.d.ts +0 -0
  47. /package/dist/{cjs/src → src}/services/PricingService.d.ts +0 -0
  48. /package/dist/{cjs/src → src}/services/SecurityService.d.ts +0 -0
  49. /package/dist/{cjs/src → src}/services/TransactionService.d.ts +0 -0
  50. /package/dist/{cjs/src → src}/utils/functions/bigIntParser.d.ts +0 -0
  51. /package/dist/{cjs/src → src}/utils/functions/calculatePrettyBalance.d.ts +0 -0
  52. /package/dist/{cjs/src → src}/utils/functions/debugOutput.d.ts +0 -0
  53. /package/dist/{cjs/src → src}/utils/functions/endpointGenerator.d.ts +0 -0
  54. /package/dist/{cjs/src → src}/utils/functions/execution.d.ts +0 -0
  55. /package/dist/{cjs/src → src}/utils/functions/isValidApiKey.d.ts +0 -0
  56. /package/dist/{cjs/src → src}/utils/functions/paginateEndpoint.d.ts +0 -0
  57. /package/dist/{cjs/src → src}/utils/functions/prettifyCurrency.d.ts +0 -0
  58. /package/dist/{cjs/src → src}/utils/functions/timestamp-parser.d.ts +0 -0
  59. /package/dist/{cjs/src → src}/utils/types/AllChainService.types.d.ts +0 -0
  60. /package/dist/{cjs/src → src}/utils/types/BalanceService.types.d.ts +0 -0
  61. /package/dist/{cjs/src → src}/utils/types/BaseService.types.d.ts +0 -0
  62. /package/dist/{cjs/src → src}/utils/types/BitcoinService.types.d.ts +0 -0
  63. /package/dist/{cjs/src → src}/utils/types/NftService.types.d.ts +0 -0
  64. /package/dist/{cjs/src → src}/utils/types/PricingService.types.d.ts +0 -0
  65. /package/dist/{cjs/src → src}/utils/types/SecurityService.types.d.ts +0 -0
  66. /package/dist/{cjs/src → src}/utils/types/TransactionService.types.d.ts +0 -0
@@ -1,442 +0,0 @@
1
- import { type ChainID, type ChainName, type ContractMetadata, type Explorer, type LogoUrls, type NftCollectionAttribute, type Nullable, type Pagination, type Quote } from "./Generic.types";
2
- export type BalancesResponse = Nullable<{
3
- /** * The requested address. */
4
- address: string;
5
- /** * The requested chain ID eg: `1`. */
6
- chain_id: ChainID;
7
- /** * The requested chain name eg: `eth-mainnet`. */
8
- chain_name: ChainName;
9
- /** * The requested quote currency eg: `USD`. */
10
- quote_currency: Quote;
11
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
12
- updated_at: Date;
13
- /** * List of response items. */
14
- items: BalanceItem[];
15
- }>;
16
- export type BalanceItem = Nullable<{
17
- /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
18
- contract_decimals: number;
19
- /** * The string returned by the `name()` method. */
20
- contract_name: string;
21
- /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
22
- contract_ticker_symbol: string;
23
- /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
24
- contract_address: string;
25
- /** * A display-friendly name for the contract. */
26
- contract_display_name: string;
27
- /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
28
- supports_erc: string[];
29
- /** * The contract logo URL. */
30
- logo_url: string;
31
- /** * The contract logo URLs. */
32
- logo_urls: LogoUrls;
33
- /** * The timestamp when the token was transferred. */
34
- last_transferred_at: Date;
35
- /** * Indicates if a token is the chain's native gas token, eg: ETH on Ethereum. */
36
- native_token: boolean;
37
- /** * One of `cryptocurrency`, `stablecoin`, `nft` or `dust`. */
38
- type: string;
39
- /** * Denotes whether the token is suspected spam. */
40
- is_spam: boolean;
41
- /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
42
- balance: bigint;
43
- /** * The 24h asset balance. Use `contract_decimals` to scale this balance for display purposes. */
44
- balance_24h: bigint;
45
- /** * The exchange rate for the requested quote currency. */
46
- quote_rate: number;
47
- /** * The 24h exchange rate for the requested quote currency. */
48
- quote_rate_24h: number;
49
- /** * The current balance converted to fiat in `quote-currency`. */
50
- quote: number;
51
- /** * The 24h balance converted to fiat in `quote-currency`. */
52
- quote_24h: number;
53
- /** * A prettier version of the quote for rendering purposes. */
54
- pretty_quote: string;
55
- /** * A prettier version of the 24h quote for rendering purposes. */
56
- pretty_quote_24h: string;
57
- /** * The protocol metadata. */
58
- protocol_metadata: ProtocolMetadata;
59
- /** * NFT-specific data. */
60
- nft_data: BalanceNftData[];
61
- }>;
62
- export type ProtocolMetadata = Nullable<{
63
- /** * The name of the protocol. */
64
- protocol_name: string;
65
- }>;
66
- export type BalanceNftData = Nullable<{
67
- /** * The token's id. */
68
- token_id: bigint;
69
- /** * The count of the number of NFTs with this ID. */
70
- token_balance: bigint;
71
- /** * External URL for additional metadata. */
72
- token_url: string;
73
- /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
74
- supports_erc: string[];
75
- /** * The latest price value on chain of the token ID. */
76
- token_price_wei: bigint;
77
- /** * The latest quote_rate of the token ID denominated in unscaled ETH. */
78
- token_quote_rate_eth: string;
79
- /** * The address of the original owner of this NFT. */
80
- original_owner: string;
81
- external_data: NftExternalDataV1;
82
- /** * The current owner of this NFT. */
83
- owner: string;
84
- /** * The address of the current owner of this NFT. */
85
- owner_address: string;
86
- /** * When set to true, this NFT has been Burned. */
87
- burned: boolean;
88
- }>;
89
- export type NftExternalDataV1 = Nullable<{
90
- name: string;
91
- description: string;
92
- image: string;
93
- image_256: string;
94
- image_512: string;
95
- image_1024: string;
96
- animation_url: string;
97
- external_url: string;
98
- attributes: NftCollectionAttribute[];
99
- owner: string;
100
- }>;
101
- export type PortfolioResponse = Nullable<{
102
- /** * The requested address. */
103
- address: string;
104
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
105
- updated_at: Date;
106
- /** * The requested quote currency eg: `USD`. */
107
- quote_currency: Quote;
108
- /** * The requested chain ID eg: `1`. */
109
- chain_id: ChainID;
110
- /** * The requested chain name eg: `eth-mainnet`. */
111
- chain_name: ChainName;
112
- /** * List of response items. */
113
- items: PortfolioItem[];
114
- }>;
115
- export type PortfolioItem = Nullable<{
116
- /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
117
- contract_address: string;
118
- /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
119
- contract_decimals: number;
120
- /** * The string returned by the `name()` method. */
121
- contract_name: string;
122
- /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
123
- contract_ticker_symbol: string;
124
- /** * The contract logo URL. */
125
- logo_url: string;
126
- holdings: HoldingItem[];
127
- }>;
128
- export type HoldingItem = Nullable<{
129
- /** * The exchange rate for the requested quote currency. */
130
- quote_rate: number;
131
- timestamp: Date;
132
- close: OhlcItem;
133
- high: OhlcItem;
134
- low: OhlcItem;
135
- open: OhlcItem;
136
- }>;
137
- export type OhlcItem = Nullable<{
138
- /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
139
- balance: bigint;
140
- /** * The current balance converted to fiat in `quote-currency`. */
141
- quote: number;
142
- /** * A prettier version of the quote for rendering purposes. */
143
- pretty_quote: string;
144
- }>;
145
- export type Erc20TransfersResponse = Nullable<{
146
- /** * The requested address. */
147
- address: string;
148
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
149
- updated_at: Date;
150
- /** * The requested quote currency eg: `USD`. */
151
- quote_currency: Quote;
152
- /** * The requested chain ID eg: `1`. */
153
- chain_id: ChainID;
154
- /** * The requested chain name eg: `eth-mainnet`. */
155
- chain_name: ChainName;
156
- /** * List of response items. */
157
- items: BlockTransactionWithContractTransfers[];
158
- /** * Pagination metadata. */
159
- pagination: Pagination;
160
- }>;
161
- export type BlockTransactionWithContractTransfers = Nullable<{
162
- /** * The block signed timestamp in UTC. */
163
- block_signed_at: Date;
164
- /** * The height of the block. */
165
- block_height: number;
166
- /** * The hash of the block. Use it to remove transactions from re-org-ed blocks. */
167
- block_hash: string;
168
- /** * The requested transaction hash. */
169
- tx_hash: string;
170
- /** * The offset is the position of the tx in the block. */
171
- tx_offset: number;
172
- /** * Whether or not transaction is successful. */
173
- successful: boolean;
174
- /** * The address of the miner. */
175
- miner_address: string;
176
- /** * The sender's wallet address. */
177
- from_address: string;
178
- /** * The label of `from` address. */
179
- from_address_label: string;
180
- /** * The receiver's wallet address. */
181
- to_address: string;
182
- /** * The label of `to` address. */
183
- to_address_label: string;
184
- /** * The value attached to this tx. */
185
- value: bigint;
186
- /** * The value attached in `quote-currency` to this tx. */
187
- value_quote: number;
188
- /** * A prettier version of the quote for rendering purposes. */
189
- pretty_value_quote: string;
190
- /** * The requested chain native gas token metadata. */
191
- gas_metadata: ContractMetadata;
192
- gas_offered: number;
193
- /** * The gas spent for this tx. */
194
- gas_spent: number;
195
- /** * The gas price at the time of this tx. */
196
- gas_price: number;
197
- /** * The transaction's gas_price * gas_spent, denoted in wei. */
198
- fees_paid: bigint;
199
- /** * The gas spent in `quote-currency` denomination. */
200
- gas_quote: number;
201
- /** * A prettier version of the quote for rendering purposes. */
202
- pretty_gas_quote: string;
203
- /** * The native gas exchange rate for the requested `quote-currency`. */
204
- gas_quote_rate: number;
205
- transfers: TokenTransferItem[];
206
- }>;
207
- export type TokenTransferItem = Nullable<{
208
- /** * The block signed timestamp in UTC. */
209
- block_signed_at: Date;
210
- /** * The requested transaction hash. */
211
- tx_hash: string;
212
- /** * The sender's wallet address. */
213
- from_address: string;
214
- /** * The label of `from` address. */
215
- from_address_label: string;
216
- /** * The receiver's wallet address. */
217
- to_address: string;
218
- /** * The label of `to` address. */
219
- to_address_label: string;
220
- /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
221
- contract_decimals: number;
222
- /** * The string returned by the `name()` method. */
223
- contract_name: string;
224
- /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
225
- contract_ticker_symbol: string;
226
- /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
227
- contract_address: string;
228
- /** * The contract logo URL. */
229
- logo_url: string;
230
- /** * Categorizes token transactions as either `transfer-in` or `transfer-out`, indicating whether tokens are being received or sent from an account. */
231
- transfer_type: string;
232
- /** * The delta attached to this transfer. */
233
- delta: bigint;
234
- /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
235
- balance: bigint;
236
- /** * The exchange rate for the requested quote currency. */
237
- quote_rate: number;
238
- /** * The current delta converted to fiat in `quote-currency`. */
239
- delta_quote: number;
240
- /** * A prettier version of the quote for rendering purposes. */
241
- pretty_delta_quote: string;
242
- /** * The current balance converted to fiat in `quote-currency`. */
243
- balance_quote: number;
244
- /** * Additional details on which transfer events were invoked. Defaults to `true`. */
245
- method_calls: MethodCallsForTransfers[];
246
- /** * The explorer links for this transaction. */
247
- explorers: Explorer[];
248
- }>;
249
- export type MethodCallsForTransfers = Nullable<{
250
- /** * The address of the sender. */
251
- sender_address: string;
252
- method: string;
253
- }>;
254
- export type TokenHoldersResponse = Nullable<{
255
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
256
- updated_at: Date | null;
257
- /** * The requested chain ID eg: `1`. */
258
- chain_id: ChainID;
259
- /** * The requested chain name eg: `eth-mainnet`. */
260
- chain_name: ChainName;
261
- /** * List of response items. */
262
- items: TokenHolder[];
263
- /** * Pagination metadata. */
264
- pagination: Pagination;
265
- }>;
266
- export type TokenHolder = Nullable<{
267
- /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
268
- contract_decimals: number;
269
- /** * The string returned by the `name()` method. */
270
- contract_name: string;
271
- /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
272
- contract_ticker_symbol: string;
273
- /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
274
- contract_address: string;
275
- /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
276
- supports_erc: string[];
277
- /** * The contract logo URL. */
278
- logo_url: string;
279
- /** * The requested address. */
280
- address: string;
281
- /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
282
- balance: bigint;
283
- /** * Total supply of this token. */
284
- total_supply: bigint;
285
- /** * The height of the block. */
286
- block_height: number;
287
- }>;
288
- export type HistoricalBalancesResponse = Nullable<{
289
- /** * The requested address. */
290
- address: string;
291
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
292
- updated_at: Date;
293
- /** * The requested quote currency eg: `USD`. */
294
- quote_currency: Quote;
295
- /** * The requested chain ID eg: `1`. */
296
- chain_id: ChainID;
297
- /** * The requested chain name eg: `eth-mainnet`. */
298
- chain_name: ChainName;
299
- /** * List of response items. */
300
- items: HistoricalBalanceItem[];
301
- }>;
302
- export type HistoricalBalanceItem = Nullable<{
303
- /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
304
- contract_decimals: number;
305
- /** * The string returned by the `name()` method. */
306
- contract_name: string;
307
- /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
308
- contract_ticker_symbol: string;
309
- /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
310
- contract_address: string;
311
- /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
312
- supports_erc: string[];
313
- /** * The contract logo URL. */
314
- logo_url: string;
315
- /** * The height of the block. */
316
- block_height: number;
317
- /** * The block height when the token was last transferred. */
318
- last_transferred_block_height: number;
319
- contract_display_name: string;
320
- /** * The timestamp when the token was transferred. */
321
- last_transferred_at: Date;
322
- /** * Indicates if a token is the chain's native gas token, eg: ETH on Ethereum. */
323
- native_token: boolean;
324
- /** * One of `cryptocurrency`, `stablecoin`, `nft` or `dust`. */
325
- type: string;
326
- /** * Denotes whether the token is suspected spam. */
327
- is_spam: boolean;
328
- /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
329
- balance: bigint;
330
- /** * The exchange rate for the requested quote currency. */
331
- quote_rate: number;
332
- /** * The current balance converted to fiat in `quote-currency`. */
333
- quote: number;
334
- /** * A prettier version of the quote for rendering purposes. */
335
- pretty_quote: string;
336
- /** * The protocol metadata. */
337
- protocol_metadata: ProtocolMetadata;
338
- /** * NFT-specific data. */
339
- nft_data: BalanceNftData[];
340
- }>;
341
- export type TokenBalanceNativeResponse = Nullable<{
342
- /** * The requested address. */
343
- address: string;
344
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
345
- updated_at: Date;
346
- /** * The requested quote currency eg: `USD`. */
347
- quote_currency: Quote;
348
- /** * The requested chain ID eg: `1`. */
349
- chain_id: ChainID;
350
- /** * The requested chain name eg: `eth-mainnet`. */
351
- chain_name: ChainName;
352
- /** * List of response items. */
353
- items: NativeBalanceItem[];
354
- }>;
355
- export type NativeBalanceItem = Nullable<{
356
- /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
357
- contract_decimals: number;
358
- /** * The string returned by the `name()` method. */
359
- contract_name: string;
360
- /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
361
- contract_ticker_symbol: string;
362
- /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
363
- contract_address: string;
364
- /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
365
- supports_erc: string[];
366
- /** * The contract logo URL. */
367
- logo_url: string;
368
- /** * The height of the block. */
369
- block_height: number;
370
- /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
371
- balance: bigint;
372
- /** * The exchange rate for the requested quote currency. */
373
- quote_rate: number;
374
- /** * The current balance converted to fiat in `quote-currency`. */
375
- quote: number;
376
- /** * A prettier version of the quote for rendering purposes. */
377
- pretty_quote: string;
378
- }>;
379
- export type GetTokenBalancesForWalletAddressQueryParamOpts = Nullable<{
380
- /** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
381
- quoteCurrency?: Quote;
382
- /** * If `true`, NFTs will be included in the response. */
383
- nft?: boolean;
384
- /** * If `true`, only NFTs that have been cached will be included in the response. Helpful for faster response times. */
385
- noNftFetch?: boolean;
386
- /** * If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`. */
387
- noSpam?: boolean;
388
- /** * If `true`, the response shape is limited to a list of collections and token ids, omitting metadata and asset information. Helpful for faster response times and wallets holding a large number of NFTs. */
389
- noNftAssetMetadata?: boolean;
390
- }>;
391
- export type GetHistoricalPortfolioForWalletAddressQueryParamOpts = Nullable<{
392
- /** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
393
- quoteCurrency?: Quote;
394
- /** * The number of days to return data for. Defaults to 30 days. */
395
- days?: number;
396
- }>;
397
- export type GetErc20TransfersForWalletAddressQueryParamOpts = Nullable<{
398
- /** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
399
- quoteCurrency?: Quote;
400
- /** * The requested contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically. */
401
- contractAddress: string;
402
- /** * The block height to start from, defaults to `0`. */
403
- startingBlock?: number;
404
- /** * The block height to end at, defaults to current block height. */
405
- endingBlock?: number;
406
- /** * Number of items per page. Omitting this parameter defaults to 100. */
407
- pageSize?: number;
408
- /** * 0-indexed page number to begin pagination. */
409
- pageNumber?: number;
410
- }>;
411
- export type GetTokenHoldersV2ForTokenAddressQueryParamOpts = Nullable<{
412
- /** * Ending block to define a block range. Omitting this parameter defaults to the latest block height. */
413
- blockHeight?: number | string;
414
- /** * Ending date to define a block range (YYYY-MM-DD). Omitting this parameter defaults to the current date. */
415
- date?: string;
416
- /** * Number of items per page. Note: Currently, only values of `100` and `1000` are supported. Omitting this parameter defaults to 100. */
417
- pageSize?: number;
418
- /** * 0-indexed page number to begin pagination. */
419
- pageNumber?: number;
420
- }>;
421
- export type GetHistoricalTokenBalancesForWalletAddressQueryParamOpts = Nullable<{
422
- /** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
423
- quoteCurrency?: Quote;
424
- /** * If `true`, NFTs will be included in the response. */
425
- nft?: boolean;
426
- /** * If `true`, only NFTs that have been cached will be included in the response. Helpful for faster response times. */
427
- noNftFetch?: boolean;
428
- /** * If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`. */
429
- noSpam?: boolean;
430
- /** * If `true`, the response shape is limited to a list of collections and token ids, omitting metadata and asset information. Helpful for faster response times and wallets holding a large number of NFTs. */
431
- noNftAssetMetadata?: boolean;
432
- /** * Ending block to define a block range. Omitting this parameter defaults to the latest block height. */
433
- blockHeight?: number | string;
434
- /** * Ending date to define a block range (YYYY-MM-DD). Omitting this parameter defaults to the current date. */
435
- date?: string;
436
- }>;
437
- export type GetNativeTokenBalanceQueryParamOpts = Nullable<{
438
- /** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
439
- quoteCurrency?: Quote;
440
- /** * Ending block to define a block range. Omitting this parameter defaults to the latest block height. */
441
- blockHeight?: number | string;
442
- }>;