Creating a CLI Hot Wallet
1. Create a New Wallet
Generate a New Hot Wallet: Run the following command in your terminal to create a new wallet:
This will create a new wallet file and store it at
~/my-solana-wallet.json
.Important: Keep this wallet file secure, as it holds your private key. Do not share or lose this file, or you’ll lose access to your wallet.
Set Your Wallet as Default: Point Solana CLI to use this wallet by default:
Check Your Wallet Address: Confirm the address of your new wallet by running:
This will display your wallet's public address, which you can use to receive tokens.
2. Fund Your Wallet with SOL
To interact with the Solana network, you'll need a small amount of SOL in your wallet to cover transaction fees.
Obtain SOL: You can purchase SOL from an exchange like Coinbase or Binance, or transfer it from another wallet.
Verify Your SOL Balance: After funding, you can check your SOL balance by running:
This will display how much SOL is available for transaction fees.
3. (Optional) Check Your zkNEO Balance
If you’ve already received zkNEO tokens, you can check the balance by running:
Check Your zkNEO Balance: To view your balance of zkNEO tokens, run:
Note: Confidential balances aren’t visible with the regular
spl-token balance
command. If you have a confidential balance, refer to the “Managing Confidential Balances” section of this guide for instructions on how to view and manage it.
Last updated