Coder Social home page Coder Social logo

hugoxox3 / pythonminer Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 638 KB

Bitcoin solo miner base on Python(For Android and IOS)

License: MIT License

Python 100.00%
bitcoin ckpool miner mining pool python python3 solo solo-mining solo-project bitcoin-mining btc-miner mining-software btc-solo-miner

pythonminer's Introduction

Bitcoin Solo Miner


Details

Fee of Miner is 0%

Support Mutilple device like IOS,Android,ARM device,etc

Keep upgrading

Solo project


Error Occur?

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


Ask for help?

Go to here


Requirement

Python3.x Go Download

Create your own Bitcoin Address:Bitcoin Core/Electrum etc(Just prepare address that you want to)


Download the relase

First,Download the latest miner from release

Mining BTC with

Windows/Linux/Mac

Hide Console Version

Android & IOS

UNIX

For Windows Linux Mac

How to use

  1. Change the setting
#Setting
# Mining Address **Change Me**
address = 'bc1qwp44lvxgrhh42de507kezjspcyh8cvw6tvuykp'
# Mining Pool
pool = "solo.ckpool.org"
port = 3333
  1. run the programme like:
python3 SoloMiner.py

Windows example

For Hide Console Version

  1. Change the setting
#Setting
# Mining Address **Change Me**
address = 'bc1qwp44lvxgrhh42de507kezjspcyh8cvw6tvuykp'
# Mining Pool
pool = "solo.ckpool.org"
port = 3333
  1. Run programme

Double click 'main.pyw' to start programme or type in terminal/cmd like :

main.pyw

You can confirm it run in Task Manager(Find the usage of python.exe).

BTW,Windows User can also drag this file into'shell:startup' so that mining will start automaticlly when PC is on

Android&IOS

The ways I find out to run this miner on Android and IOS is to run a Linux Terminal on them like Termux & Ish


Android

First,Go to play store and downlaod Termux

Next,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

Then,you need to change the wallet in this programme to yours by 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

After that,You can run the programe like:

python3 SoloMiner.py

Finally,Just input your Bitcoin address an enjoy mining


IOS

First,download app ish in appstore and launch it

Next,type to install stuff

apk add python3
apk add git
git clone https://github.com/HugoXOX3/PythonMiner.git
cd PythonMiner

Also you need to change the wallet in this programme to yours by 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

After that type this to run miner

python3 SoloMiner.py

Finally,type in your Bitcoin Address and Enjoy mining

Like:

example


Warning

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


Thx for all

That for all.If you want to view your stats of miner you can go to solo.ckpool.org

D0nate with BTC:bc1qnk0ftxa4ep296phhnxl5lv9c2s5f8xakpcxmth


Contact me

Telegrame


Credits

BitcoinSoloPy

SoloMinerV2


Done

✅Mining with IOS(I already have some ideas to mine on it by using ish

✅Save Address Function

✅Customise Solo Mining pool(Bug Fix)

pythonminer's People

Contributors

hugoxox3 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

pythonminer's Issues

Not working

~/PythonMiner $ python SoloMiner.py

⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⣾⣿⣿⣿⣿⣷⣶⣦⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣄⠀⠀⠀⠀⠀
⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀
⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⠟⠿⠿⡿⠀⢰⣿⠁⢈⣿⣿⣿⣿⣿⣿⣿⣿⣦⠀⠀
⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣤⣄⠀⠀⠀⠈⠉⠀⠸⠿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀
⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⢠⣶⣶⣤⡀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⡆
⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⠀⠼⣿⣿⡿⠃⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣷
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⢀⣀⣀⠀⠀⠀⠀⢴⣿⣿⣿⣿⣿⣿⣿⣿⣿
⢿⣿⣿⣿⣿⣿⣿⣿⢿⣿⠁⠀⠀⣼⣿⣿⣿⣦⠀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⡿
⠸⣿⣿⣿⣿⣿⣿⣏⠀⠀⠀⠀⠀⠛⠛⠿⠟⠋⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⣿⠇
⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⣤⡄⠀⣀⣀⣀⣀⣠⣾⣿⣿⣿⣿⣿⣿⣿⡟⠀
⠀⠀⠻⣿⣿⣿⣿⣿⣿⣿⣄⣰⣿⠁⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠀⠀
⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀
⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠻⠿⢿⣿⣿⣿⣿⡿⠿⠟⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀
M I N I N G
B I T C O I N

BTC ADDRESS: bc1qw5a9enqxkt3yrw07v7jkertga85llxy3n573sn
Donate BTC to HCMLXOX?: bc1qnk0ftxa4ep296phhnxl5lv9c2s5f8xakpcxmth
[ 19:36:05.509382 ] [] Subscribe thread()
Traceback (most recent call last):
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 500, in thread_new_block
ret = block_listener(self)
^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 426, in block_listener
responses = [json.loads(res) for res in response.decode().split('\n') if
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 426, in
responses = [json.loads(res) for res in response.decode().split('\n') if
^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 887 (char 886)
[ 19:36:08.097116 ] [
] Subscribe thread()
Traceback (most recent call last):
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 500, in thread_new_block
ret = block_listener(self)
^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 426, in block_listener
responses = [json.loads(res) for res in response.decode().split('\n') if
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 426, in
responses = [json.loads(res) for res in response.decode().split('\n') if
^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 954 (char 953)
[ 19:36:08.820005 ] [] Subscribe thread started.
[ 19:36:08.820932 ] [
] Miner()
Traceback (most recent call last):
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 475, in thread_bitcoin_miner
ret = bitcoin_miner(self)
^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 191, in bitcoin_miner
target = (ctx.nbits[2:] + '00' * (int(ctx.nbits[:2], 16) - 3)).zfill(64)
~~~~~~~~~^^^^
TypeError: 'NoneType' object is not subscriptable
[ 19:36:10.680528 ] [] Subscribe thread()
Traceback (most recent call last):
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 500, in thread_new_block
ret = block_listener(self)
^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 426, in block_listener
responses = [json.loads(res) for res in response.decode().split('\n') if
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 426, in
responses = [json.loads(res) for res in response.decode().split('\n') if
^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 954 (char 953)
[ 19:36:10.824129 ] [
] Miner()
Traceback (most recent call last):
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 475, in thread_bitcoin_miner
ret = bitcoin_miner(self)
^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/PythonMiner/SoloMiner.py", line 191, in bitcoin_miner
target = (ctx.nbits[2:] + '00' * (int(ctx.nbits[:2], 16) - 3)).zfill(64)
~~~~~~~~~^^^^
TypeError: 'NoneType' object is not subscriptable
^C [ 19:36:12.306922 ] Force Close, Please Wait..

Add GPU Mining maybe?

HI!.

For solomining, could you add in the config File to Set GPU Mining for Nvidia graphic cards to true or false without needing CUDA?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.