You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 264a28e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/reference/stacks.js/stacks-connect/methods/getAddresses.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,13 @@ for (const entry of result.addresses) {
22
22
23
23
#### Notes
24
24
25
-
- This method returns addresses for **all supported chains** (BTC and STX). For Stacks-only addresses, use [`stx_getAddresses`](stx_getAddresses.md).
26
-
- Results are automatically cached in local storage when `enableLocalStorage` is `true` (the default).
27
-
- For Xverse-like wallets, this method is automatically overridden to use `wallet_connect` when provider overrides are enabled.
28
-
- The [`connect`](../connection/connect.md) function is a convenience wrapper that calls this method with `forceWalletSelect: true`.
25
+
* This method returns addresses for **all supported chains** (BTC and STX). For Stacks-only addresses, use [`stx_getAddresses`](stx_getAddresses.md).
26
+
* Results are automatically cached in local storage when `enableLocalStorage` is `true` (the default).
27
+
* For Xverse-like wallets, this method is automatically overridden to use `wallet_connect` when provider overrides are enabled.
28
+
* The [`connect`](../connection/connect.md) function is a convenience wrapper that calls this method with `forceWalletSelect: true`.
29
+
* To derive a Bitcoin Staking lock address from an entry, pass its `publicKey` to [`buildLockAddress`](../../stacks-bitcoin-staking/script/buildlockaddress.md) in `@stacks/bitcoin-staking`, with `stxAddress`, `unlockHeight`, `earlyUnlockBytes` and `network`. The key must be a 33-byte compressed key starting with `02` or `03`. [`buildUnlockScript`](../../stacks-bitcoin-staking/script/buildunlockscript.md) throws on any other key, so check the entry's key length first.
0 commit comments