To start managing your SOL and SPL tokens, you need your address on blockchain. To do it, you need to do an integration with it by create a new wallet, or import already existing one (Terminal supports only Base58 private keys formula).
Create a new wallet
Creation of new address on Solana's blockchain is the fastest way to add another wallet to your list, it is a few-clicks operation (don't miss "Encryption" section).
defcreate_new_wallet(self): public_key, private_key, wallet_data, filename =create_wallet()if public_key: passphrase, dont_encrypt = self.prompt_for_passphrase("Encrypt New Wallet", allow_no_encrypt=True)if dont_encrypt: filepath = filenamewithopen(filepath, 'w')as wallet_file: wallet_file.write(wallet_data) self.show_message(f"Wallet saved to {filepath}\nPublic Key: {public_key}", "Wallet Created")else:ifnot passphrase: self.show_message("Passphrase is required to encrypt the wallet.", "Error")return encrypted_data =encrypt_data(wallet_data.encode('utf-8'), passphrase) encrypted_filepath = filename.replace('.txt', '.dat')withopen(encrypted_filepath, 'wb')as wallet_file: wallet_file.write(encrypted_data) self.show_message(f"Encrypted wallet saved to {encrypted_filepath}\nPublic Key: {public_key}", "Wallet Created") self.navigate_to(self.wallet_menu)else: self.show_message("Failed to create wallet.", "Error")
Import already existing wallet
If a user prefers to import wallet, which has been created before, he/she has such possibility. The only requierd action to does is gain a private key for Solana from external wallet, like Phantom, and paste it.