Crates.io | solwalrs |
lib.rs | solwalrs |
version | 0.6.1 |
source | src |
created_at | 2022-12-08 14:13:08.284609 |
updated_at | 2024-05-17 11:24:13.405133 |
description | [deprecated] A simple and easy to use CLI Solana wallet |
homepage | |
repository | https://github.com/TheAwiteb/solwalrs |
max_upload_size | |
id | 732612 |
size | 277,548 |
Deprecation Notice: This project is no longer maintained.
You can install solwalrs using cargo (recommended):
cargo install solwalrs
After installing, you can run solwalrs using solwalrs
command. If you get an error, make sure that your PATH
environment variable contains the directory where cargo installs binaries. You can find the binary directory here:
$HOME/.cargo/bin
git clone https://github.com/TheAwiteb/solwalrs.git
cd solwalrs
cargo build --release
After building, the binary will be located at target/release/solwalrs
, you can copy it to your PATH
or run it directly from the target/release
directory.
A simple and easy to use CLI Solana wallet
Usage: solwalrs [OPTIONS] [COMMAND]
Commands:
keypair Commands for managing a keypair [aliases: kp]
new Generate a new keypair [aliases: n]
list List all keypairs [aliases: ls]
import Import new keypair by private key or secret key (input prompt) [aliases: i]
completions Generate shell completions [aliases: cp]
clean Clean the wallet. This will remove all the keypairs from the wallet
price Get the price of a token/SOL in USDT [aliases: p]
help Print this message or the help of the given subcommand(s)
Options:
--app-file <APP_FILE> The path to the app file
-v, --verbose Verbose mode, for debugging
--rpc <RPC> RPC URL, default is `https://api.mainnet-beta.solana.com` [default: https://api.mainnet-beta.solana.com]
-h, --help Print help information (use `--help` for more detail)
-V, --version Print version information
Use
solwalrs help <command>
to get more information about a command. For example,solwalrs help keypair
You can enable auto completion for bash, fish, powershell and zsh.
For Bash, move solwalrs.bash
to $XDG_CONFIG_HOME/bash_completion
or
/etc/bash_completion.d/
.
For Fish, move solwalrs.fish
to $HOME/.config/fish/completions/
.
For the Z shell, move _solwalrs
to one of your $fpath
directories.
For PowerShell, add . _solwalrs.ps1
to your PowerShell
profile
(note the leading period). If the _solwalrs.ps1
file is not on your PATH
, do
. /path/to/_solwalrs.ps1
instead.
To generate Solwalrs completions, run solwalrs completions > <the-name-above-as-your-shell>
.
Please open an issue and I will add it to the next release. You can also add it yourself by following these steps:
src/wallet/spl.rs
fileTokens
enummint_address
instance functionlamports_per_token
instance function (if it's not 6 decimals)Note the SPL token must be popular to be added to the wallet
You can see our goals in this issue: #1
Solwalrs stores your private key in a file called solwalrs.json
[1]. This file is encrypted using Fernet (symmetric encryption) by fernet crate. The encryption key is derived from a password that you provide. The password is never stored anywhere. If you lose your password, you will lose access to your wallet. Use a password manager to generate a strong password and store it somewhere safe.
[1] The file path will printed to the console when you create a new keypair, you can change the file path by setting the --app-file
flag. For example, solwalrs --app-file /path/to/file keypair new testwalletname
If you discover a security vulnerability within this project, please send me an email at Awiteb@hotmail.com or through the telegram @TheAwiteb. All security vulnerabilities will be promptly addressed.
Create a new keypair | View your keypairs |
---|---|
Qr code image | Qr code console |
This project is licensed under the terms of the GNU General Public License v3.0. See https://www.gnu.org/licenses/gpl-3.0.html for more details.