
# 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

```bash
npm install solana-multi-wallet-kit
```

> If testing locally, use:
> 
> ```bash
> npm install ./solana-multi-wallet-kit-1.2.0.tgz
> ```

---

## 🧠 Usage

### 1. Create Wallet from Seed Phrase

```ts
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)

```ts
import { createWallet } from 'solana-multi-wallet-kit';

const wallet = createWallet();
console.log(wallet.address);
```

---

### 3. Get Balance

```ts
import { getBalance } from 'solana-multi-wallet-kit';

const balance = await getBalance(wallet.publicKey);
console.log(balance); // e.g. 0.0025 SOL
```

---

### 4. Send SOL

```ts
import { sendSol } from 'solana-multi-wallet-kit';

await sendSol({
  fromSecretKey: wallet.secretKey,
  toPublicKey: 'TargetWalletAddress',
  amount: 0.01,
});
```

---

## 📦 Build the Library

```bash
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](https://faheemwakeel.vercel.app)  
✉️ Email: faheemwakeel247@gmail.com  