Skip to content

HugoXOX3/PythonBitcoinMiner

Repository files navigation

Bitcoin Solo Miner


Latest Version

Version Beta v2.0.0

This is still a debug version which fixes all the bugs in version v1.x.x.

However, it may have some new bugs or errors.

Please report any issues at Issues to help improve and fix the program.

Bitcoin Solo Miner Version 1.x.x and Documentation


Details

This SoloMiner does not request any development fee and connects to the blockchain API to get details like TxIndex to alternate RPC server. As a result, we do not need to run a Bitcoin core locally, and we can send our accepted shares to your mining pool like ckpool.


Error Occurred?

Go here to find out the reason and how to fix it.


Need Help?

Go here


Requirements


Download the Release

First, download the latest miner from releases

Mining BTC with

For Windows/Linux/Mac

How to Use

  1. Change the settings:

    # Setting
    # Mining Address **Change Me**
    address = 'xxx'
    # Mining Pool
    pool = "solo.ckpool.org"
    port = 3333
  2. Run the program:

    python3 SoloMiner.py

Windows example

For Hide Console Version

  1. Change the settings:

    # Setting
    # Mining Address **Change Me**
    address = 'xxx'
    # Mining Pool
    pool = "solo.ckpool.org"
    port = 3333
  2. Run the program:

Double-click main.pyw to start the program or type in terminal/cmd:

main.pyw

You can confirm it is running in Task Manager (look for python.exe).

Windows users can also drag this file into shell:startup so that mining will start automatically when the PC is on.

Android & iOS

The way to run this miner on Android and iOS is to run a Linux Terminal on them, like Termux & iSH.


Android

  1. Go to the Play Store and download Termux

  2. Open Termux and type:

    pkg update
    pkg upgrade
    pkg install python3
    pkg install git
    pip3 install requests colorama
    git clone https://github.com/HugoXOX3/PythonMiner.git
    cd PythonMiner
  3. Change the wallet in this program to yours using nano or vim:

    # Python Bitcoin Solo Miner
    import requests
    import socket
    .
    .
    .
    
    ## Mining Address **Change Me**
    address = 'Change this to your wallet'
    pool = 'stratum.solomining.io'
    port = 7777
  4. Run the program:

    python3 SoloMiner.py
  5. Input your Bitcoin address and enjoy mining.


iOS

  1. Download the app iSH from the App Store and launch it.

  2. Type to install stuff:

    apk add python3
    apk add git
    git clone https://github.com/HugoXOX3/PythonMiner.git
    cd PythonMiner
  3. Change the wallet in this program to yours using nano or vim:

    # Python Bitcoin Solo Miner
    import requests
    import socket
    .
    .
    .
    
    ## Mining Address **Change Me**
    address = 'Change this to your wallet'
    pool = 'stratum.solomining.io'
    port = 7777
  4. Run the miner:

    python3 SoloMiner.py
  5. Input your Bitcoin address and enjoy mining.

example


Warning

⚠️ Mining Bitcoin on a mobile device with poor cooling may damage your device.


Credits


Done

  • ✅ Mining with iOS (I already have some ideas to mine on it by using iSH)
  • ✅ Save Address Function
  • ✅ Customize Solo Mining Pool (Bug Fix)