@covalenthq/client-sdk 2.2.0 → 2.2.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 (63) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +17 -6
  3. package/dist/cjs/index.d.ts +2 -0
  4. package/dist/cjs/index.js +2885 -2646
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/src/GoldRushClient.d.ts +2 -0
  7. package/dist/cjs/src/services/AllChainsService.d.ts +40 -3
  8. package/dist/cjs/src/services/BalanceService.d.ts +0 -0
  9. package/dist/cjs/src/services/BaseService.d.ts +7 -5
  10. package/dist/cjs/src/services/BitcoinService.d.ts +40 -0
  11. package/dist/cjs/src/services/NftService.d.ts +0 -0
  12. package/dist/cjs/src/services/PricingService.d.ts +0 -0
  13. package/dist/cjs/src/services/SecurityService.d.ts +0 -0
  14. package/dist/cjs/src/services/TransactionService.d.ts +0 -0
  15. package/dist/cjs/src/utils/functions/bigIntParser.d.ts +0 -0
  16. package/dist/cjs/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
  17. package/dist/cjs/src/utils/functions/debugOutput.d.ts +0 -0
  18. package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +0 -0
  19. package/dist/cjs/src/utils/functions/execution.d.ts +0 -0
  20. package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +0 -0
  21. package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +0 -0
  22. package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +0 -0
  23. package/dist/cjs/src/utils/functions/timestamp-parser.d.ts +0 -0
  24. package/dist/cjs/src/utils/types/AllChainService.types.d.ts +96 -5
  25. package/dist/cjs/src/utils/types/BalanceService.types.d.ts +5 -5
  26. package/dist/cjs/src/utils/types/BaseService.types.d.ts +3 -19
  27. package/dist/cjs/src/utils/types/BitcoinService.types.d.ts +88 -0
  28. package/dist/cjs/src/utils/types/Generic.types.d.ts +22 -16
  29. package/dist/cjs/src/utils/types/NftService.types.d.ts +0 -0
  30. package/dist/cjs/src/utils/types/PricingService.types.d.ts +0 -0
  31. package/dist/cjs/src/utils/types/SecurityService.types.d.ts +4 -2
  32. package/dist/cjs/src/utils/types/TransactionService.types.d.ts +3 -3
  33. package/dist/esm/index.d.ts +2 -0
  34. package/dist/esm/index.js +2885 -2646
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/src/GoldRushClient.d.ts +2 -0
  37. package/dist/esm/src/services/AllChainsService.d.ts +40 -3
  38. package/dist/esm/src/services/BalanceService.d.ts +0 -0
  39. package/dist/esm/src/services/BaseService.d.ts +7 -5
  40. package/dist/esm/src/services/BitcoinService.d.ts +40 -0
  41. package/dist/esm/src/services/NftService.d.ts +0 -0
  42. package/dist/esm/src/services/PricingService.d.ts +0 -0
  43. package/dist/esm/src/services/SecurityService.d.ts +0 -0
  44. package/dist/esm/src/services/TransactionService.d.ts +0 -0
  45. package/dist/esm/src/utils/functions/bigIntParser.d.ts +0 -0
  46. package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
  47. package/dist/esm/src/utils/functions/debugOutput.d.ts +0 -0
  48. package/dist/esm/src/utils/functions/endpointGenerator.d.ts +0 -0
  49. package/dist/esm/src/utils/functions/execution.d.ts +0 -0
  50. package/dist/esm/src/utils/functions/isValidApiKey.d.ts +0 -0
  51. package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +0 -0
  52. package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +0 -0
  53. package/dist/esm/src/utils/functions/timestamp-parser.d.ts +0 -0
  54. package/dist/esm/src/utils/types/AllChainService.types.d.ts +96 -5
  55. package/dist/esm/src/utils/types/BalanceService.types.d.ts +5 -5
  56. package/dist/esm/src/utils/types/BaseService.types.d.ts +3 -19
  57. package/dist/esm/src/utils/types/BitcoinService.types.d.ts +88 -0
  58. package/dist/esm/src/utils/types/Generic.types.d.ts +22 -16
  59. package/dist/esm/src/utils/types/NftService.types.d.ts +0 -0
  60. package/dist/esm/src/utils/types/PricingService.types.d.ts +0 -0
  61. package/dist/esm/src/utils/types/SecurityService.types.d.ts +4 -2
  62. package/dist/esm/src/utils/types/TransactionService.types.d.ts +3 -3
  63. package/package.json +1 -1
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <a href="https://goldrush.dev/products/goldrush/" target="_blank" rel="noopener noreferrer">
3
- <img alt="GoldRush Kit Logo" src="./assets/ts-sdk-banner.png" style="max-width: 100%;"/>
3
+ <img alt="GoldRush TS SDK Logo" src="./repo-static/ts-sdk-banner.png" style="max-width: 100%;"/>
4
4
  </a>
