@covalenthq/client-sdk 2.0.0 → 2.0.2

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 (51) hide show
  1. package/dist/cjs/index.d.ts +17 -0
  2. package/dist/cjs/index.js +2862 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/src/GoldRushClient.d.ts +20 -0
  5. package/dist/cjs/src/services/BalanceService.d.ts +125 -0
  6. package/dist/cjs/src/services/BaseService.d.ts +161 -0
  7. package/dist/cjs/src/services/NftService.d.ts +157 -0
  8. package/dist/cjs/src/services/PricingService.d.ts +25 -0
  9. package/dist/cjs/src/services/SecurityService.d.ts +28 -0
  10. package/dist/cjs/src/services/TransactionService.d.ts +128 -0
  11. package/dist/cjs/src/utils/functions/bigIntParser.d.ts +1 -0
  12. package/dist/cjs/src/utils/functions/calculatePrettyBalance.d.ts +1 -0
  13. package/dist/cjs/src/utils/functions/debugOutput.d.ts +2 -0
  14. package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +4 -0
  15. package/dist/cjs/src/utils/functions/execution.d.ts +11 -0
  16. package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +1 -0
  17. package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +7 -0
  18. package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +2 -0
  19. package/dist/cjs/src/utils/types/BalanceService.types.d.ts +442 -0
  20. package/dist/cjs/src/utils/types/BaseService.types.d.ts +326 -0
  21. package/dist/cjs/src/utils/types/Generic.types.d.ts +477 -0
  22. package/dist/cjs/src/utils/types/NftService.types.d.ts +273 -0
  23. package/dist/cjs/src/utils/types/PricingService.types.d.ts +39 -0
  24. package/dist/cjs/src/utils/types/SecurityService.types.d.ts +122 -0
  25. package/dist/cjs/src/utils/types/TransactionService.types.d.ts +474 -0
  26. package/dist/esm/index.d.ts +17 -0
  27. package/dist/esm/index.js +2854 -0
  28. package/dist/esm/index.js.map +1 -0
  29. package/dist/esm/src/GoldRushClient.d.ts +20 -0
  30. package/dist/esm/src/services/BalanceService.d.ts +125 -0
  31. package/dist/esm/src/services/BaseService.d.ts +161 -0
  32. package/dist/esm/src/services/NftService.d.ts +157 -0
  33. package/dist/esm/src/services/PricingService.d.ts +25 -0
  34. package/dist/esm/src/services/SecurityService.d.ts +28 -0
  35. package/dist/esm/src/services/TransactionService.d.ts +128 -0
  36. package/dist/esm/src/utils/functions/bigIntParser.d.ts +1 -0
  37. package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +1 -0
  38. package/dist/esm/src/utils/functions/debugOutput.d.ts +2 -0
  39. package/dist/esm/src/utils/functions/endpointGenerator.d.ts +4 -0
  40. package/dist/esm/src/utils/functions/execution.d.ts +11 -0
  41. package/dist/esm/src/utils/functions/isValidApiKey.d.ts +1 -0
  42. package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +7 -0
  43. package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +2 -0
  44. package/dist/esm/src/utils/types/BalanceService.types.d.ts +442 -0
  45. package/dist/esm/src/utils/types/BaseService.types.d.ts +326 -0
  46. package/dist/esm/src/utils/types/Generic.types.d.ts +477 -0
  47. package/dist/esm/src/utils/types/NftService.types.d.ts +273 -0
  48. package/dist/esm/src/utils/types/PricingService.types.d.ts +39 -0
  49. package/dist/esm/src/utils/types/SecurityService.types.d.ts +122 -0
  50. package/dist/esm/src/utils/types/TransactionService.types.d.ts +474 -0
  51. package/package.json +31 -18
