@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.
- package/LICENSE +0 -0
- package/README.md +17 -6
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +2885 -2646
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/GoldRushClient.d.ts +2 -0
- package/dist/cjs/src/services/AllChainsService.d.ts +40 -3
- package/dist/cjs/src/services/BalanceService.d.ts +0 -0
- package/dist/cjs/src/services/BaseService.d.ts +7 -5
- package/dist/cjs/src/services/BitcoinService.d.ts +40 -0
- package/dist/cjs/src/services/NftService.d.ts +0 -0
- package/dist/cjs/src/services/PricingService.d.ts +0 -0
- package/dist/cjs/src/services/SecurityService.d.ts +0 -0
- package/dist/cjs/src/services/TransactionService.d.ts +0 -0
- package/dist/cjs/src/utils/functions/bigIntParser.d.ts +0 -0
- package/dist/cjs/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
- package/dist/cjs/src/utils/functions/debugOutput.d.ts +0 -0
- package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +0 -0
- package/dist/cjs/src/utils/functions/execution.d.ts +0 -0
- package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +0 -0
- package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +0 -0
- package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +0 -0
- package/dist/cjs/src/utils/functions/timestamp-parser.d.ts +0 -0
- package/dist/cjs/src/utils/types/AllChainService.types.d.ts +96 -5
- package/dist/cjs/src/utils/types/BalanceService.types.d.ts +5 -5
- package/dist/cjs/src/utils/types/BaseService.types.d.ts +3 -19
- package/dist/cjs/src/utils/types/BitcoinService.types.d.ts +88 -0
- package/dist/cjs/src/utils/types/Generic.types.d.ts +22 -16
- package/dist/cjs/src/utils/types/NftService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/PricingService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/SecurityService.types.d.ts +4 -2
- package/dist/cjs/src/utils/types/TransactionService.types.d.ts +3 -3
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2885 -2646
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/GoldRushClient.d.ts +2 -0
- package/dist/esm/src/services/AllChainsService.d.ts +40 -3
- package/dist/esm/src/services/BalanceService.d.ts +0 -0
- package/dist/esm/src/services/BaseService.d.ts +7 -5
- package/dist/esm/src/services/BitcoinService.d.ts +40 -0
- package/dist/esm/src/services/NftService.d.ts +0 -0
- package/dist/esm/src/services/PricingService.d.ts +0 -0
- package/dist/esm/src/services/SecurityService.d.ts +0 -0
- package/dist/esm/src/services/TransactionService.d.ts +0 -0
- package/dist/esm/src/utils/functions/bigIntParser.d.ts +0 -0
- package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
- package/dist/esm/src/utils/functions/debugOutput.d.ts +0 -0
- package/dist/esm/src/utils/functions/endpointGenerator.d.ts +0 -0
- package/dist/esm/src/utils/functions/execution.d.ts +0 -0
- package/dist/esm/src/utils/functions/isValidApiKey.d.ts +0 -0
- package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +0 -0
- package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +0 -0
- package/dist/esm/src/utils/functions/timestamp-parser.d.ts +0 -0
- package/dist/esm/src/utils/types/AllChainService.types.d.ts +96 -5
- package/dist/esm/src/utils/types/BalanceService.types.d.ts +5 -5
- package/dist/esm/src/utils/types/BaseService.types.d.ts +3 -19
- package/dist/esm/src/utils/types/BitcoinService.types.d.ts +88 -0
- package/dist/esm/src/utils/types/Generic.types.d.ts +22 -16
- package/dist/esm/src/utils/types/NftService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/PricingService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/SecurityService.types.d.ts +4 -2
- package/dist/esm/src/utils/types/TransactionService.types.d.ts +3 -3
- 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
|
|
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
|
-
- `
|
|
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>
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -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";
|