@covalenthq/client-sdk 0.2.2 → 0.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 (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -26,7 +26,11 @@ import { Client } from "@covalenthq/client-sdk";
26
26
  const ApiServices = async () => {
27
27
  const client = new Client("YOUR_API_KEY"); // Replace with your Covalent API key.
28
28
  const resp = await client.BalanceService.getTokenBalancesForWalletAddress("eth-mainnet", "WALLET_ADDRESS"); // Example call, refer to API Docs for required paramaters or click into the method `getTokenBalancesForWalletAddress` to see the accepted parameter arguments
29
- console.log(resp.data);
29
+ if (!resp.error) {
30
+ console.log(resp.data);
31
+ } else {
32
+ console.log(resp.error_message);
33
+ }
30
34
  }
31
35
  ```
32
36
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@covalenthq/client-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
7
7
  "/dist"
8
8
  ],
9
- "repository": "https://github.com/covalenthq/covalent-api-sdk-js",
9
+ "repository": "https://github.com/covalenthq/covalent-api-sdk-ts",
10
10
  "author": "Covalenthq",
11
11
  "license": "MIT",
12
12
  "dependencies": {