@@ -0,0 +1,477 @@
1
+ export declare enum ChainName {
2
+ ETH_MAINNET = "eth-mainnet",
3
+ ETH_GOERLI = "eth-goerli",
4
+ ETH_SEPOLIA = "eth-sepolia",
5
+ ETH_HOLESKY = "eth-holesky",
6
+ MATIC_MAINNET = "matic-mainnet",
7
+ MATIC_MUMBAI = "matic-mumbai",
8
+ AVALANCHE_MAINNET = "avalanche-mainnet",
9
+ AVALANCHE_TESTNET = "avalanche-testnet",
10
+ BSC_MAINNET = "bsc-mainnet",
11
+ BSC_TESTNET = "bsc-testnet",
12
+ MOONBEAM_MAINNET = "moonbeam-mainnet",
13
+ MOONBEAM_MOONBASE_ALPHA = "moonbeam-moonbase-alpha",
14
+ MOONBEAM_MOONRIVER = "moonbeam-moonriver",
15
+ RSK_MAINNET = "rsk-mainnet",
16
+ RSK_TESTNET = "rsk-testnet",
17
+ ARBITRUM_MAINNET = "arbitrum-mainnet",
18
+ ARBITRUM_NOVA_MAINNET = "arbitrum-nova-mainnet",
19
+ ARBITRUM_SEPOLIA = "arbitrum-sepolia",
20
+ FANTOM_MAINNET = "fantom-mainnet",
21
+ FANTOM_TESTNET = "fantom-testnet",
22
+ PALM_MAINNET = "palm-mainnet",
23
+ PALM_TESTNET = "palm-testnet",
24
+ BTC_MAINNET = "btc-mainnet",
25
+ SOLANA_MAINNET = "solana-mainnet",
26
+ AXIE_MAINNET = "axie-mainnet",
27
+ OPTIMISM_MAINNET = "optimism-mainnet",
28
+ OPTIMISM_SEPOLIA = "optimism-sepolia",
29
+ EVMOS_MAINNET = "evmos-mainnet",
30
+ EVMOS_TESTNET = "evmos-testnet",
31
+ HARMONY_MAINNET = "harmony-mainnet",
32
+ HARMONY_TESTNET = "harmony-testnet",
33
+ CRONOS_MAINNET = "cronos-mainnet",
34
+ CRONOS_TESTNET = "cronos-testnet",
35
+ CRONOS_ZKEVM_TESTNET = "cronos-zkevm-testnet",
36
+ AURORA_MAINNET = "aurora-mainnet",
37
+ AURORA_TESTNET = "aurora-testnet",
38
+ EMERALD_PARATIME_MAINNET = "emerald-paratime-mainnet",
39
+ DEFI_KINGDOMS_MAINNET = "defi-kingdoms-mainnet",
40
+ DEFI_KINGDOMS_TESTNET = "defi-kingdoms-testnet",
41
+ BOBA_MAINNET = "boba-mainnet",
42
+ BOBA_BNB_MAINNET = "boba-bnb-mainnet",
43
+ BOBA_BNB_TESTNET = "boba-bnb-testnet",
44
+ SCROLL_SEPOLIA_TESTNET = "scroll-sepolia-testnet",
45
+ METIS_MAINNET = "metis-mainnet",
46
+ METIS_STARDUST = "metis-stardust",
47
+ AVALANCHE_DEXALOT_MAINNET = "avalanche-dexalot-mainnet",
48
+ AVALANCHE_DEXALOT_TESTNET = "avalanche-dexalot-testnet",
49
+ AVALANCHE_SHRAPNEL_MAINNET = "avalanche-shrapnel-mainnet",
50
+ AVALANCHE_NUMBERS = "avalanche-numbers",
51
+ AVALANCHE_DOS = "avalanche-dos",
52
+ AVALANCHE_XPLUS = "avalanche-xplus",
53
+ AVALANCHE_XANACHAIN = "avalanche-xanachain",
54
+ AVALANCHE_STEP_NETWORK = "avalanche-step-network",
55
+ AVALANCHE_SHRAPNEL_TESTNET = "avalanche-shrapnel-testnet",
56
+ AVALANCHE_BEAM_TESTNET = "avalanche-beam-testnet",
57
+ AVALANCHE_BLITZ_TESTNET = "avalanche-blitz-testnet",
58
+ AVALANCHE_MINTARA_TESTNET = "avalanche-mintara-testnet",
59
+ AVALANCHE_GREEN_DOT_TESTNET = "avalanche-green-dot-testnet",
60
+ AVALANCHE_PULSAR_TESTNET = "avalanche-pulsar-testnet",
61
+ AVALANCHE_UPTN = "avalanche-uptn",
62
+ AVALANCHE_AVACLOUD_TESTNET = "avalanche-avacloud-testnet",
63
+ AVALANCHE_BEAM_MAINNET = "avalanche-beam-mainnet",
64
+ AVALANCHE_BULLETIN_TESTNET = "avalanche-bulletin-testnet",
65
+ AVALANCHE_CONDUIT_TESTNET = "avalanche-conduit-testnet",
66
+ AVALANCHE_HERO_TESTNET = "avalanche-hero-testnet",
67
+ AVALANCHE_HUBBLE_EXCHANGE_TESTNET = "avalanche-hubble-exchange-testnet",
68
+ AVALANCHE_KIWI_TESTNET = "avalanche-kiwi-testnet",
69
+ AVALANCHE_MIHO_TESTNET = "avalanche-miho-testnet",
70
+ AVALANCHE_MONDRIAN_TESTNET = "avalanche-mondrian-testnet",
71
+ AVALANCHE_NMAC_TESTNET = "avalanche-nmac-testnet",
72
+ AVALANCHE_ORDERLY_TESTNET = "avalanche-orderly-testnet",
73
+ AVALANCHE_THIRDWEB_TESTNET = "avalanche-thirdweb-testnet",
74
+ AVALANCHE_WAGMI_TESTNET = "avalanche-wagmi-testnet",
75
+ AVALANCHE_PLAYA3ULL_TESTNET = "avalanche-playa3ull-testnet",
76
+ AVALANCHE_MIRAI_TESTNET = "avalanche-mirai-testnet",
77
+ AVALANCHE_AMPLIFY_TESTNET = "avalanche-amplify-testnet",
78
+ AVALANCHE_LT0_TESTNET = "avalanche-lt0-testnet",
79
+ AVALANCHE_LT5_TESTNET = "avalanche-lt5-testnet",
80
+ AVALANCHE_HUBBLE_EXCHANGE_MAINNET = "avalanche-hubble-exchange-mainnet",
81
+ METER_MAINNET = "meter-mainnet",
82
+ METER_TESTNET = "meter-testnet",
83
+ MILKOMEDA_A1_MAINNET = "milkomeda-a1-mainnet",
84
+ MILKOMEDA_C1_MAINNET = "milkomeda-c1-mainnet",
85
+ MILKOMEDA_C1_DEVNET = "milkomeda-c1-devnet",
86
+ CANTO_MAINNET = "canto-mainnet",
87
+ FLARENETWORKS_FLARE_MAINNET = "flarenetworks-flare-mainnet",
88
+ FLARENETWORKS_FLARE_TESTNET = "flarenetworks-flare-testnet",
89
+ FLARENETWORKS_CANARY_MAINNET = "flarenetworks-canary-mainnet",
90
+ FLARENETWORKS_CANARY_TESTNET = "flarenetworks-canary-testnet",
91
+ KCC_MAINNET = "kcc-mainnet",
92
+ KCC_TESTNET = "kcc-testnet",
93
+ LINEA_MAINNET = "linea-mainnet",
94
+ POLYGON_ZKEVM_MAINNET = "polygon-zkevm-mainnet",
95
+ LINEA_SEPOLIA_TESTNET = "linea-sepolia-testnet",
96
+ LINEA_GOERLI_TESTNET = "linea-goerli-testnet",
97
+ POLYGON_ZKEVM_TESTNET = "polygon-zkevm-testnet",
98
+ POLYGON_AMOY_TESTNET = "polygon-amoy-testnet",
99
+ MANTLE_MAINNET = "mantle-mainnet",
100
+ MANTLE_SEPOLIA_TESTNET = "mantle-sepolia-testnet",
101
+ POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
102
+ BASE_MAINNET = "base-mainnet",
103
+ BASE_TESTNET = "base-testnet",
104
+ BASE_SEPOLIA_TESTNET = "base-sepolia-testnet",
105
+ OASYS_MAINNET = "oasys-mainnet",
106
+ OASYS_TESTNET = "oasys-testnet",
107
+ SX_MAINNET = "sx-mainnet",
108
+ LUMOZ_PUBLIC_ZKSYNC_V2 = "lumoz-public-zksync-v2",
109
+ LUMOZ_STARK_SPORT = "lumoz-stark-sport",
110
+ OASIS_SAPPHIRE_MAINNET = "oasis-sapphire-mainnet",
111
+ OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
112
+ SYNDR_TESTNET = "syndr-testnet",
113
+ XAI_MAINNET = "xai-mainnet",
114
+ CELO_MAINNET = "celo-mainnet",
115
+ X1_MAINNET = "x1-mainnet",
116
+ CROSSFI_EVM_TESTNET = "crossfi-evm-testnet",
117
+ HORIZEN_EON_MAINNET = "horizen-eon-mainnet",
118
+ HORIZEN_GOBI_TESTNET = "horizen-gobi-testnet",
119
+ FRAXTAL_MAINNET = "fraxtal-mainnet",
120
+ APECHAIN_TESTNET = "apechain-testnet",
121
+ LISK_MAINNET = "lisk-mainnet",
122
+ REDSTONE_MAINNET = "redstone-mainnet",
123
+ SEI_MAINNET = "sei-mainnet",
124
+ AVALANCHE_MELD_TESTNET = "avalanche-meld-testnet",
125
+ AVALANCHE_MELD_MAINNET = "avalanche-meld-mainnet",
126
+ GUNZILLA_TESTNET = "gunzilla-testnet",
127
+ ULTRON_MAINNET = "ultron-mainnet",
128
+ ULTRON_TESTNET = "ultron-testnet",
129
+ ZORA_MAINNET = "zora-mainnet",
130
+ ZORA_SEPOLIA_TESTNET = "zora-sepolia-testnet",
131
+ LISK_SEPOLIA_TESTNET = "lisk-sepolia-testnet",
132
+ OPSIDE_READON_CONTENT_TESTNET = "opside-readon-content-testnet",
133
+ ZKSYNC_MAINNET = "zksync-mainnet",
134
+ ZKSYNC_SEPOLIA_TESTNET = "zksync-sepolia-testnet",
135
+ BNB_ANTIMATTER_TESTNET = "bnb-antimatter-testnet",
136
+ BNB_META_APES_MAINNET = "bnb-meta-apes-mainnet",
137
+ BNB_FNCY_MAINNET = "bnb-fncy-mainnet",
138
+ BNB_OPBNB_TESTNET = "bnb-opbnb-testnet",
139
+ BNB_FNCY_TESTNET = "bnb-fncy-testnet",
140
+ BNB_OPBNB_MAINNET = "bnb-opbnb-mainnet",
141
+ ZETACHAIN_TESTNET = "zetachain-testnet",
142
+ ZETACHAIN_MAINNET = "zetachain-mainnet",
143
+ MODE_TESTNET = "mode-testnet",
144
+ MODE_MAINNET = "mode-mainnet",
145
+ KINTO_TESTNET = "kinto-testnet",
146
+ LOOT_MAINNET = "loot-mainnet",
147
+ PGN_MAINNET = "pgn-mainnet",
148
+ PGN_TESTNET = "pgn-testnet",
149
+ MANTA_SEPOLIA_TESTNET = "manta-sepolia-testnet",
150
+ ROLLUX_MAINNET = "rollux-mainnet",
151
+ ROLLUX_TESTNET = "rollux-testnet",
152
+ GNOSIS_MAINNET = "gnosis-mainnet",
153
+ GNOSIS_TESTNET = "gnosis-testnet",
154
+ TELOS_MAINNET = "telos-mainnet",
155
+ TELOS_TESTNET = "telos-testnet",
156
+ TOMOCHAIN_MAINNET = "tomochain-mainnet",
157
+ TOMOCHAIN_TESTNET = "tomochain-testnet",
158
+ TAIKO_MAINNET = "taiko-mainnet",
159
+ TAIKO_HEKLA_TESTNET = "taiko-hekla-testnet",
160
+ MERLIN_MAINNET = "merlin-mainnet",
161
+ MERLIN_TESTNET = "merlin-testnet",
162
+ BLAST_MAINNET = "blast-mainnet",
163
+ MOVEMENT_MEVM_TESTNET = "movement-mevm-testnet",
164
+ SCROLL_MAINNET = "scroll-mainnet",
165
+ COVALENT_INTERNAL_NETWORK_V1 = "covalent-internal-network-v1"
166
+ }
167
+ export declare enum ChainID {
168
+ ETH_MAINNET = 1,
169
+ ETH_GOERLI = 5,
170
+ ETH_SEPOLIA = 11155111,
171
+ ETH_HOLESKY = 17000,
172
+ MATIC_MAINNET = 137,
173
+ MATIC_MUMBAI = 80001,
174
+ AVALANCHE_MAINNET = 43114,
175
+ AVALANCHE_TESTNET = 43113,
176
+ BSC_MAINNET = 56,
177
+ BSC_TESTNET = 97,
178
+ MOONBEAM_MAINNET = 1284,
179
+ MOONBEAM_MOONBASE_ALPHA = 1287,
180
+ MOONBEAM_MOONRIVER = 1285,
181
+ RSK_MAINNET = 30,
182
+ RSK_TESTNET = 31,
183
+ ARBITRUM_MAINNET = 42161,
184
+ ARBITRUM_NOVA_MAINNET = 42170,
185
+ ARBITRUM_SEPOLIA = 421614,
186
+ FANTOM_MAINNET = 250,
187
+ FANTOM_TESTNET = 4002,
188
+ PALM_MAINNET = 11297108109,
189
+ PALM_TESTNET = 11297108099,
190
+ BTC_MAINNET = 20090103,
191
+ SOLANA_MAINNET = 1399811149,
192
+ AXIE_MAINNET = 2020,
193
+ OPTIMISM_MAINNET = 10,
194
+ OPTIMISM_SEPOLIA = 11155420,
195
+ EVMOS_MAINNET = 9001,
196
+ EVMOS_TESTNET = 9000,
197
+ HARMONY_MAINNET = 1666600000,
198
+ HARMONY_TESTNET = 1666700000,
199
+ CRONOS_MAINNET = 25,
200
+ CRONOS_TESTNET = 338,
201
+ CRONOS_ZKEVM_TESTNET = 282,
202
+ AURORA_MAINNET = 1313161554,
203
+ AURORA_TESTNET = 1313161555,
204
+ EMERALD_PARATIME_MAINNET = 42262,
205
+ DEFI_KINGDOMS_MAINNET = 53935,
206
+ DEFI_KINGDOMS_TESTNET = 335,
207
+ BOBA_MAINNET = 288,
208
+ BOBA_BNB_MAINNET = 56288,
209
+ BOBA_BNB_TESTNET = 9728,
210
+ SCROLL_SEPOLIA_TESTNET = 534351,
211
+ METIS_MAINNET = 1088,
212
+ METIS_STARDUST = 588,
213
+ AVALANCHE_DEXALOT_MAINNET = 432204,
214
+ AVALANCHE_DEXALOT_TESTNET = 432201,
215
+ AVALANCHE_SHRAPNEL_MAINNET = 2044,
216
+ AVALANCHE_NUMBERS = 10507,
217
+ AVALANCHE_DOS = 7979,
218
+ AVALANCHE_XPLUS = 1228,
219
+ AVALANCHE_XANACHAIN = 8888,
220
+ AVALANCHE_STEP_NETWORK = 1234,
221
+ AVALANCHE_SHRAPNEL_TESTNET = 2038,
222
+ AVALANCHE_BEAM_TESTNET = 13337,
223
+ AVALANCHE_BLITZ_TESTNET = 1343,
224
+ AVALANCHE_MINTARA_TESTNET = 1079,
225
+ AVALANCHE_GREEN_DOT_TESTNET = 6765897100,
226
+ AVALANCHE_PULSAR_TESTNET = 431234,
227
+ AVALANCHE_UPTN = 6119,
228
+ AVALANCHE_AVACLOUD_TESTNET = 152703,
229
+ AVALANCHE_BEAM_MAINNET = 4337,
230
+ AVALANCHE_BULLETIN_TESTNET = 78431,
231
+ AVALANCHE_CONDUIT_TESTNET = 78432,
232
+ AVALANCHE_HERO_TESTNET = 17772,
233
+ AVALANCHE_HUBBLE_EXCHANGE_TESTNET = 321123,
234
+ AVALANCHE_KIWI_TESTNET = 2037,
235
+ AVALANCHE_MIHO_TESTNET = 360163,
236
+ AVALANCHE_MONDRIAN_TESTNET = 179188,
237
+ AVALANCHE_NMAC_TESTNET = 7777,
238
+ AVALANCHE_ORDERLY_TESTNET = 986532,
239
+ AVALANCHE_THIRDWEB_TESTNET = 894538,
240
+ AVALANCHE_WAGMI_TESTNET = 11111,
241
+ AVALANCHE_PLAYA3ULL_TESTNET = 3012,
242
+ AVALANCHE_MIRAI_TESTNET = 2195,
243
+ AVALANCHE_AMPLIFY_TESTNET = 78430,
244
+ AVALANCHE_LT0_TESTNET = 31330,
245
+ AVALANCHE_LT5_TESTNET = 31335,
246
+ AVALANCHE_HUBBLE_EXCHANGE_MAINNET = 1992,
247
+ METER_MAINNET = 82,
248
+ METER_TESTNET = 83,
249
+ MILKOMEDA_A1_MAINNET = 2002,
250
+ MILKOMEDA_C1_MAINNET = 2001,
251
+ MILKOMEDA_C1_DEVNET = 200101,
252
+ CANTO_MAINNET = 7700,
253
+ FLARENETWORKS_FLARE_MAINNET = 14,
254
+ FLARENETWORKS_FLARE_TESTNET = 114,
255
+ FLARENETWORKS_CANARY_MAINNET = 19,
256
+ FLARENETWORKS_CANARY_TESTNET = 16,
257
+ KCC_MAINNET = 321,
258
+ KCC_TESTNET = 322,
259
+ LINEA_MAINNET = 59144,
260
+ POLYGON_ZKEVM_MAINNET = 1101,
261
+ LINEA_SEPOLIA_TESTNET = 59141,
262
+ LINEA_GOERLI_TESTNET = 59140,
263
+ POLYGON_ZKEVM_TESTNET = 1422,
264
+ POLYGON_AMOY_TESTNET = 80002,
265
+ MANTLE_MAINNET = 5000,
266
+ MANTLE_SEPOLIA_TESTNET = 5003,
267
+ POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
268
+ BASE_MAINNET = 8453,
269
+ BASE_TESTNET = 84531,
270
+ BASE_SEPOLIA_TESTNET = 84532,
271
+ OASYS_MAINNET = 248,
272
+ OASYS_TESTNET = 9372,
273
+ SX_MAINNET = 416,
274
+ LUMOZ_PUBLIC_ZKSYNC_V2 = 12027,
275
+ LUMOZ_STARK_SPORT = 12029,
276
+ OASIS_SAPPHIRE_MAINNET = 23294,
277
+ OASIS_SAPPHIRE_TESTNET = 23295,
278
+ SYNDR_TESTNET = 412346,
279
+ XAI_MAINNET = 660279,
280
+ CELO_MAINNET = 42220,
281
+ X1_MAINNET = 196,
282
+ CROSSFI_EVM_TESTNET = 8545,
283
+ HORIZEN_EON_MAINNET = 7332,
284
+ HORIZEN_GOBI_TESTNET = 1663,
285
+ FRAXTAL_MAINNET = 252,
286
+ APECHAIN_TESTNET = 1798,
287
+ LISK_MAINNET = 1135,
288
+ REDSTONE_MAINNET = 690,
289
+ SEI_MAINNET = 1329,
290
+ AVALANCHE_MELD_TESTNET = 222000222,
291
+ AVALANCHE_MELD_MAINNET = 333000333,
292
+ GUNZILLA_TESTNET = 49321,
293
+ ULTRON_MAINNET = 1231,
294
+ ULTRON_TESTNET = 1230,
295
+ ZORA_MAINNET = 7777777,
296
+ ZORA_SEPOLIA_TESTNET = 999999999,
297
+ LISK_SEPOLIA_TESTNET = 4202,
298
+ OPSIDE_READON_CONTENT_TESTNET = 12015,
299
+ ZKSYNC_MAINNET = 324,
300
+ ZKSYNC_SEPOLIA_TESTNET = 300,
301
+ BNB_ANTIMATTER_TESTNET = 20221,
302
+ BNB_META_APES_MAINNET = 16350,
303
+ BNB_FNCY_MAINNET = 73,
304
+ BNB_OPBNB_TESTNET = 5611,
305
+ BNB_FNCY_TESTNET = 923018,
306
+ BNB_OPBNB_MAINNET = 204,
307
+ ZETACHAIN_TESTNET = 7001,
308
+ ZETACHAIN_MAINNET = 7000,
309
+ MODE_TESTNET = 919,
310
+ MODE_MAINNET = 34443,
311
+ KINTO_TESTNET = 42888,
312
+ LOOT_MAINNET = 5151706,
313
+ PGN_MAINNET = 424,
314
+ PGN_TESTNET = 58008,
315
+ MANTA_SEPOLIA_TESTNET = 3441006,
316
+ ROLLUX_MAINNET = 570,
317
+ ROLLUX_TESTNET = 57000,
318
+ GNOSIS_MAINNET = 100,
319
+ GNOSIS_TESTNET = 10200,
320
+ TELOS_MAINNET = 40,
321
+ TELOS_TESTNET = 41,
322
+ TOMOCHAIN_MAINNET = 88,
323
+ TOMOCHAIN_TESTNET = 89,
324
+ TAIKO_MAINNET = 167000,
325
+ TAIKO_HEKLA_TESTNET = 167009,
326
+ MERLIN_MAINNET = 4200,
327
+ MERLIN_TESTNET = 686868,
328
+ BLAST_MAINNET = 81457,
329
+ MOVEMENT_MEVM_TESTNET = 336,
330
+ SCROLL_MAINNET = 534352,
331
+ COVALENT_INTERNAL_NETWORK_V1 = 1131378225
332
+ }
333
+ export type Chain = ChainID | ChainName;
334
+ export type Source = "Ponder" | "GoldRush" | "Viem";
335
+ export type Quote = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
336
+ export interface Pagination {
337
+ /** * True is there is another page. */
338
+ has_more: boolean;
339
+ /** * The requested page number. */
340
+ page_number: number;
341
+ /** * The requested number of items on the current page. */
342
+ page_size: number;
343
+ /** * The total number of items across all pages for this request. */
344
+ total_count: number;
345
+ }
346
+ export interface PaginationLinks {
347
+ /** * URL link to the next page. */
348
+ prev: string;
349
+ /** * URL link to the previous page. */
350
+ next: string;
351
+ }
352
+ export interface NftCollectionAttribute {
353
+ trait_type: string;
354
+ value: string;
355
+ }
356
+ export interface NftData {
357
+ /** * The token's id. */
358
+ token_id: bigint;
359
+ token_url: string;
360
+ /** * The original minter. */
361
+ original_owner: string;
362
+ /** * The current holder of this NFT. */
363
+ current_owner: string;
364
+ external_data: NftExternalData;
365
+ /** * If `true`, the asset data is available from the Covalent CDN. */
366
+ asset_cached: boolean;
367
+ /** * If `true`, the image data is available from the Covalent CDN. */
368
+ image_cached: boolean;
369
+ }
370
+ export interface NftExternalData {
371
+ name: string;
372
+ description: string;
373
+ asset_url: string;
374
+ asset_file_extension: string;
375
+ asset_mime_type: string;
376
+ asset_size_bytes: string;
377
+ image: string;
378
+ image_256: string;
379
+ image_512: string;
380
+ image_1024: string;
381
+ animation_url: string;
382
+ external_url: string;
383
+ attributes: NftCollectionAttribute[];
384
+ }
385
+ export interface DecodedItem {
386
+ name: string;
387
+ signature: string;
388
+ params: Param[];
389
+ }
390
+ export interface Param {
391
+ name: string;
392
+ type: string;
393
+ indexed: boolean;
394
+ decoded: boolean;
395
+ value: string;
396
+ }
397
+ export interface LogEvent {
398
+ /** * The block signed timestamp in UTC. */
399
+ block_signed_at: Date;
400
+ /** * The height of the block. */
401
+ block_height: number;
402
+ /** * The offset is the position of the tx in the block. */
403
+ tx_offset: number;
404
+ /** * The offset is the position of the log entry within an event log. */
405
+ log_offset: number;
406
+ /** * The requested transaction hash. */
407
+ tx_hash: string;
408
+ /** * The log topics in raw data. */
409
+ raw_log_topics: string[];
410
+ /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
411
+ sender_contract_decimals: number;
412
+ /** * The name of the sender. */
413
+ sender_name: string;
414
+ sender_contract_ticker_symbol: string;
415
+ /** * The address of the sender. */
416
+ sender_address: string;
417
+ /** * The label of the sender address. */
418
+ sender_address_label: string;
419
+ /** * The contract logo URL. */
420
+ sender_logo_url: string;
421
+ /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
422
+ supports_erc: string[];
423
+ /** * The address of the deployed UniswapV2 like factory contract for this DEX. */
424
+ sender_factory_address: string;
425
+ /** * The log events in raw. */
426
+ raw_log_data: string;
427
+ /** * The decoded item. */
428
+ decoded: DecodedItem;
429
+ }
430
+ export interface ContractMetadata {
431
+ /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
432
+ contract_decimals: number;
433
+ /** * The string returned by the `name()` method. */
434
+ contract_name: string;
435
+ /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
436
+ contract_ticker_symbol: string;
437
+ /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
438
+ contract_address: string;
439
+ /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
440
+ supports_erc: string[];
441
+ /** * The contract logo URL. */
442
+ logo_url: string;
443
+ }
444
+ export interface Explorer {
445
+ /** * The name of the explorer. */
446
+ label: string;
447
+ /** * The URL of the explorer. */
448
+ url: string;
449
+ }
450
+ export interface LogoUrls {
451
+ /** * The token logo URL. */
452
+ token_logo_url: string;
453
+ /** * The protocol logo URL. */
454
+ protocol_logo_url: string;
455
+ /** * The chain logo URL. */
456
+ chain_logo_url: string;
457
+ }
458
+ export declare class GoldRushResponse<T> {
459
+ data: T;
460
+ error: boolean;
461
+ error_code: number | string;
462
+ error_message: string;
463
+ }
464
+ export interface GoldRushClientSettings {
465
+ /** * Toggle to analyze the execution of each api request. */
466
+ debug?: boolean;
467
+ /** * The number of concurrent requests allowed. */
468
+ threadCount?: number;
469
+ /** Toggle to turn on and off retry logic */
470
+ enableRetry?: boolean;
471
+ /** Set the retry logic count */
472
+ maxRetries?: number;
473
+ /** Set the retry delay in ms */
474
+ retryDelay?: number;
475
+ /** Set the source of the usage */
476
+ source?: Source | string;
477
+ }