@covalenthq/client-sdk 0.2.9 → 0.5.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.
Files changed (116) hide show
  1. package/README.md +117 -46
  2. package/dist/cjs/index.d.ts +9 -0
  3. package/dist/cjs/index.js +5226 -0
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/cjs/services/BalanceService.d.ts +543 -0
  6. package/dist/cjs/services/BaseService.d.ts +357 -0
  7. package/dist/cjs/services/CovalentClient.d.ts +65 -0
  8. package/dist/cjs/services/NftService.d.ts +620 -0
  9. package/dist/cjs/services/PricingService.d.ts +88 -0
  10. package/dist/cjs/services/SecurityService.d.ts +158 -0
  11. package/dist/cjs/services/TransactionService.d.ts +457 -0
  12. package/dist/cjs/services/XykService.d.ts +686 -0
  13. package/dist/cjs/util/ApiHelpers.d.ts +5 -0
  14. package/dist/cjs/util/backoff.d.ts +11 -0
  15. package/dist/cjs/util/types/BalanceServiceTypes.d.ts +322 -0
  16. package/dist/cjs/util/types/BaseServiceTypes.d.ts +180 -0
  17. package/dist/cjs/util/types/GenericTypes.d.ts +96 -0
  18. package/dist/cjs/util/types/NftServiceTypes.d.ts +297 -0
  19. package/dist/cjs/util/types/PricingServiceTypes.d.ts +31 -0
  20. package/dist/cjs/util/types/SecurityServiceTypes.d.ts +121 -0
  21. package/dist/cjs/util/types/TransactionServiceTypes.d.ts +322 -0
  22. package/dist/cjs/util/types/XykServiceTypes.d.ts +479 -0
  23. package/dist/es/index.d.ts +9 -0
  24. package/dist/es/index.js +5223 -0
  25. package/dist/es/index.js.map +1 -0
  26. package/dist/es/services/BalanceService.d.ts +543 -0
  27. package/dist/es/services/BaseService.d.ts +357 -0
  28. package/dist/es/services/CovalentClient.d.ts +65 -0
  29. package/dist/es/services/NftService.d.ts +620 -0
  30. package/dist/es/services/PricingService.d.ts +88 -0
  31. package/dist/es/services/SecurityService.d.ts +158 -0
  32. package/dist/es/services/TransactionService.d.ts +457 -0
  33. package/dist/es/services/XykService.d.ts +686 -0
  34. package/dist/es/util/ApiHelpers.d.ts +5 -0
  35. package/dist/es/util/backoff.d.ts +11 -0
  36. package/dist/es/util/types/BalanceServiceTypes.d.ts +322 -0
  37. package/dist/es/util/types/BaseServiceTypes.d.ts +180 -0
  38. package/dist/es/util/types/GenericTypes.d.ts +96 -0
  39. package/dist/es/util/types/NftServiceTypes.d.ts +297 -0
  40. package/dist/es/util/types/PricingServiceTypes.d.ts +31 -0
  41. package/dist/es/util/types/SecurityServiceTypes.d.ts +121 -0
  42. package/dist/es/util/types/TransactionServiceTypes.d.ts +322 -0
  43. package/dist/es/util/types/XykServiceTypes.d.ts +479 -0
  44. package/dist/esm/index.d.ts +9 -0
  45. package/dist/esm/index.js +5223 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/services/BalanceService.d.ts +543 -0
  48. package/dist/esm/services/BaseService.d.ts +357 -0
  49. package/dist/esm/services/CovalentClient.d.ts +65 -0
  50. package/dist/esm/services/NftService.d.ts +620 -0
  51. package/dist/esm/services/PricingService.d.ts +88 -0
  52. package/dist/esm/services/SecurityService.d.ts +158 -0
  53. package/dist/esm/services/TransactionService.d.ts +457 -0
  54. package/dist/esm/services/XykService.d.ts +686 -0
  55. package/dist/esm/util/ApiHelpers.d.ts +5 -0
  56. package/dist/esm/util/backoff.d.ts +11 -0
  57. package/dist/esm/util/types/BalanceServiceTypes.d.ts +322 -0
  58. package/dist/esm/util/types/BaseServiceTypes.d.ts +180 -0
  59. package/dist/esm/util/types/GenericTypes.d.ts +96 -0
  60. package/dist/esm/util/types/NftServiceTypes.d.ts +297 -0
  61. package/dist/esm/util/types/PricingServiceTypes.d.ts +31 -0
  62. package/dist/esm/util/types/SecurityServiceTypes.d.ts +121 -0
  63. package/dist/esm/util/types/TransactionServiceTypes.d.ts +322 -0
  64. package/dist/esm/util/types/XykServiceTypes.d.ts +479 -0
  65. package/dist/index.d.ts +1 -1
  66. package/dist/index.js +9 -27
  67. package/dist/index.js.map +1 -1
  68. package/dist/services/BalanceService.d.ts +149 -11
  69. package/dist/services/BalanceService.js +300 -84
  70. package/dist/services/BalanceService.js.map +1 -1
  71. package/dist/services/BaseService.d.ts +46 -10
  72. package/dist/services/BaseService.js +199 -151
  73. package/dist/services/BaseService.js.map +1 -1
  74. package/dist/services/CovalentClient.d.ts +65 -0
  75. package/dist/services/CovalentClient.js +44 -0
  76. package/dist/services/CovalentClient.js.map +1 -0
  77. package/dist/services/NftService.d.ts +182 -16
  78. package/dist/services/NftService.js +490 -211
  79. package/dist/services/NftService.js.map +1 -1
  80. package/dist/services/PricingService.d.ts +8 -3
  81. package/dist/services/PricingService.js +44 -38
  82. package/dist/services/PricingService.js.map +1 -1
  83. package/dist/services/SecurityService.d.ts +71 -3
  84. package/dist/services/SecurityService.js +140 -32
  85. package/dist/services/SecurityService.js.map +1 -1
  86. package/dist/services/TransactionService.d.ts +58 -9
  87. package/dist/services/TransactionService.js +152 -103
  88. package/dist/services/TransactionService.js.map +1 -1
  89. package/dist/services/XykService.d.ts +85 -19
  90. package/dist/services/XykService.js +470 -291
  91. package/dist/services/XykService.js.map +1 -1
  92. package/dist/util/ApiHelpers.d.ts +2 -1
  93. package/dist/util/ApiHelpers.js +57 -36
  94. package/dist/util/ApiHelpers.js.map +1 -1
  95. package/dist/util/backoff.d.ts +5 -3
  96. package/dist/util/backoff.js +35 -13
  97. package/dist/util/backoff.js.map +1 -1
  98. package/dist/util/types/BalanceServiceTypes.d.ts +63 -0
  99. package/dist/util/types/BalanceServiceTypes.js +1 -2
  100. package/dist/util/types/BaseServiceTypes.d.ts +8 -0
  101. package/dist/util/types/BaseServiceTypes.js +1 -2
  102. package/dist/util/types/GenericTypes.d.ts +7 -0
  103. package/dist/util/types/GenericTypes.js +1 -2
  104. package/dist/util/types/NftServiceTypes.d.ts +86 -2
  105. package/dist/util/types/NftServiceTypes.js +1 -2
  106. package/dist/util/types/PricingServiceTypes.js +1 -2
  107. package/dist/util/types/SecurityServiceTypes.d.ts +51 -0
  108. package/dist/util/types/SecurityServiceTypes.js +1 -2
  109. package/dist/util/types/TransactionServiceTypes.d.ts +24 -2
  110. package/dist/util/types/TransactionServiceTypes.js +1 -2
  111. package/dist/util/types/XykServiceTypes.d.ts +20 -6
  112. package/dist/util/types/XykServiceTypes.js +1 -2
  113. package/package.json +19 -4
  114. package/dist/services/Client.d.ts +0 -29
  115. package/dist/services/Client.js +0 -30
  116. package/dist/services/Client.js.map +0 -1
