@covalenthq/client-sdk 2.2.1 → 2.2.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 (34) hide show
  1. package/README.md +19 -5
  2. package/dist/cjs/index.d.ts +2 -0
  3. package/dist/cjs/index.js +2977 -2628
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/src/GoldRushClient.d.ts +2 -0
  6. package/dist/cjs/src/services/AllChainsService.d.ts +40 -3
  7. package/dist/cjs/src/services/BaseService.d.ts +3 -1
  8. package/dist/cjs/src/services/BitcoinService.d.ts +40 -0
  9. package/dist/cjs/src/services/NftService.d.ts +37 -1
  10. package/dist/cjs/src/utils/types/AllChainService.types.d.ts +89 -4
  11. package/dist/cjs/src/utils/types/BalanceService.types.d.ts +5 -5
  12. package/dist/cjs/src/utils/types/BaseService.types.d.ts +3 -19
  13. package/dist/cjs/src/utils/types/BitcoinService.types.d.ts +88 -0
  14. package/dist/cjs/src/utils/types/Generic.types.d.ts +2 -0
  15. package/dist/cjs/src/utils/types/NftService.types.d.ts +83 -1
  16. package/dist/cjs/src/utils/types/SecurityService.types.d.ts +4 -2
  17. package/dist/cjs/src/utils/types/TransactionService.types.d.ts +3 -3
  18. package/dist/esm/index.d.ts +2 -0
  19. package/dist/esm/index.js +2977 -2628
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/src/GoldRushClient.d.ts +2 -0
  22. package/dist/esm/src/services/AllChainsService.d.ts +40 -3
  23. package/dist/esm/src/services/BaseService.d.ts +3 -1
  24. package/dist/esm/src/services/BitcoinService.d.ts +40 -0
  25. package/dist/esm/src/services/NftService.d.ts +37 -1
  26. package/dist/esm/src/utils/types/AllChainService.types.d.ts +89 -4
  27. package/dist/esm/src/utils/types/BalanceService.types.d.ts +5 -5
  28. package/dist/esm/src/utils/types/BaseService.types.d.ts +3 -19
  29. package/dist/esm/src/utils/types/BitcoinService.types.d.ts +88 -0
  30. package/dist/esm/src/utils/types/Generic.types.d.ts +2 -0
  31. package/dist/esm/src/utils/types/NftService.types.d.ts +83 -1
  32. package/dist/esm/src/utils/types/SecurityService.types.d.ts +4 -2
  33. package/dist/esm/src/utils/types/TransactionService.types.d.ts +3 -3
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -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)
@@ -300,13 +311,16 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
300
311
  - `getTraitsForCollection()`: Used to fetch and render the traits of a collection as seen in rarity calculators.
301
312
  - `getAttributesForTraitInCollection()`: Used to get the count of unique values for traits within an NFT collection.
302
313
  - `getCollectionTraitsSummary()`: Used to calculate rarity scores for a collection based on its traits.
314
+ - `getHistoricalFloorPricesForCollection()`: Commonly used to render a price floor chart for an NFT collection.
315
+ - `getHistoricalVolumeForCollection()`: Commonly used to build a time-series chart of the transaction volume of an NFT collection.
316
+ - `getHistoricalSalesCountForCollection()`: Commonly used to build a time-series chart of the sales count of an NFT collection.
303
317
  - `checkOwnershipInNft()`: Used to verify ownership of NFTs (including ERC-721 and ERC-1155) within a collection.
304
318
  - `checkOwnershipInNftForSpecificTokenId()`: Used to verify ownership of a specific token (ERC-721 or ERC-1155) within a collection.
305
319
  </details>
306
320
 
307
321
  <details>
308
322
  <summary>
309
- 6. <strong>Pricing Service</strong>: Access to the historical token prices endpoint
323
+ 7. <strong>Pricing Service</strong>: Access to the historical token prices endpoint
310
324
  </summary>
311
325
 
312
326
  - `getTokenPrices()`: Get historic prices of a token between date ranges. Supports native tokens.
@@ -314,7 +328,7 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
314
328
 
315
329
  <details>
316
330
  <summary>
317
- 7. <strong>Transaction Service</strong>: Access to the transactions endpoints
331
+ 8. <strong>Transaction Service</strong>: Access to the transactions endpoints
318
332
  </summary>
319
333
 
320
334
  - `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";