mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-14 12:43:15 +02:00
427 lines
11 KiB
Markdown
427 lines
11 KiB
Markdown
<img src="./pybitblock/resources/images/Logo.PNG" width="80%" />
|
||
|
||
|
||
----------------------
|
||
CPU Usage: X%
|
||
Memory Usage: X%
|
||
----------------------
|
||
|
||
Local: PyBLOCK
|
||
Node: XxXxXxX
|
||
Block: XxXxXxX
|
||
Version: X.x.X
|
||
|
||
A. PyBLOCK
|
||
B. Bitcoin
|
||
L. Lightning
|
||
P. Platforms
|
||
S. Settings
|
||
X. Donate
|
||
Q. Exit
|
||
|
||
Select option:
|
||
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FOny7OjVUAQs8Yf.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/Entgg9HXEAI6yea.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FOk4li-XsAM0wje.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FOkh2BmWYAA2LZq.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FNNUNIWXwAAajhL.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FNpv1tpWYAgzYWM.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/Fkla4uSWIAUxsAK.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FkQ9v2bXgAIvr5H.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/Fkla4uTXoAEJEnH.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/Fkla4ubWIAERy4W.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/Fklt3uJXoAQjp0K.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/FsaPyuXWwAUq27m.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/GS5DEUfasAIh_P8.jpg" width="50%" />
|
||
|
||
<br />
|
||
|
||
# PyBLOCK
|
||
ℙ𝕪𝔹𝕃𝕆ℂ𝕂 𝕚𝕥𝕤 𝕒 𝔹𝕚𝕥𝕔𝕠𝕚𝕟 𝔻𝕒𝕤𝕙𝕓𝕠𝕒𝕣𝕕 𝕨𝕚𝕥𝕙 ℂ𝕪𝕡𝕙𝕖𝕣𝕡𝕦𝕟𝕜 𝕒𝕖𝕤𝕥𝕙𝕖𝕥𝕚𝕔.
|
||
|
||
- This will fully work on a Node that has Bitcoin Core and LND installed.
|
||
- We fully tested and worked perfect on [MyNodeBTC](https://twitter.com/_PyBlock_/status/1402516068959199233)
|
||
- We fully tested and worked perfect on [RaspiBlitz](https://twitter.com/_PyBlock_/status/1405788110458441728)
|
||
- We fully tested and worked perfect on [BitcoinMachines](https://twitter.com/_PyBlock_/status/1365757861217861632)
|
||
- We fully tested and worked perfect on [Umbrel](https://twitter.com/_PyBlock_/status/1405574038320201733)
|
||
|
||
# First Start
|
||
|
||
- You will need to find the path of the files tls.cert and admin.macaroon to do the REST connection to have access to LND.
|
||
- [Poetry](https://python-poetry.org/) is needed to ensure every user has the same python dependencies installed.
|
||
|
||
### From LOCAL Node
|
||
|
||
Open the Terminal.
|
||
|
||
-- Easy mode:
|
||
* a@A:~> sudo apt install hexyl
|
||
* a@A:~> sudo apt install jq
|
||
* a@A:~> pip3 install pybitblock
|
||
* a@A:~> pyblock
|
||
|
||
-- Manual mode:
|
||
* a@A:~> sudo apt install hexyl
|
||
* a@A:~> sudo apt install jq
|
||
* a@A:~> git clone https://github.com/curly60e/pyblock.git
|
||
* a@A:~> cd pyblock
|
||
* a@A:~> pip3 install -r requirements.txt
|
||
* a@A:~> cd pybitblock
|
||
* a@A:~> python3 PyBlock.py
|
||
|
||
-- Poetry mode:
|
||
* a@A:~> sudo apt install hexyl
|
||
* a@A:~> sudo apt install jq
|
||
* a@A:~> pip3 install poetry
|
||
* a@A:~> git clone https://github.com/curly60e/pyblock.git
|
||
* a@A:~> cd pyblock
|
||
* a@A:~> poetry install
|
||
* a@A:~> cd pybitblock
|
||
* a@A:~> poetry run python3 PyBlock.py
|
||
|
||
-- Upgrade:
|
||
* a@A:~> pip3 install pybitblock -U
|
||
* a@A:~> pyblock
|
||
* Or
|
||
* a@A:~> cd pyblock
|
||
* a@A:~> git pull origin master
|
||
* a@A:~> cd pybitblock
|
||
* a@A:~> python3 PyBlock.py
|
||
|
||
<br />
|
||
|
||
- This is how we continue.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST1.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- It will ask you for the IP:PORT (REST PORT) in this case use: localhost instead of the IP.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST2.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- Then it will ask you for the path to the tls.cert.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST3.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- Then it will ask you for the path to the admin.macaroon.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST4.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- Then it will ask you for the path to bitcoin-cli or if you have already installed just put: bitcoin-cli.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/bitcoin-cli.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- And you are in.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/main.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
### From REMOTE Computer
|
||
|
||
* You will need to have tls.cert and admin.macaroon already downloaded from your LND node.
|
||
* [Poetry](https://python-poetry.org/) is needed to ensure every user has the same python dependencies installed.
|
||
|
||
Open the Terminal.
|
||
|
||
-- Easy mode:
|
||
* a@A:~> sudo apt install hexyl
|
||
* a@A:~> sudo apt install jq
|
||
* a@A:~> pip3 install pybitblock
|
||
* a@A:~> pyblock
|
||
|
||
-- Manual mode:
|
||
* a@A:~> sudo apt install hexyl
|
||
* a@A:~> sudo apt install jq
|
||
* a@A:~> git clone https://github.com/curly60e/pyblock.git
|
||
* a@A:~> cd pyblock
|
||
* a@A:~> pip3 install -r requirements.txt
|
||
* a@A:~> cd pybitblock
|
||
* a@A:~> python3 PyBlock.py
|
||
|
||
-- Poetry mode:
|
||
* a@A:~> sudo apt install hexyl
|
||
* a@A:~> sudo apt install jq
|
||
* a@A:~> pip3 install poetry
|
||
* a@A:~> git clone https://github.com/curly60e/pyblock.git
|
||
* a@A:~> cd pyblock
|
||
* a@A:~> poetry install
|
||
* a@A:~> cd pybitblock
|
||
* a@A:~> poetry run python3 PyBlock.py
|
||
|
||
|
||
<br />
|
||
|
||
- This is how we continue.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST1.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- It will ask you for the IP:PORT (REST PORT).
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST1REMOTE.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- Then it will ask you for the path to the tls.cert.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST2REMOTE.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- Then it will ask you for the path to the admin.macaroon.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/REST3REMOTE.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- Then it will ask you for the path to bitcoin-cli or if you have already installed just put: bitcoin-cli.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/bitcoin-cli.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
- And you are in.
|
||
|
||
<br />
|
||
|
||
<img src="./pybitblock/resources/images/main.PNG" width="30%" />
|
||
|
||
<br />
|
||
|
||
|
||
## Dependencies
|
||
|
||
- Install Curl on Debian based type:
|
||
- sudo apt install curl
|
||
|
||
## How to execute
|
||
|
||
- python3 PyBlock.py
|
||
|
||
|
||
## Running PyBLOCK using Docker
|
||
|
||
First check out or [unzip](https://github.com/curly60e/pyblock/archive/refs/heads/master.zip) the code to a directory, cd to that directory, and from there type the following commands:
|
||
(Make sure Docker desktop is running in the background "sudo service docker start".)
|
||
|
||
- docker build -t pyblock .
|
||
|
||
Run it using
|
||
|
||
- docker run -p 6969:6969 -it pyblock
|
||
|
||
Then open http://localhost:6969 with a browser, you will get the PyBLOCK Docker App.
|
||
|
||
Credentials: "Running:PyBLOCK" ("User:Pass")
|
||
|
||
|
||
### Created by
|
||
|
||
[@Curly60e.](https://twitter.com/curly60e) ⚡️ holycherry05@phoenixwallet.me
|
||
|
||
npub1a78zk8cnczxjudg888f9t3va29vxhevvhdkdqvwe7zk70qx488zsc8573s
|
||
|
||
### Pentester and contribution by
|
||
|
||
[@SN.](https://twitter.com/__B__T__C__) ⚡️ sn@getalby.com
|
||
|
||
npub1h0mlskkqsyct98tldn744wa5j783h8du779c7zdjay29uyzwev4qxx9sjn
|
||
|
||
### Contributor
|
||
|
||
[@Danvergara.](https://twitter.com/__danvergara__)
|
||
|
||
### Tools by
|
||
|
||
[@SamouraiDev,](https://twitter.com/SamouraiDev)
|
||
[@Korynewton,](https://twitter.com/kn3wt)
|
||
[@Tippin_Me,](https://twitter.com/tippin_me)
|
||
[@TallyCoinApp,](https://twitter.com/tallycoinapp)
|
||
[@DJBooth007,](https://twitter.com/djbooth007)
|
||
[@MemPool,](https://twitter.com/mempool)
|
||
[@CoinGecko,](https://twitter.com/coingecko)
|
||
[@Igor_Chubin,](https://twitter.com/igor_chubin)
|
||
[@Shesek,](https://twitter.com/shesek)
|
||
[@LNBits,](https://twitter.com/lnbits)
|
||
[@LNPAYco,](https://twitter.com/LNPAYco)
|
||
[@OpenNodeCo,](https://twitter.com/OpenNodeCo)
|
||
[@BlockStream,](https://twitter.com/Blockstream)
|
||
[@Gwidion,](https://twitter.com/gwidion)
|
||
[@AlphaaZeta,](https://twitter.com/alphaazeta)
|
||
[@Hampus_S,](https://twitter.com/hampus_s)
|
||
[@Mutatrum,](https://twitter.com/mutatrum)
|
||
[@RoboHash,](https://twitter.com/Robohash)
|
||
[@C_Otto83,](https://twitter.com/c_otto83)
|
||
[@BashCo_,](https://twitter.com/BashCo_)
|
||
[@JamesOb,](https://twitter.com/jamesob)
|
||
[@BenTheCarman,](https://twitter.com/benthecarman)
|
||
[@Whale_Alert,](https://twitter.com/whale_alert)
|
||
[@BitcoinExplorer,](https://twitter.com/BitcoinExplorer)
|
||
[@JanoSide,](https://twitter.com/janoside)
|
||
[@LNstats,](https://twitter.com/LNstats)
|
||
[@Slush_Pool,](https://twitter.com/slush_pool)
|
||
[@Braiins_Systems,](https://twitter.com/braiins_systems)
|
||
[@CKPoolDev,](https://twitter.com/ckpooldev)
|
||
[@KanoBTC,](https://twitter.com/kanobtc)
|
||
[@JohnCantrell97,](https://twitter.com/JohnCantrell97)
|
||
[@JoostJgr,](https://twitter.com/joostjgr)
|
||
[@PRguitarman,](https://twitter.com/PRguitarman)
|
||
[@NyanCat,](https://twitter.com/nyannyancat)
|
||
[@Mononautical,](https://twitter.com/mononautical)
|
||
[@Janna3257,](https://twitter.com/Janna3257)
|
||
[@Cercatrova_21,](https://twitter.com/cercatrova_21)
|
||
[@ChaumDotCom,](https://twitter.com/chaumdotcom)
|
||
[@0xB10C,](https://twitter.com/0xB10C)
|
||
[@BitRawr,](https://twitter.com/bitrawr)
|
||
[@Vishalxl,](https://twitter.com/vishalxl)
|
||
[@Odudex,](https://twitter.com/odudex)
|
||
[@UTXOracle,](https://twitter.com/UTXOracle)
|
||
[@Acinq,](https://twitter.com/acinq_co)
|
||
[@PhoenixWallet,](https://twitter.com/PhoenixWallet)
|
||
[@ForemanMining,](https://twitter.com/foremanmining)
|
||
[@Ocean_Mining,](https://twitter.com/Ocean_Mining)
|
||
[@LuxorTechnology,](https://twitter.com/LuxorTechnology)
|
||
[@Skot9000,](https://twitter.com/Skot9000)
|
||
[@PyPi,](https://pypi.org/project/pybitblock/)
|
||
...
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/Fj4xKy0X0AAcBqN.jpg" width="50%" />
|
||
|
||
## PyBLØCK SOLO MINING POOL
|
||
|
||
Are you a Bitcoin Miner?
|
||
|
||
stratum+tcp://pool.pyblock.xyz:4444
|
||
|
||
Note that if you do not find a Block, you get no reward at all with Solo Mining.
|
||
|
||
0.4 % goes to PyBLØCK to operate the Pool.
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/F5eok13XUAAS1fD.jpg" width="50%" />
|
||
|
||
## [Click here for more info](https://t.me/pyblockpool)
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/GBF4KIoWAAEYCJ8.jpg" width="50%" />
|
||
|
||
## [PyBLOCK POOL WEBSITE](https://pyblock.xyz:8443)
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/GB5nZ-oXQAAsYDQ.jpg" width="50%" />
|
||
|
||
## PyBLOCK BOLT12
|
||
|
||
<br />
|
||
|
||
<img src="https://pbs.twimg.com/media/GRwZpFlacAAwZ9b.jpg" width="50%" />
|
||
|
||
## SUPPORT PyBLØCK.
|
||
|
||
Address:
|
||
|
||
“1Lovez8UtyFvr35wxDJeC23GryPR3q4cMo”
|
||
|
||
Message:
|
||
|
||
“The 1Love address it’s managed by PyBLØCK Crew.”
|
||
|
||
Signature:
|
||
|
||
“G36i/w72LGkUFSrA+/IuaCeRvXUjWIhgMw3FkNucXA3GQRn5RZPFVQ3nJscq1nRjtyK4JoMVG/pM1wQfqS+2+TQ=”
|
||
|
||
Other options:
|
||
|
||
Bolt12: ⚡️ holycherry05@phoenixwallet.me ⚡️
|
||
|
||
Bitcoin Address: bc1prwjajvvax2rkm2wzelpfzzc2ncywht69pswnurhzdfj9qujhyxzsqpd3eg
|
||
|
||
<img src="/pybitblock/images/bitcoin-donation.png" width="30%" />
|
||
|
||
Samourai Wallet Paynym: PM8TJhNTTq3YVocXuPtLjKx7pKkdUxqwTerWJ2j2a7dNitgyMmBPN6gK61yE17N2vgvQvKYokXktt6D6GZFTmocvDJhaUJfHt7ehEMmthjsT3NQHseFM
|
||
|
||
<img src="/pybitblock/images/codeimage.png" width="30%" />
|
||
|
||
Monero: 42jtb4dAfm6BQ8h6x56qGyAMMHVXGRwRMTSb2LwsBg1jVqD4TxfpD1pTK56tkrTMGhEKipZdDHfJrB1g8iQfvSyC7gZ9M8M
|
||
|
||
<img src="/pybitblock/images/qrcode.png" width="20%" />
|
||
|
||
PyBLØCK [Nostr Pulic Channel](https://anigma.io/?channel=ddadf6518d23d5e82a112b7965807ea2adfb22ec353a124fbf5f342e8403fdcb)
|