1.1.5 • Published 1 year ago
@saitamacoder/ss-wallet v1.1.5
Saitama Solana Wallet
Saitama Solana Wallet is a Command Line Interface (CLI) wallet for the Solana blockchain, providing essential functions to interact with the Solana network.
Installation
To install Saitama Solana Wallet globally using npm, run:
npm install -g ss-walletKey Features
- Create and manage multiple Solana wallets
- Request SOL airdrops (on testnet and devnet)
- Check wallet balances
- Send SOL transactions
- Import wallets from files
- View recent wallet activity
- Check current SOL price
Commands
ss-wallet airdropss-wallet balancess-wallet generatess-wallet help [COMMAND]ss-wallet listss-wallet selectss-wallet sendss-wallet recent-activityss-wallet sol-pricess-wallet set-configss-wallet show-private-keyss-wallet showss-wallet remove
Usage
Generate a New Wallet
ss-wallet generateOutput:
Keypair generated and saved to wallet.json
Public Key: 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtesc
Private Key: a1b2c3d4...
Mnemonic Phrase (24 words):
word1 word2 word3 ... word24or
ss-wallet generate [filename]Output:
Keypair generated and saved to [filename].json
Public Key: 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtesc
Private Key: a1b2c3d4...
Mnemonic Phrase (24 words):
word1 word2 word3 ... word24Request SOL Airdrop
ss-wallet airdrop <publicKey>Output:
Airdrop requested for <publicKey>Check Balance
ss-wallet balance <publicKey>Output:
Balance for <publicKey>: <balance> SOLSend Transaction
ss-wallet send <senderWallet> <recipientAddress> <amount>Output:
Transaction successful with signature: <signature>Import Wallet
ss-wallet import <filepath>Output:
Keypair loaded from <filepath>
Public Key: <publicKey>List Wallets
ss-wallet listOutput:
Wallets:
- <walletName1>
- <walletName2>
- <walletName3>Select Primary Wallet
ss-wallet select <walletName>Output:
Primary wallet set to <walletName>Configure Network
ss-wallet set-config <networkName>Output:
Network configuration set to <networkName>View Private Key
ss-wallet show-private-keyOutput:
Private Key: <privateKey>Rename Wallet
ss-wallet rename <oldName> <newName>Output:
Wallet renamed from <oldName> to <newName>View Recent Activity
ss-wallet recent-activityOutput:
Recent activity for <publicKey>:
- <Last Most Recent Activity 1>
- <Last Most Recent Activity 2>
- <Last Most Recent Activity 3>Check SOL Price
ss-wallet sol-priceOutput:
Current SOL price: <price>Display Wallet Information
ss-wallet showOutput:
Wallet information:
- Name: <wallet-name.json>
- Path: <wallet-path>
- Public Key: <wallet-public-key>
- Balance: <wallet-balance>
- Network: <Solana Network>
- Current SOL price: <Solana Price>
- Value of the wallet: <Solana Value>Remove Wallet
ss-wallet remove <walletName>Output:
Wallet removed: <walletName>Help
ss-wallet helpOutput:
Usage: ss-wallet <command> [options]
Commands:
- generate: Generate a new wallet
- airdrop: Request a SOL airdrop
- balance: Check wallet balance
- send: Send a SOL transaction
- import: Import a wallet from a file
- list: List all wallets
- select: Select a primary wallet
- set-config: Configure network
- show-private-key: Display private key
- rename: Rename a wallet
- recent-activity: View recent activity
- sol-price: Check SOL price
- show: Display wallet information
- remove: Remove a wallet
- help: Display help informationExamples
Generate a New Wallet
ss-wallet generate my-walletOutput:
Keypair generated and saved to my-wallet.json
Public Key: 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtesc
Private Key: a1b2c3d4...
Mnemonic Phrase (24 words):
word1 word2 word3 ... word24Request Airdrop
ss-wallet airdrop 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtescOutput:
Airdrop requested for 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtescCheck Balance
ss-wallet balance 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtescOutput:
Balance for 5aj3BoJSsVcgGJg59EvYGZWutu3tvo977SLnDhzdtesc: 1 SOLSend Transaction
ss-wallet send my-wallet 62x7R9JCfVgxZgwKq4FbW6aoKHjPdScvG8HXD5eiz2Wr 0.1Output:
Transaction successful with signature: 59dtaC8TGXrszRiW9WoqGAmq1zhhDMWHnVKq4PBqUHGXrDsD5p2M8HperktcBHfeKd6THMw4yCzxDeiQfRegTse6License
This project is licensed under the ISC License.