SolanaSwift is a quick and efficient Solana wallet CLI tool for managing Solana transactions on the devnet.
- Install cli tool using:
npx i solanawallet
- Create new wallets
- Check wallet balance
- Transfer SOL between wallets
- Request airdrops (on devnet)
- Get wallet address for receiving SOL
- Recover wallet using mnemonic phrase
- Get transactions history
-
Clone the repository:
git clone https://github.com/yourusername/SolanaSwift.git cd SolanaSwift -
Install dependencies:
bun install
Create a new wallet and save the secret key to a file:
bun index.ts create-wallet [output-path]
[output-path]: Optional. Path to save the wallet secret key (default:wallet-secret.json)- MAKE SURE YOU SAVE YOU MNEMONIC PHRASE
You can recover the wallet using:
bun index.ts recover-wallet "your mnemonic phrase here" [output-path]
[output-path]: Optional. Path to save the recovered wallet secret key (default:recovered-wallet-secret.json)
All wallet operations require the -k option to specify the path to your wallet's secret key file.
Get the balance of your wallet:
bun index.ts wallet -k <path-to-secret-key> balance
Transfer SOL to another address:
bun index.ts wallet -k <path-to-secret-key> transfer <recipient-address> <amount>
<recipient-address>: The public key of the recipient's wallet<amount>: The amount of SOL to transfer
Display the public address of your wallet:
bun index.ts wallet -k <path-to-secret-key> address
Request an airdrop of SOL tokens from the devnet faucet:
bun index.ts wallet -k <path-to-secret-key> airdrop <amount>
<amount>: The amount of SOL to request (subject to devnet limitations)
Get your transactions history :
bun index.ts walletk -k <path-to-secret-key> history
<amount>: The amount of SOL to request (subject to devnet limitations)
bun run build index.ts
- This tool connects to the Solana devnet by default.
- Devnet SOL tokens have no real-world value and are for testing purposes only.
- Airdrop functionality is limited by devnet restrictions on amount and frequency.
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
Give a ⭐️ if this project helped you!
This project was created using bun init in bun v1.1.20. Bun is a fast all-in-one JavaScript runtime.