Solana CLI

sudo apt update
sudo apt upgrade
sudo apt-get install -y \
    build-essential \
    pkg-config \
    libudev-dev llvm libclang-dev \
    protobuf-compiler libssl-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
echo 'export PATH="/root/.local/share/solana/install/active_release/bin:$PATH"' >> /root/.profile
source /root/.profile
solana --version

Convert seedphase ( base58 ) to number 👍

install base58 + check

apt install python3-pip
pip3 install base58
python3 -c "import base58; print('Base58 library is installed')"
nano convert_key.py

change this

import base58

def convert_private_key_to_numbers(private_key):
    hex_key = private_key.encode('utf-8')
    return [int(hex_key[i:i + 2], 16) for i in range(0, len(hex_key), 2)]

private_key_base58 = "YourBase58PrivateKeyHere"  # Replace with your base58 private key
private_key_hex = base58.b58decode(private_key_base58).hex()
numbers = convert_private_key_to_numbers(private_key_hex)

print(numbers)
python3 convert_key.py

open and import your convert_key ( 1,2,3,11,12,13,....) 👍

nano /root/.config/solana/id.json
solana address
solana balance

Last updated