@@ -0,0 +1,357 @@
1
+ import { Chain, Response } from "./CovalentClient";
2
+ declare class BlockResponse {
3
+ /** * The timestamp when the response was generated. Useful to show data staleness to users. */
4
+ updated_at: Date;
5
+ /** * The requested chain ID eg: `1`. */
6
+ chain_id: number;
7
+ /** * The requested chain name eg: `eth-mainnet`. */
8
+ chain_name: string;
9
+ /** * List of response items. */
10
+ items: Block[];
11
+ constructor(data: BlockResponse);
12
+ }
13
+ declare class Block {
14
+ /** * The block signed timestamp in UTC. */
15
+ signed_at: Date;
16
+ /** * The block height. */
17
+ height: number;
18
+ constructor(data: Block);
19
+ }
20
+ declare class ResolvedAddress {
21
+ /** * The timestamp when the response was generated. Useful to show data staleness to users. */
22
+ updated_at: Date;
23
+ /** * The requested chain ID eg: `1`. */
24
+ chain_id: number;
25
+ /** * The requested chain name eg: `eth-mainnet`. */
26
+ chain_name: string;
27
+ /** * List of response items. */
28
+ items: ResolvedAddressItem[];
29
+ constructor(data: ResolvedAddress);
30
+ }
31
+ declare class ResolvedAddressItem {
32
+ /** * The requested address. */
33
+ address: string;
34
+ name: string;
35
+ constructor(data: ResolvedAddressItem);
36
+ }
37
+ declare class GetLogsResponse {
38
+ /** * The timestamp when the response was generated. Useful to show data staleness to users. */
39
+ updated_at: Date;
40
+ /** * The requested chain ID eg: `1`. */
41
+ chain_id: number;
42
+ /** * The requested chain name eg: `eth-mainnet`. */
43
+ chain_name: string;
44
+ /** * List of response items. */
45
+ items: GetLogsEvent[];
46
+ constructor(data: GetLogsResponse);
47
+ }
48
+ declare class GetLogsEvent {
49
+ /** * The block signed timestamp in UTC. */
50
+ block_signed_at: Date;
51
+ /** * The height of the block. */
52
+ block_height: number;
53
+ /** * The hash of the block. */
54
+ block_hash: string;
55
+ /** * The offset is the position of the tx in the block. */
56
+ tx_offset: number;
57
+ /** * The offset is the position of the log entry within an event log. */
58
+ log_offset: number;
59
+ /** * The requested transaction hash. */
60
+ tx_hash: string;
61
+ /** * The log topics in raw data. */
62
+ raw_log_topics: string;
63
+ /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
64
+ sender_contract_decimals: number;
65
+ /** * The name of the sender. */
66
+ sender_name: string;
67
+ /** * The ticker symbol for the sender. This field is set by a developer and non-unique across a network. */
68
+ sender_contract_ticker_symbol: string;
69
+ /** * The address of the sender. */
70
+ sender_address: string;
71
+ /** * The label of the sender address. */
72
+ sender_address_label: string;
73
+ /** * The contract logo URL. */
74
+ sender_logo_url: string;
75
+ /** * The log events in raw. */
76
+ raw_log_data: string;
77
+ /** * The decoded item. */
78
+ decoded: DecodedItem;
79
+ constructor(data: GetLogsEvent);
80
+ }
81
+ declare class DecodedItem {
82
+ name: string;
83
+ signature: string;
84
+ params: Param[];
85
+ constructor(data: DecodedItem);
86
+ }
87
+ declare class Param {
88
+ name: string;
89
+ type: string;
90
+ indexed: boolean;
91
+ decoded: boolean;
92
+ value: string;
93
+ constructor(data: Param);
94
+ }
95
+ declare class LogEvent {
96
+ /** * The block signed timestamp in UTC. */
97
+ block_signed_at: Date;
98
+ /** * The height of the block. */
99
+ block_height: number;
100
+ /** * The offset is the position of the tx in the block. */
101
+ tx_offset: number;
102
+ /** * The offset is the position of the log entry within an event log. */
103
+ log_offset: number;
104
+ /** * The requested transaction hash. */
105
+ tx_hash: string;
106
+ /** * The log topics in raw data. */
107
+ raw_log_topics: string;
108
+ /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
109
+ sender_contract_decimals: number;
110
+ /** * The name of the sender. */
111
+ sender_name: string;
112
+ sender_contract_ticker_symbol: string;
113
+ /** * The address of the sender. */
114
+ sender_address: string;
115
+ /** * The label of the sender address. */
116
+ sender_address_label: string;
117
+ /** * The contract logo URL. */
118
+ sender_logo_url: string;
119
+ /** * The log events in raw. */
120
+ raw_log_data: string;
121
+ /** * The decoded item. */
122
+ decoded: DecodedItem;
123
+ constructor(data: LogEvent);
124
+ }
125
+ declare class AllChainsResponse {
126
+ /** * The timestamp when the response was generated. Useful to show data staleness to users. */
127
+ updated_at: Date;
128
+ /** * List of response items. */
129
+ items: ChainItem[];
130
+ constructor(data: AllChainsResponse);
131
+ }
132
+ declare class ChainItem {
133
+ /** * The chain name eg: `eth-mainnet`. */
134
+ name: string;
135
+ /** * The requested chain ID eg: `1`. */
136
+ chain_id: string;
137
+ /** * True if the chain is a testnet. */
138
+ is_testnet: boolean;
139
+ /** * Schema name to use for direct SQL. */
140
+ db_schema_name: string;
141
+ /** * The chains label eg: `Ethereum Mainnet`. */
142
+ label: string;
143
+ /** * The category label eg: `Ethereum`. */
144
+ category_label: string;
145
+ /** * A svg logo url for the chain. */
146
+ logo_url: string;
147
+ /** * A black png logo url for the chain. */
148
+ black_logo_url: string;
149
+ /** * A white png logo url for the chain. */
150
+ white_logo_url: string;
151
+ /** * True if the chain is an AppChain. */
152
+ is_appchain: boolean;
153
+ /** * The ChainItem the appchain is a part of. */
154
+ appchain_of: ChainItem;
155
+ constructor(data: ChainItem);
156
+ }
157
+ declare class AllChainsStatusResponse {
158
+ /** * The timestamp when the response was generated. Useful to show data staleness to users. */
159
+ updated_at: Date;
160
+ /** * List of response items. */
161
+ items: ChainStatusItem[];
162
+ constructor(data: AllChainsStatusResponse);
163
+ }
164
+ declare class ChainStatusItem {
165
+ /** * The chain name eg: `eth-mainnet`. */
166
+ name: string;
167
+ /** * The requested chain ID eg: `1`. */
168
+ chain_id: string;
169
+ /** * True if the chain is a testnet. */
170
+ is_testnet: boolean;
171
+ /** * A svg logo url for the chain. */
172
+ logo_url: boolean;
173
+ /** * A black png logo url for the chain. */
174
+ black_logo_url: string;
175
+ /** * A white png logo url for the chain. */
176
+ white_logo_url: string;
177
+ /** * True if the chain is an AppChain. */
178
+ is_appchain: boolean;
179
+ /** * The height of the lastest block available. */
180
+ synced_block_height: number;
181
+ /** * The signed timestamp of lastest block available. */
182
+ synced_blocked_signed_at: Date;
183
+ /** * True if the chain has data and ready for querying. */
184
+ has_data: boolean;
185
+ constructor(data: ChainStatusItem);
186
+ }
187
+ declare class ChainActivityResponse {
188
+ /** * The timestamp when the response was generated. Useful to show data staleness to users. */
189
+ updated_at: Date;
190
+ /** * The requested address. */
191
+ address: string;
192
+ /** * List of response items. */
193
+ items: ChainActivityEvent[];
194
+ constructor(data: ChainActivityResponse);
195
+ }
196
+ declare class ChainActivityEvent extends ChainItem {
197
+ /** * The timestamp when the address was last seen on the chain. */
198
+ last_seen_at: Date;
199
+ constructor(data: ChainActivityEvent);
200
+ }
201
+ export interface GetBlockHeightsQueryParamOpts {
202
+ /** * Number of items per page. Omitting this parameter defaults to 100. */
203
+ pageSize?: number;
204
+ /** * 0-indexed page number to begin pagination. */
205
+ pageNumber?: number;
206
+ }
207
+ export interface GetLogsQueryParamOpts {
208
+ /** * The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`. */
209
+ startingBlock?: number;
210
+ /** * The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`. */
211
+ endingBlock?: string;
212
+ /** * The address of the log events sender contract. */
213
+ address?: string;
214
+ /** * The topic hash(es) to retrieve logs with. */
215
+ topics?: string;
216
+ /** * The block hash to retrieve logs for. */
217
+ blockHash?: string;
218
+ /** * Omit decoded log events. */
219
+ skipDecode?: boolean;
220
+ }
221
+ export interface GetLogEventsByAddressQueryParamOpts {
222
+ /** * The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`. */
223
+ startingBlock?: number;
224
+ /** * The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`. */
225
+ endingBlock?: string;
226
+ /** * Number of items per page. Omitting this parameter defaults to 100. */
227
+ pageSize?: number;
228
+ /** * 0-indexed page number to begin pagination. */
229
+ pageNumber?: number;
230
+ }
231
+ export interface GetLogEventsByTopicHashQueryParamOpts {
232
+ /** * The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`. */
233
+ startingBlock?: number;
234
+ /** * The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`. */
235
+ endingBlock?: string;
236
+ /** * Additional topic hash(es) to filter on - padded & unpadded address fields are supported. Separate multiple topics with a comma. */
237
+ secondaryTopics?: string;
238
+ /** * Number of items per page. Omitting this parameter defaults to 100. */
239
+ pageSize?: number;
240
+ /** * 0-indexed page number to begin pagination. */
241
+ pageNumber?: number;
242
+ }
243
+ export interface GetAddressActivityQueryParamOpts {
244
+ /** * Set to true to include testnets with activity in the response. By default, it's set to `false` and only returns mainnet activity. */
245
+ testnets?: boolean;
246
+ }
247
+ /**
248
+ * Class A - Base
249
+ *
250
+ */
251
+ export declare class BaseService {
252
+ private apiKey;
253
+ private debug;
254
+ private threadCount;
255
+ private LIMIT;
256
+ constructor(apiKey: string, debug?: boolean, threadCount?: number);
257
+ /**
258
+ *
259
+ * Commonly used to fetch and render a single block for a block explorer.
260
+ *
261
+ * @param {string} chainName - The chain name eg: `eth-mainnet`.
262
+ * @param {string} blockHeight - The block height or `latest` for the latest block available.
263
+ *
264
+ */
265
+ getBlock(chainName: Chain, blockHeight: string): Promise<Response<BlockResponse>>;
266
+ /**
267
+ *
268
+ * Commonly used to resolve ENS, RNS and Unstoppable Domains addresses.
269
+ *
270
+ * @param {string} chainName - The chain name eg: `eth-mainnet`.
271
+ * @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
272
+ *
273
+ */
274
+ getResolvedAddress(chainName: Chain, walletAddress: string): Promise<Response<ResolvedAddress>>;
275
+ /**
276
+ *
277
+ * Commonly used to get all the block heights within a particular date range. Useful for rendering a display where you sort blocks by day.
278
+ *
279
+ * @param {string} chainName - The chain name eg: `eth-mainnet`.
280
+ * @param {string} startDate - The start date in YYYY-MM-DD format.
281
+ * @param {string} endDate - The end date in YYYY-MM-DD format.
282
+ * @param {GetBlockHeightsQueryParamOpts} queryParamOpts
283
+ * - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
284
+ * - `pageNumber`: 0-indexed page number to begin pagination.
285
+ *
286
+ */
287
+ getBlockHeights(chainName: Chain, startDate: string, endDate: string, queryParamOpts?: GetBlockHeightsQueryParamOpts): AsyncIterable<Block>;
288
+ /**
289
+ *
290
+ * Commonly used to get all the event logs of the latest block, or for a range of blocks. Includes sender contract metadata as well as decoded logs.
291
+ *
292
+ * @param {string} chainName - The chain name eg: `eth-mainnet`.
293
+ * @param {GetLogsQueryParamOpts} queryParamOpts
294
+ * - `startingBlock`: The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.
295
+ * - `endingBlock`: The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.
296
+ * - `address`: The address of the log events sender contract.
297
+ * - `topics`: The topic hash(es) to retrieve logs with.
298
+ * - `blockHash`: The block hash to retrieve logs for.
299
+ * - `skipDecode`: Omit decoded log events.
300
+ *
301
+ */
302
+ getLogs(chainName: Chain, queryParamOpts?: GetLogsQueryParamOpts): Promise<Response<GetLogsResponse>>;
303
+ /**
304
+ *
305
+ * Commonly used to get all the event logs emitted from a particular contract address. Useful for building dashboards that examine on-chain interactions.
306
+ *
307
+ * @param {string} chainName - The chain name eg: `eth-mainnet`.
308
+ * @param {string} contractAddress - The requested contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
309
+ * @param {GetLogEventsByAddressQueryParamOpts} queryParamOpts
310
+ * - `startingBlock`: The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.
311
+ * - `endingBlock`: The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.
312
+ * - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
313
+ * - `pageNumber`: 0-indexed page number to begin pagination.
314
+ *
315
+ */
316
+ getLogEventsByAddress(chainName: Chain, contractAddress: string, queryParamOpts?: GetLogEventsByAddressQueryParamOpts): AsyncIterable<LogEvent>;
317
+ /**
318
+ *
319
+ * Commonly used to get all event logs of the same topic hash across all contracts within a particular chain. Useful for cross-sectional analysis of event logs that are emitted on-chain.
320
+ *
321
+ * @param {string} chainName - The chain name eg: `eth-mainnet`.
322
+ * @param {string} topicHash - The endpoint will return event logs that contain this topic hash.
323
+ * @param {GetLogEventsByTopicHashQueryParamOpts} queryParamOpts
324
+ * - `startingBlock`: The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.
325
+ * - `endingBlock`: The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.
326
+ * - `secondaryTopics`: Additional topic hash(es) to filter on - padded & unpadded address fields are supported. Separate multiple topics with a comma.
327
+ * - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
328
+ * - `pageNumber`: 0-indexed page number to begin pagination.
329
+ *
330
+ */
331
+ getLogEventsByTopicHash(chainName: Chain, topicHash: string, queryParamOpts?: GetLogEventsByTopicHashQueryParamOpts): AsyncIterable<LogEvent>;
332
+ /**
333
+ *
334
+ * Commonly used to build internal dashboards for all supported chains on Covalent.
335
+ *
336
+ *
337
+ */
338
+ getAllChains(): Promise<Response<AllChainsResponse>>;
339
+ /**
340
+ *
341
+ * Commonly used to build internal status dashboards of all supported chains.
342
+ *
343
+ *
344
+ */
345
+ getAllChainStatus(): Promise<Response<AllChainsStatusResponse>>;
346
+ /**
347
+ *
348
+ * Commonly used to locate chains which an address is active on with a single API call.
349
+ *
350
+ * @param {string} walletAddress - The requested wallet address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
351
+ * @param {GetAddressActivityQueryParamOpts} queryParamOpts
352
+ * - `testnets`: Set to true to include testnets with activity in the response. By default, it's set to `false` and only returns mainnet activity.
353
+ *
354
+ */
355
+ getAddressActivity(walletAddress: string, queryParamOpts?: GetAddressActivityQueryParamOpts): Promise<Response<ChainActivityResponse>>;
356
+ }
357
+ export {};
@@ -0,0 +1,65 @@
1
+ import { SecurityService } from "./SecurityService";
2
+ import { BalanceService } from "./BalanceService";
3
+ import { BaseService } from "./BaseService";
4
+ import { NftService } from "./NftService";
5
+ import { PricingService } from "./PricingService";
6
+ import { TransactionService } from "./TransactionService";
7
+ import { XykService } from "./XykService";
8
+ export type Chain = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainnet" | "avalanche-mainnet" | "optimism-mainnet" | "fantom-mainnet" | "moonbeam-mainnet" | "moonbeam-moonriver" | "rsk-mainnet" | "arbitrum-mainnet" | "palm-mainnet" | "klaytn-mainnet" | "heco-mainnet" | "nervos-godwoken-mainnet" | "axie-mainnet" | "evmos-mainnet" | "astar-mainnet" | "iotex-mainnet" | "harmony-mainnet" | "cronos-mainnet" | "aurora-mainnet" | "emerald-paratime-mainnet" | "boba-mainnet" | "eth-goerli" | "matic-mumbai" | "avalanche-testnet" | "bsc-testnet" | "moonbeam-moonbase-alpha" | "rsk-testnet" | "arbitrum-goerli" | "fantom-testnet" | "palm-testnet" | "heco-testnet" | "nervos-godwoken-testnet" | "evmos-testnet" | "astar-shiden" | "iotex-testnet" | "harmony-testnet" | "aurora-testnet" | "scroll-sepolia-testnet" | "covalent-internal-network-v1" | "defi-kingdoms-mainnet" | "swimmer-mainnet" | "boba-avalanche-mainnet" | "boba-bobabeam-mainnet" | "boba-bnb-mainnet" | "boba-rinkeby-testnet" | "boba-bobabase-testnet" | "boba-bnb-testnet" | "boba-avalanche-testnet" | "klaytn-testnet" | "gather-mainnet" | "gather-testnet" | "skale-calypso" | "skale-mainnet" | "skale-razor" | "avalanche-dexalot-mainnet" | "skale-omnus" | "avalanche-dexalot-testnet" | "astar-shibuya" | "cronos-testnet" | "defi-kingdoms-testnet" | "metis-mainnet" | "metis-stardust" | "milkomeda-a1-mainnet" | "milkomeda-a1-devnet" | "milkomeda-c1-mainnet" | "milkomeda-c1-devnet" | "swimmer-testnet" | "solana-mainnet" | "skale-europa" | "meter-mainnet" | "meter-testnet" | "skale-exorde" | "boba-goerli" | "neon-testnet" | "skale-staging-uum" | "skale-staging-lcc" | "arbitrum-nova-mainnet" | "canto-mainnet" | "bittorrent-mainnet" | "bittorrent-testnet" | "flarenetworks-flare-mainnet" | "flarenetworks-flare-testnet" | "flarenetworks-canary-mainnet" | "flarenetworks-canary-testnet" | "kcc-mainnet" | "kcc-testnet" | "polygon-zkevm-testnet" | "linea-testnet" | "base-testnet" | "mantle-testnet" | "scroll-alpha-testnet" | "oasys-mainnet" | "oasys-testnet" | "findora-mainnet" | "findora-forge-testnet" | "sx-mainnet" | "oasis-sapphire-mainnet" | "oasis-sapphire-testnet" | "optimism-goerli" | "polygon-zkevm-mainnet" | "horizen-yuma-testnet" | "clv-parachain" | "energi-mainnet" | "energi-testnet" | "horizen-gobi-testnet" | "eth-sepolia" | "skale-nebula" | "skale-battleground" | "avalanche-meld-testnet" | "gunzilla-testnet" | "ultron-mainnet" | "ultron-testnet" | "zora-mainnet" | "zora-testnet" | "neon-mainnet" | "avalanche-shrapnel-mainnet" | "base-mainnet" | "mantle-mainnet" | "avalanche-loco-legends-mainnet" | "linea-mainnet" | "horizen-eon-mainnet" | "avalanche-numbers" | "avalanche-dos" | "avalanche-step-network" | "avalanche-xplus" | "avalanche-xanachain" | "avalanche-meld-mainnet" | "opside-public-zkevm" | "opside-law-chain" | "avalanche-shrapnel-testnet" | "avalanche-loco-legends-testnet" | "opside-cb-zkevm" | "opside-pre-alpha-testnet" | "opside-era7" | "opside-xthrill" | "zksync-mainnet" | "metis-testnet" | "zksync-testnet" | "avalanche-blitz-testnet" | "avalanche-d-chain-testnet" | "avalanche-green-dot-testnet" | "avalanche-mintara-testnet" | "avalanche-beam-testnet" | "bnb-meta-apes-mainnet" | "bnb-antimatter-mainnet" | "bnb-antimatter-testnet" | "bnb-opbnb-testnet" | "opside-debox" | "opside-jackbot" | "opside-odx-zkevm-testnet" | "opside-readon-content-testnet" | "opside-relation" | "opside-soquest-zkevm" | "opside-vip3" | "opside-zkmeta" | "avalanche-pulsar-testnet" | "avalanche-uptn" | "bnb-fncy-mainnet" | "zetachain-testnet" | "kinto-testnet" | "mode-testnet" | "loot-mainnet" | "bnb-fncy-testnet" | "manta-testnet" | "pgn-mainnet" | "pgn-testnet" | "gnosis-mainnet" | "gnosis-testnet" | "rollux-mainnet" | "rollux-testnet";
9
+ export type Quote = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
10
+ /**
11
+ * @deprecated
12
+ * Please use {@link Chain} going forward! This type will be removed after Oct 31, 2023.
13
+ * @see #Chain
14
+ * CovalentClient Class
15
+ */
16
+ export type Chains = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainnet" | "avalanche-mainnet" | "optimism-mainnet" | "fantom-mainnet" | "moonbeam-mainnet" | "moonbeam-moonriver" | "rsk-mainnet" | "arbitrum-mainnet" | "palm-mainnet" | "klaytn-mainnet" | "heco-mainnet" | "nervos-godwoken-mainnet" | "axie-mainnet" | "evmos-mainnet" | "astar-mainnet" | "iotex-mainnet" | "harmony-mainnet" | "cronos-mainnet" | "aurora-mainnet" | "emerald-paratime-mainnet" | "boba-mainnet" | "eth-goerli" | "matic-mumbai" | "avalanche-testnet" | "bsc-testnet" | "moonbeam-moonbase-alpha" | "rsk-testnet" | "arbitrum-goerli" | "fantom-testnet" | "palm-testnet" | "heco-testnet" | "nervos-godwoken-testnet" | "evmos-testnet" | "astar-shiden" | "iotex-testnet" | "harmony-testnet" | "aurora-testnet" | "scroll-sepolia-testnet" | "covalent-internal-network-v1" | "defi-kingdoms-mainnet" | "swimmer-mainnet" | "boba-avalanche-mainnet" | "boba-bobabeam-mainnet" | "boba-bnb-mainnet" | "boba-rinkeby-testnet" | "boba-bobabase-testnet" | "boba-bnb-testnet" | "boba-avalanche-testnet" | "klaytn-testnet" | "gather-mainnet" | "gather-testnet" | "skale-calypso" | "skale-mainnet" | "skale-razor" | "avalanche-dexalot-mainnet" | "skale-omnus" | "avalanche-dexalot-testnet" | "astar-shibuya" | "cronos-testnet" | "defi-kingdoms-testnet" | "metis-mainnet" | "metis-stardust" | "milkomeda-a1-mainnet" | "milkomeda-a1-devnet" | "milkomeda-c1-mainnet" | "milkomeda-c1-devnet" | "swimmer-testnet" | "solana-mainnet" | "skale-europa" | "meter-mainnet" | "meter-testnet" | "skale-exorde" | "boba-goerli" | "neon-testnet" | "skale-staging-uum" | "skale-staging-lcc" | "arbitrum-nova-mainnet" | "canto-mainnet" | "bittorrent-mainnet" | "bittorrent-testnet" | "flarenetworks-flare-mainnet" | "flarenetworks-flare-testnet" | "flarenetworks-canary-mainnet" | "flarenetworks-canary-testnet" | "kcc-mainnet" | "kcc-testnet" | "polygon-zkevm-testnet" | "linea-testnet" | "base-testnet" | "mantle-testnet" | "scroll-alpha-testnet" | "oasys-mainnet" | "oasys-testnet" | "findora-mainnet" | "findora-forge-testnet" | "sx-mainnet" | "oasis-sapphire-mainnet" | "oasis-sapphire-testnet" | "optimism-goerli" | "polygon-zkevm-mainnet" | "horizen-yuma-testnet" | "clv-parachain" | "energi-mainnet" | "energi-testnet" | "horizen-gobi-testnet" | "eth-sepolia" | "skale-nebula" | "skale-battleground" | "avalanche-meld-testnet" | "gunzilla-testnet" | "ultron-mainnet" | "ultron-testnet" | "zora-mainnet" | "zora-testnet" | "neon-mainnet" | "avalanche-shrapnel-mainnet" | "base-mainnet" | "mantle-mainnet" | "avalanche-loco-legends-mainnet" | "linea-mainnet" | "horizen-eon-mainnet" | "avalanche-numbers" | "avalanche-dos" | "avalanche-step-network" | "avalanche-xplus" | "avalanche-xanachain" | "avalanche-meld-mainnet" | "opside-public-zkevm" | "opside-law-chain" | "avalanche-shrapnel-testnet" | "avalanche-loco-legends-testnet" | "opside-cb-zkevm" | "opside-pre-alpha-testnet" | "opside-era7" | "opside-xthrill" | "zksync-mainnet" | "metis-testnet" | "zksync-testnet" | "avalanche-blitz-testnet" | "avalanche-d-chain-testnet" | "avalanche-green-dot-testnet" | "avalanche-mintara-testnet" | "avalanche-beam-testnet" | "bnb-meta-apes-mainnet" | "bnb-antimatter-mainnet" | "bnb-antimatter-testnet" | "bnb-opbnb-testnet" | "opside-debox" | "opside-jackbot" | "opside-odx-zkevm-testnet" | "opside-readon-content-testnet" | "opside-relation" | "opside-soquest-zkevm" | "opside-vip3" | "opside-zkmeta" | "avalanche-pulsar-testnet" | "avalanche-uptn" | "bnb-fncy-mainnet" | "zetachain-testnet" | "kinto-testnet" | "mode-testnet" | "loot-mainnet" | "bnb-fncy-testnet" | "manta-testnet" | "pgn-mainnet" | "pgn-testnet" | "gnosis-mainnet" | "gnosis-testnet" | "rollux-mainnet" | "rollux-testnet";
17
+ /**
18
+ * @deprecated
19
+ * Please use {@link Quote} going forward! This type will be removed after Oct 31, 2023.
20
+ * @see #Quote
21
+ * CovalentClient Class
22
+ */
23
+ export type Quotes = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
24
+ export declare const userAgent = "com.covalenthq.sdk.typescript/0.5.0";
25
+ export declare class Response<T> {
26
+ data: T;
27
+ error: boolean;
28
+ error_code: number;
29
+ error_message: string;
30
+ }
31
+ export interface CovalentClientSettings {
32
+ /** * Toggle to analyze the execution of each api request. */
33
+ debug?: boolean;
34
+ /** * The number of concurrent requests allowed. */
35
+ threadCount?: number;
36
+ }
37
+ /**
38
+ * CovalentClient Class
39
+ */
40
+ export declare class CovalentClient {
41
+ SecurityService: SecurityService;
42
+ BalanceService: BalanceService;
43
+ BaseService: BaseService;
44
+ NftService: NftService;
45
+ PricingService: PricingService;
46
+ TransactionService: TransactionService;
47
+ XykService: XykService;
48
+ constructor(apiKey: string, settings?: CovalentClientSettings);
49
+ }
50
+ /**
51
+ * @deprecated
52
+ * Please use {@link CovalentClient} going forward! This method will be removed after Oct 31, 2023.
53
+ * @see #CovalentClient
54
+ * CovalentClient Class
55
+ */
56
+ export declare class Client {
57
+ SecurityService: SecurityService;
58
+ BalanceService: BalanceService;
59
+ BaseService: BaseService;
60
+ NftService: NftService;
61
+ PricingService: PricingService;
62
+ TransactionService: TransactionService;
63
+ XykService: XykService;
64
+ constructor(apiKey: string, settings?: CovalentClientSettings);
65
+ }