@ecency/wallets 1.3.17 → 1.3.19

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/README.md CHANGED
@@ -13,7 +13,7 @@ Utilities for managing Hive blockchain wallets and external cryptocurrency walle
13
13
  - `buildExternalTx` – construct transactions or PSBTs for external chains
14
14
  - `encryptMemoWithKeys` / `decryptMemoWithKeys` – encrypt or decrypt memos using explicit keys
15
15
  - `encryptMemoWithAccounts` / `decryptMemoWithAccounts` – encrypt or decrypt memos by looking up account memo keys
16
- - `useGetExternalWalletBalanceQuery` – retrieve balances for external wallets such as BTC, ETH, BNB, SOL, TRX, TON, or APT
16
+ - `useGetExternalWalletBalanceQuery` – retrieve balances for external wallets such as BTC, ETH, BNB, SOL, TRON, TON, or APT through Ecency's private API
17
17
 
18
18
  ## Installation
19
19
 
@@ -62,11 +62,8 @@ const { data: btcBalance } = useGetExternalWalletBalanceQuery(
62
62
  '1BitcoinAddress...'
63
63
  );
64
64
 
65
- // query with Chainstack priority before Bitquery and public APIs
66
- const { data: btcBalanceChainstackFirst } = useGetExternalWalletBalanceQuery(
67
- EcencyWalletCurrency.BTC,
68
- '1BitcoinAddress...',
69
- { reverseProviderOrder: true }
70
- );
65
+ if (btcBalance) {
66
+ // balances are returned in base units (satoshis for BTC, wei for ETH, etc.)
67
+ console.log(btcBalance.balanceString, btcBalance.unit);
68
+ }
71
69
  ```
72
-