sats-connect 4.2.0-9f6ddc5 → 4.2.0-ed9dafe

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 +28 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,10 +2,14 @@
2
2
 
3
3
  **[API Docs](https://docs.xverse.app/sats-connect) • [Example App](https://sats-connect.netlify.app/) • [Discord](https://discord.gg/tN84HhSDrz) • [Xverse](https://www.xverse.app/)**
4
4
 
5
+ # 👋 Introduction
6
+
5
7
  [**Sats Connect**](https://github.com/secretkeylabs/sats-connect) is a simple javascript library that connects apps to **Bitcoin**, **Spark**, **Starknet**, **Stacks**, and other **Bitcoin Layer 2 wallets** like [**Xverse**](https://www.xverse.app/). 
6
8
 
7
9
  It’s already powering apps across the BitcoinFi ecosystem, with close to **2 million downloads** — making it one of the most widely used ways for developers to integrate Bitcoin wallets today.
8
10
 
11
+ ## ✨ What you can do with Sats Connect
12
+
9
13
  Developers building on Bitcoin and its L2s can use Sats Connect to interact directly with users’ wallets:
10
14
 
11
15
  * 🔑 **Retrieve wallet addresses** for Bitcoin, Spark, Starknet, Stacks, and more
@@ -19,47 +23,59 @@ Developers building on Bitcoin and its L2s can use Sats Connect to interact dire
19
23
  * Transfer tokens and inscriptions
20
24
  * Inscribe sats with arbitrary content, create and mint tokens
21
25
 
22
- ## Quick start
23
- ```sh
24
- npm i sats-connect
26
+ ### 🛠️ Why Sats Connect?
27
+
28
+ * **Wallet-first** – every interaction happens directly in the user’s wallet, with explicit approval
29
+ * **Bitcoin-native & multi-asset** – supports Bitcoin L1 (BTC, Ordinals, Runes, BRC-20) as well as emerging L2s like Spark, Starknet, and Stacks
30
+ * **Comprehensive toolkit** – from simple address retrieval to advanced features like signing PSBTs, transferring Spark tokens, or inscribing Ordinals
31
+ * **Battle-tested** – trusted by leading BitcoinFi apps, with close to **2M downloads** and a growing developer ecosystem
32
+
33
+ ## 🚀 Get started
34
+ ```bash
35
+ npm i sats-connect@4.2.x
25
36
  ```
26
37
  Then request a [wallet connection ](https://docs.xverse.app/sats-connect/connecting-to-the-wallet/connect-to-xverse-wallet)— and explore the docs to unlock the full Bitcoin stack: Bitcoin L1, Spark, Starknet, Stacks, and the assets built on top.
27
38
 
28
- ## Usage
39
+ ## 💻 Usage
29
40
  ### import
30
- ```sh
41
+ ```ts
31
42
  import { request } from 'sats-connect';
32
43
  ```
33
44
  ### Connect Wallet
34
- ```sh
45
+ ```ts
35
46
  const response = await request('getAccounts', {
36
47
  purposes: [AddressPurpose.Payment, AddressPurpose.Ordinals, AddressPurpose.Stacks],
37
48
  message: 'Cool app wants to know your addresses!',
38
49
  });
39
50
  ```
40
51
  ### Request a wallet action
41
- ```sh
52
+ ```ts
42
53
  await request('sendTransfer', {...});
43
54
  ```
44
55
 
45
56
  ### Disconnect Wallet
46
- ```sh
57
+ ```ts
47
58
  await Wallet.disconnect();
48
59
  ```
49
60
 
50
- ## Development
61
+ ## 💻 Development
51
62
  ### Build the package
52
- ```sh
63
+ ```bash
53
64
  npm run build
54
65
  ```
55
66
  ### Run example app
56
- ```sh
67
+ ```bash
57
68
  npm run dev:example
58
69
  ```
59
70
 
60
- ## Power your Bitcoin apps with plug-and-play infra
71
+ ## 📚 Documentation
72
+ For full documentation, visit [docs.xverse.app](https://docs.xverse.app/sats-connect/).
61
73
 
74
+ ## ⚡ Power your Bitcoin apps with plug-and-play infra
62
75
  Sats Connect lets your app connect directly to users’ wallets.\
63
76
  The [Xverse API](https://docs.xverse.app/api) gives you **plug-and-play access to Bitcoin data and infrastructure** — Ordinals, Runes, mempool, balances, transactions, collections, and more — without running your own nodes or indexers.
64
77
 
65
78
  Together, they remove the heavy lifting so you can focus on building the next generation of Bitcoin apps.
79
+
80
+ ## 🤝 Join the community
81
+ If you’re building with Sats Connect or Xverse API and need help with integration, join our [developer forum](https://discord.gg/tN84HhSDrz) to connect with the community and the Xverse team. 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sats-connect",
3
- "version": "4.2.0-9f6ddc5",
3
+ "version": "4.2.0-ed9dafe",
4
4
  "main": "dist/index.mjs",
5
5
  "files": [
6
6
  "dist"