@covalenthq/client-sdk 2.0.1 → 2.0.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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/src/utils/types/Generic.types.d.ts +1 -1
  5. package/dist/esm/index.js +1 -1
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/src/utils/types/Generic.types.d.ts +1 -1
  8. package/package.json +30 -17
  9. package/dist/es/index.d.ts +0 -17
  10. package/dist/es/index.js +0 -2854
  11. package/dist/es/index.js.map +0 -1
  12. package/dist/es/src/GoldRushClient.d.ts +0 -20
  13. package/dist/es/src/services/BalanceService.d.ts +0 -125
  14. package/dist/es/src/services/BaseService.d.ts +0 -161
  15. package/dist/es/src/services/NftService.d.ts +0 -157
  16. package/dist/es/src/services/PricingService.d.ts +0 -25
  17. package/dist/es/src/services/SecurityService.d.ts +0 -28
  18. package/dist/es/src/services/TransactionService.d.ts +0 -128
  19. package/dist/es/src/utils/functions/bigIntParser.d.ts +0 -1
  20. package/dist/es/src/utils/functions/calculatePrettyBalance.d.ts +0 -1
  21. package/dist/es/src/utils/functions/debugOutput.d.ts +0 -2
  22. package/dist/es/src/utils/functions/endpointGenerator.d.ts +0 -4
  23. package/dist/es/src/utils/functions/execution.d.ts +0 -11
  24. package/dist/es/src/utils/functions/isValidApiKey.d.ts +0 -1
  25. package/dist/es/src/utils/functions/paginateEndpoint.d.ts +0 -7
  26. package/dist/es/src/utils/functions/prettifyCurrency.d.ts +0 -2
  27. package/dist/es/src/utils/types/BalanceService.types.d.ts +0 -442
  28. package/dist/es/src/utils/types/BaseService.types.d.ts +0 -326
  29. package/dist/es/src/utils/types/Generic.types.d.ts +0 -477
  30. package/dist/es/src/utils/types/NftService.types.d.ts +0 -273
  31. package/dist/es/src/utils/types/PricingService.types.d.ts +0 -39
  32. package/dist/es/src/utils/types/SecurityService.types.d.ts +0 -122
  33. package/dist/es/src/utils/types/TransactionService.types.d.ts +0 -474
@@ -1 +0,0 @@
1
- export declare const calculatePrettyBalance: (value: number | bigint, decimals?: number, roundOff?: boolean, precision?: number) => string;
@@ -1,2 +0,0 @@
1
- import { type GoldRushClientSettings } from "../types/Generic.types";
2
- export declare function debugOutput(settings: GoldRushClientSettings, ...content: unknown[]): Promise<void>;
@@ -1,4 +0,0 @@
1
- export declare const endpointGenerator: (extension?: string, params?: {
2
- key: string;
3
- value: boolean | null | string | number | undefined;
4
- }[]) => URL;
@@ -1,11 +0,0 @@
1
- import { type GoldRushClientSettings, type GoldRushResponse } from "../types/Generic.types";
2
- export declare class Execution {
3
- private settings;
4
- private headers;
5
- private maxRetries;
6
- private retryDelay;
7
- private enableRetry;
8
- private processes;
9
- constructor(settings: GoldRushClientSettings, headers: Record<string, string>);
10
- execute<T>(endpoint: URL, parseData: (data: GoldRushResponse<T>) => GoldRushResponse<T>): Promise<GoldRushResponse<T>>;
11
- }
@@ -1 +0,0 @@
1
- export declare const isValidApiKey: (apiKey: string) => boolean;
@@ -1,7 +0,0 @@
1
- import { type GoldRushResponse, type Pagination, type PaginationLinks } from "../types/Generic.types";
2
- import { type Execution } from "./execution";
3
- export declare function paginateEndpoint<T extends {
4
- pagination: Pagination;
5
- } | {
6
- links: PaginationLinks;
7
- }>(endpoint: URL, execution: Execution, parseData: (data: GoldRushResponse<T>) => GoldRushResponse<T>, implementation: "pagination" | "links"): AsyncIterable<GoldRushResponse<T>>;
@@ -1,2 +0,0 @@
1
- import { type Quote } from "../types/Generic.types";
2
- export declare const prettifyCurrency: (value: number | bigint | string, decimals?: number, currency?: Quote, ignoreSmallValue?: boolean, ignoreMinus?: boolean, ignoreZero?: boolean) => string;
@@ -1,442 +0,0 @@
1
- import { type ChainID, type ChainName, type ContractMetadata, type Explorer, type LogoUrls, type NftCollectionAttribute, type Pagination, type Quote } from "./Generic.types";
2
- export interface BalancesResponse {
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: string;
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 interface BalanceItem {
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 interface ProtocolMetadata {
63
- /** * The name of the protocol. */
64
- protocol_name: string;
65
- }
66
- export interface BalanceNftData {
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 interface NftExternalDataV1 {
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 interface PortfolioResponse {
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: string;
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 interface PortfolioItem {
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 interface HoldingItem {
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 interface OhlcItem {
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 interface Erc20TransfersResponse {
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: string;
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 interface BlockTransactionWithContractTransfers {
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 interface TokenTransferItem {
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 interface MethodCallsForTransfers {
250
- /** * The address of the sender. */
251
- sender_address: string;
252
- method: string;
253
- }
254
- export interface TokenHoldersResponse {
255
- /** * The timestamp when the response was generated. Useful to show data staleness to users. */
256
- updated_at: Date;
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 interface TokenHolder {
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 interface HistoricalBalancesResponse {
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: string;
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 interface HistoricalBalanceItem {
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 interface TokenBalanceNativeResponse {
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: string;
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 interface NativeBalanceItem {
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 interface GetTokenBalancesForWalletAddressQueryParamOpts {
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 interface GetHistoricalPortfolioForWalletAddressQueryParamOpts {
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 interface GetErc20TransfersForWalletAddressQueryParamOpts {
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 interface GetTokenHoldersV2ForTokenAddressQueryParamOpts {
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 interface GetHistoricalTokenBalancesForWalletAddressQueryParamOpts {
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 interface GetNativeTokenBalanceQueryParamOpts {
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
- }