Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samad101/sowa-cli

A Solana CLI wallet manager
https://github.com/samad101/sowa-cli

solana solana-wallet web3

Last synced: 28 days ago
JSON representation

A Solana CLI wallet manager

Awesome Lists containing this project

README

        

# SoWa - Solana Wallet CLI

Sowa (SOlana-WAllet) is a command-line interface tool for managing Solana wallets and performing basic operations on the Solana blockchain.

## Features

- Create new Solana accounts
- Check account balances
- Send SOL transactions
- View transaction history
- Configurable RPC endpoint

## Installation

### Prerequisites

- Rust and Cargo
- Git

### Building from source

1. Clone the repository:
```bash
git clone https://github.com/yourusername/sowa.git
cd sowa
```

2. Build the project:
```bash
cargo build --release
```

3. The binary will be available at `target/release/sowa`

### Using Cargo

```bash
cargo install sowa
```

## Usage

You can run Sowa using either `cargo run` or the compiled binary directly. Here are some example commands:

### Create a new account

```bash
sowa create-account
```

This will generate a new keypair and save it to `~/.config/sowa/keypair.json`.

### Check account balance

```bash
sowa balance
```

Replace `` with the address you want to check.

### Send SOL

```bash
sowa send
```

This sends the specified amount of SOL to the given address.

### View transaction history

```bash
sowa history
```

This command displays the transaction history for the current account.

### Configure RPC URL

View current RPC URL:
```bash
sowa config
```

Update RPC URL:
```bash
sowa config
```

## Configuration

Sowa stores its configuration in `~/.config/sowa/config.json`. The default RPC URL is set to the Solana devnet. You can change this to mainnet-beta or testnet as needed.

## Security Notes

- The keypair is stored locally at `~/.config/sowa/keypair.json`. Keep this file safe and do not share it with anyone.
- Always double-check addresses when sending transactions to avoid losing funds.