Generating and Preparing the Secret Key - DEXBOT
Skip to navigation Skip to main content
LOGB
  • Home
  • Blog
  • Catalog
  • Update
  • Instruction manual
  • Documentation
  • Support
  • TELEGRAM DEMO
Login / Register
Sign in Create an Account

Lost your password?

  • English
    • Русский
    • English
    • Deutsch
    • 中文 (中国)
    • Español
    • فارسی
    • हिन्दी
    • Italiano
    • 日本語
    • Tiếng Việt
    • Français
    • 한국어
    • Türkçe
    • العربية
    • Português
    • বাংলা
LOGB
  • English
    • Русский
    • English
    • Deutsch
    • 中文 (中国)
    • Español
    • فارسی
    • हिन्दी
    • Italiano
    • 日本語
    • Tiếng Việt
    • Français
    • 한국어
    • Türkçe
    • العربية
    • Português
    • বাংলা

Quick start

2
  • Create a Telegram Bot and Get the Token
  • Quick DEXBOT Installation

Telegram BOT EN

10
  • GRID BOT
  • Token setup
  • Setting up trading indicators
  • Bot Settings
  • Trading Settings
  • Selected Blockchain Overview
  • Blockchain Settings
  • Closed Trades
  • Active Trades
  • Main Menu

Setting up a VPS

7
  • DEXBOT version Update
  • Basic Commands for Working with a Linux VPS Server
  • Creating and Activating Systemd Services for Running Bots
  • Configuration Setup of .env and Database
  • Deploying the Bot on the Server
  • Server and Folder Preparation
  • Generating and Preparing the Secret Key

Website Documentation

4
  • Using a coupon (promo code) to get a discount
  • Two-Factor Authentication
  • License — Reset Device
  • Affiliate Program
  • Home
  • Documentation
  • Setting up a VPS
  • Generating and Preparing the Secret Key
View Categories

Generating and Preparing the Secret Key

2 мин. чтения

🔐 In some wallets (such as OKX), the private key is stored in base58 format, especially for EVM networks. For Solana, base64 format is used, and it must be obtained separately.


🔑 How to Get the EVM Private Key from OKX #

  1. Open the OKX WALLET app and go to Wallet Settings.
  2. Select Manage Wallets — find your wallet (e.g. “CRYPTA”).
  3. Tap the ⋮ (three dots) next to the wallet name → Seed Phrase — save it in a secure place.
  4. In the Account section, locate the desired wallet (e.g. DEXBOT) and tap on it.
  5. Tap on Private Key — the private key in base58 format will appear (starting with 0xd...).
  6. Important: when adding the key to your .env file, remove the 0xd prefix. For example:
    WALLET_SECRET_KEY=abcdef1234...

🧩 How to Get Solana Private Key (base64) #

  1. Use your base58 key or your seed phrase (mnemonic) obtained from OKX or another wallet (such as Phantom or Trust Wallet).
  2. Open the terminal and navigate to the folder containing the file:
    cd ./MYBOTS
  3. Give the file execute permission if needed:
    chmod +x keyall.bin
  4. Run the file:
    ./keyall.bin
  5. Select language (1 – Russian, 2 – English).
  6. Select the source of the key:
    • 1. From Seed Phrase – enter 12 or 24 words (space-separated)
    • 2. From Base58 – enter the private key in base58 format
    • 3. From DEC Array – enter comma-separated numbers (e.g. 174,47,154,…)
  7. The program will show:
    • Solana Public Address
    • Private Key in Base58
    • Private Key in Base64 (this is what goes into .env)
    • DEC and HEX representations
  8. Copy the Base64 value into your .env file:
    SOLANA_SECRET_KEY=ndLVItNzBQ9Qr7kqglMu...==

🔐 How keyall.bin works #

  • The program uses base58, base64, and solders libraries to convert keys.
  • Supports three input methods:
    1. Seed Phrase – converted to seed bytes via BIP39, then to Solana key
    2. Base58 – directly decoded into private key
    3. DEC Array – number list converted to bytes, used to generate key
  • If you have Python, you can install the required dependencies and simply run keyall.py — it’s located in the main folder.
  • The keyall.bin version is a standalone binary that works without any dependencies.

🗒️ Example: .env file structure #

WALLET_SECRET_KEY=abcdef1234...  # EVM (without 0xd)
SOLANA_SECRET_KEY=ndLVItN...==  # Solana (base64)

❗If you see a base58 key, it’s EVM, not Solana #

  • For Solana, you need a base64 key from a seed phrase or convert base58 using the keyall.bin tool.
  • Base58 keys cannot be used directly — Solana uses Ed25519 + base64 format.



Rate this document?
Updated on July 30, 2025
Server and Folder PreparationDEXBOT version Update
Table of Contents
  • 🔑 How to Get the EVM Private Key from OKX
  • 🧩 How to Get Solana Private Key (base64)
  • 🔐 How keyall.bin works
  • 🗒️ Example: .env file structure
  • ❗If you see a base58 key, it's EVM, not Solana

© 2026 DEXBOT. All rights reserved

  • Home
  • Blog
  • Catalog
  • Update
  • Instruction manual
  • Documentation
  • Support
  • TELEGRAM DEMO
Telegram
We use cookies to ensure you get the best experience on our website. By continuing to use this site, you agree to our use of cookies.
More info More info Accept
Home
0 items Cart
My account
Menu