solana-multi-wallet-kit
v1.7.0
Published
Universal Solana Wallet Kit for React Native, Web, and Node.js
Maintainers
Readme
Solana Multi-Wallet Kit
A reusable JavaScript/TypeScript library for interacting with the Solana blockchain across platforms like React.js, React Native, and Node.js. It supports multi-wallet creation, SOL transfers, balance checking, and seed phrase-based wallet generation.
✨ Features
- 🔐 Create new Solana wallets
- 🔑 Generate wallet from a BIP39 seed phrase
- 💸 Send SOL
- 📊 Get wallet balance
🚀 Installation
npm install solana-multi-wallet-kitIf testing locally, use:
npm install ./solana-multi-wallet-kit-1.2.0.tgz
🧠 Usage
1. Create Wallet from Seed Phrase
import { createWalletFromSeedPhrase } from 'solana-multi-wallet-kit';
const wallet = createWalletFromSeedPhrase(
'nature gym clean forget disease upset grain blast drift report giraffe chase',
0
);
console.log(wallet.publicKey);2. Create New Wallet (Randomly)
import { createWallet } from 'solana-multi-wallet-kit';
const wallet = createWallet();
console.log(wallet.address);3. Get Balance
import { getBalance } from 'solana-multi-wallet-kit';
const balance = await getBalance(wallet.publicKey);
console.log(balance); // e.g. 0.0025 SOL4. Send SOL
import { sendSol } from 'solana-multi-wallet-kit';
await sendSol({
fromSecretKey: wallet.secretKey,
toPublicKey: 'TargetWalletAddress',
amount: 0.01,
});📦 Build the Library
npm run build📃 License
ISC License
📞 Contact
If you want to connect, collaborate, or have questions about this package, feel free to reach out!
🌐 Portfolio: Faheem Wakeel
✉️ Email: [email protected]
