Creating a CLI Hot Wallet

1. Create a New Wallet

  1. Generate a New Hot Wallet: Run the following command in your terminal to create a new wallet:

    solana-keygen new --outfile ~/my-solana-wallet.json

    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.

  2. Set Your Wallet as Default: Point Solana CLI to use this wallet by default:

    solana config set --keypair ~/my-solana-wallet.json
  3. Check Your Wallet Address: Confirm the address of your new wallet by running:

solana address

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.

  1. Obtain SOL: You can purchase SOL from an exchange like Coinbase or Binance, or transfer it from another wallet.

  2. Verify Your SOL Balance: After funding, you can check your SOL balance by running:

    solana balance

    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:

  1. Check Your zkNEO Balance: To view your balance of zkNEO tokens, run:

    spl-token balance 7SPAW8PPi22vnjm2wv48Bp2VhLzUNkfbmcGVmDHvnu9b

    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