5
5
  </div>
6
6
 
@@ -238,7 +238,9 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
238
238
  1. <strong>All Chains Service</strong>: Access to the data across multiple chains and addresses.
239
239
  </summary>
240
240
 
241
- - `getMultiChainAndMultiAddressTransactions()`: Fetch and render the transactions across multiple chains and addresses
241
+ - `getAddressActivity()`: Locate chains where an address is active on with a single API call.
242
+ - `getMultiChainMultiAddressTransactions()`: Fetch and render the transactions across multiple chains and addresses
243
+ - `getMultiChainBalances()`: Fetch the token balances of an address for multiple chains. (limited to 10 chains at a time)
242
244
  </details>
243
245
 
244
246
  <details>
@@ -281,13 +283,22 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
281
283
  - `getLogEventsByTopicHashByPage()`: 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. (Nonpaginated)
282
284
  - `getAllChains()`: Used to build internal dashboards for all supported chains on Covalent.
283
285
  - `getAllChainStatus()`: Used to build internal status dashboards of all supported chains.
284
- - `getAddressActivity()`: Locate chains where an address is active on with a single API call.
285
286
  - `getGasPrices()`: Get real-time gas estimates for different transaction speeds on a specific network, enabling users to optimize transaction costs and confirmation times.
286
287
  </details>
287
288
 
288
289
  <details>
289
290
  <summary>
290
- 5. <strong>NFT Service</strong>: Access to the NFT endpoints
291
+ 5. <strong>Bitcoin Service</strong>: Access to the Bitcoin wallet endpoints
292
+ </summary>
293
+
294
+ - `getBitcoinHdWalletBalances()`: Fetch balances for each active child address derived from a Bitcoin HD wallet.
295
+ - `getTokenBalancesForWalletAddress()`: Fetch the native, fungible (ERC20), and non-fungible (ERC721 & ERC1155) tokens held by an address. Response includes spot prices and other metadata.
296
+ - `getTransactionsForBtcAddress()`: Used to fetch the full transaction history of a Bitcoin wallet. Only supports non-HD bitcoin addresses.
297
+ </details>
298
+
299
+ <details>
300
+ <summary>
301
+ 6. <strong>NFT Service</strong>: Access to the NFT endpoints
291
302
  </summary>
292
303
 
293
304
  - `getChainCollections()`: Used to fetch the list of NFT collections with downloaded and cached off chain data like token metadata and asset files. (Paginated)
@@ -306,7 +317,7 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
306
317
 
307
318
  <details>
308
319
  <summary>
309
- 6. <strong>Pricing Service</strong>: Access to the historical token prices endpoint
320
+ 7. <strong>Pricing Service</strong>: Access to the historical token prices endpoint
310
321
  </summary>
311
322
 
312
323
  - `getTokenPrices()`: Get historic prices of a token between date ranges. Supports native tokens.
@@ -314,7 +325,7 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
314
325
 
315
326
  <details>
316
327
  <summary>
317
- 7. <strong>Transaction Service</strong>: Access to the transactions endpoints
328
+ 8. <strong>Transaction Service</strong>: Access to the transactions endpoints
318
329
  </summary>
319
330
 
320
331
  - `getAllTransactionsForAddress()`: Fetch and render the most recent transactions involving an address. Frequently seen in wallet applications. (Paginated)
@@ -4,8 +4,10 @@ export { calculatePrettyBalance } from "./src/utils/functions/calculatePrettyBal
4
4
  export { isValidApiKey } from "./src/utils/functions/isValidApiKey";
5
5
  export { prettifyCurrency } from "./src/utils/functions/prettifyCurrency";
6
6
  export { timestampParser } from "./src/utils/functions/timestamp-parser";
7
+ export * from "./src/utils/types/AllChainService.types";
7
8
  export * from "./src/utils/types/BalanceService.types";
8
9
  export * from "./src/utils/types/BaseService.types";
10
+ export * from "./src/utils/types/BitcoinService.types";
9
11
  export * from "./src/utils/types/Generic.types";
10
12
  export * from "./src/utils/types/NftService.types";
11
13
  export * from "./src/utils/types/PricingService.types";