solana-web3-community 1.0.3 → 1.0.4

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 +30 -6
  2. package/package.json +20 -4
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # solana-web3-community
2
2
 
3
- Community-maintained Solana JavaScript API with enhanced stability.
3
+ Community-maintained Solana JavaScript API stable, fast, backward compatible.
4
4
 
5
5
  ## Install
6
6
  ```bash
@@ -9,11 +9,35 @@ npm install --save solana-web3-community
9
9
 
10
10
  ## Quick Start
11
11
  ```javascript
12
- import { Connection, PublicKey, Keypair } from 'solana-web3-community';
13
- const conn = new Connection('https://api.mainnet-beta.solana.com');
14
- const bal = await conn.getBalance(new PublicKey('YourKey'));
15
- console.log(bal / 1e9, 'SOL');
12
+ import { Connection, PublicKey, Keypair, clusterApiUrl } from 'solana-web3-community';
13
+ const conn = new Connection(clusterApiUrl('mainnet-beta'));
14
+ const balance = await conn.getBalance(new PublicKey('YourKey'));
16
15
  ```
17
16
 
18
17
  ## Features
19
- Full Solana JSON RPC API, WebSocket subscriptions, Keypair management, Transaction signing, SPL Token support, Works in Node.js, browser, and React Native.
18
+ - **Full Solana JSON RPC API** getBalance, getAccountInfo, sendTransaction, getBlockHeight
19
+ - **WebSocket subscriptions** — onAccountChange, onLogs, onProgramAccountChange
20
+ - **Keypair management** — generate, import, export
21
+ - **Transaction signing** — create, sign, send
22
+ - **SPL Token support** — transfer, mint, burn
23
+ - **Works everywhere** — Node.js, browser, React Native
24
+
25
+ ## Why solana-web3-community?
26
+ - **solana web3 js alternative** — drop-in replacement for @solana/web3.js
27
+ - **solana javascript client** — full API compatibility
28
+ - **solana rpc connection** — built-in retry and rate limit handling
29
+ - **solana dapp development** — same API as official, better stability
30
+ - **solana blockchain javascript** — maintained by the community
31
+
32
+ ## Migrate from @solana/web3.js
33
+ ```javascript
34
+ // Before
35
+ import { Connection } from '@solana/web3.js';
36
+ // After
37
+ import { Connection } from 'solana-web3-community';
38
+ ```
39
+
40
+ ## Python Version
41
+ ```bash
42
+ pip install solana-web3
43
+ ```
package/package.json CHANGED
@@ -1,10 +1,26 @@
1
1
  {
2
2
  "name": "solana-web3-community",
3
- "version": "1.0.3",
4
- "description": "Solana Javascript API",
3
+ "version": "1.0.4",
4
+ "description": "Solana JavaScript API \u2014 stable community fork with full JSON RPC support, WebSocket subscriptions, and transaction signing",
5
5
  "keywords": [
6
- "api",
7
- "blockchain"
6
+ "solana",
7
+ "web3",
8
+ "javascript",
9
+ "blockchain",
10
+ "spl",
11
+ "token",
12
+ "wallet",
13
+ "dapp",
14
+ "defi",
15
+ "nft",
16
+ "rpc",
17
+ "connection",
18
+ "transaction",
19
+ "keypair",
20
+ "publickey",
21
+ "mainnet",
22
+ "devnet",
23
+ "testnet"
8
24
  ],
9
25
  "license": "MIT",
10
26
  "author": "Solana Labs Maintainers <maintainers@solanalabs.com>",