pyblock/README.md

343 lines
9.5 KiB
Markdown
Raw Permalink Normal View History

2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/Logo.PNG" width="80%" />
2020-12-19 12:02:37 -03:00
2021-11-28 20:25:45 +01:00
----------------------
CPU Usage: X%
Memory Usage: X%
----------------------
Local: PyBLOCK
Node: XxXxXxX
Block: XxXxXxX
Version: X.x.X
A. PyBLOCK
B. Bitcoin Core
L. Lightning Network
P. Platforms
S. Settings
X. Donate
Q. Exit
Select option:
2022-03-25 22:20:06 +01:00
<br />
<img src="https://pbs.twimg.com/media/FOny7OjVUAQs8Yf.jpg" width="50%" />
2020-12-19 12:02:37 -03:00
<br />
2021-11-28 20:25:45 +01:00
<img src="https://pbs.twimg.com/media/Entgg9HXEAI6yea.jpg" width="50%" />
2020-05-08 09:04:55 -03:00
<br />
2022-03-25 22:20:06 +01:00
<img src="https://pbs.twimg.com/media/FOk4li-XsAM0wje.jpg" width="50%" />
2020-05-08 09:04:55 -03:00
<br />
2022-03-25 23:18:58 +01:00
<img src="https://pbs.twimg.com/media/FOkh2BmWYAA2LZq.jpg" width="50%" />
2020-05-27 17:59:12 -03:00
<br />
2022-03-09 01:24:44 +01:00
<img src="https://pbs.twimg.com/media/FNNUNIWXwAAajhL.jpg" width="50%" />
<br />
2022-03-25 22:20:06 +01:00
<img src="https://pbs.twimg.com/media/FNpv1tpWYAgzYWM.jpg" width="50%" />
2020-05-27 17:59:12 -03:00
2022-03-09 01:24:44 +01:00
<br />
2022-12-22 14:25:38 +01:00
<img src="https://pbs.twimg.com/media/Fkla4uSWIAUxsAK.jpg" width="50%" />
2022-12-19 21:08:41 +01:00
<br />
2022-12-22 14:25:38 +01:00
<img src="https://pbs.twimg.com/media/FkQ9v2bXgAIvr5H.jpg" width="50%" />
2022-12-22 14:23:52 +01:00
<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 />
2022-12-22 22:30:48 +01:00
<img src="https://pbs.twimg.com/media/Fklt3uJXoAQjp0K.jpg" width="50%" />
<br />
2022-03-18 20:25:00 +01:00
# PyBLOCK
2021-11-28 20:43:50 +01:00
𝕪𝔹𝕃𝕆𝕂 𝕚𝕥𝕤 𝕒 𝔹𝕚𝕥𝕔𝕠𝕚𝕟 𝔻𝕒𝕤𝕙𝕓𝕠𝕒𝕣𝕕 𝕨𝕚𝕥𝕙 𝕪𝕡𝕙𝕖𝕣𝕡𝕦𝕟𝕜 𝕒𝕖𝕤𝕥𝕙𝕖𝕥𝕚𝕔.
2020-05-06 17:22:04 -03:00
2021-11-22 20:31:55 +01:00
- 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)
2020-05-06 17:22:04 -03:00
2021-11-22 20:31:55 +01:00
# First Start
2020-06-04 16:36:44 -03:00
- 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.
2021-11-22 18:52:36 -06:00
- [Poetry](https://python-poetry.org/) is needed to ensure every user has the same python dependencies installed.
2020-06-04 16:36:44 -03:00
2021-11-22 20:31:55 +01:00
### From LOCAL Node
2020-07-14 20:04:00 -03:00
2021-11-22 20:31:55 +01:00
Open the Terminal.
2020-07-14 20:04:00 -03:00
2021-12-03 19:50:18 -03:00
-- Easy mode:
2021-12-04 10:39:02 -03:00
* a@A:~> sudo apt install hexyl
2021-12-03 19:50:18 -03:00
* a@A:~> pip3 install pybitblock
2021-12-04 08:18:44 -03:00
* a@A:~> pyblock
2021-12-03 19:50:18 -03:00
-- Manual mode:
2021-12-04 10:39:02 -03:00
* a@A:~> sudo apt install hexyl
2021-11-22 18:52:36 -06:00
* a@A:~> pip3 install poetry
2020-06-04 16:36:44 -03:00
* a@A:~> git clone https://github.com/curly60e/pyblock.git
* a@A:~> cd pyblock
2021-11-22 18:52:36 -06:00
* a@A:~> poetry install
2022-03-07 20:26:32 +01:00
* a@A:~> cd pybitblock
2021-11-22 18:52:36 -06:00
* a@A:~> poetry run python3 PyBlock.py
2020-07-14 20:04:00 -03:00
2021-12-04 08:18:44 -03:00
-- Upgrade:
* a@A:~> pip3 install pybitblock -U
2021-12-04 08:19:24 -03:00
* a@A:~> pyblock
2021-12-04 08:18:44 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
- This is how we continue.
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST1.PNG" width="30%" />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
- It will ask you for the IP:PORT (REST PORT) in this case use: localhost instead of the IP.
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST2.PNG" width="30%" />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
- Then it will ask you for the path to the tls.cert.
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST3.PNG" width="30%" />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
- Then it will ask you for the path to the admin.macaroon.
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST4.PNG" width="30%" />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
- Then it will ask you for the path to bitcoin-cli or if you have already installed just put: bitcoin-cli.
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/bitcoin-cli.PNG" width="30%" />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
- And you are in.
<br />
2020-07-14 20:04:00 -03:00
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/main.PNG" width="30%" />
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
<br />
2021-11-22 20:31:55 +01:00
### From REMOTE Computer
2020-07-14 20:04:00 -03:00
2020-06-04 16:36:44 -03:00
* You will need to have tls.cert and admin.macaroon already downloaded from your LND node.
2021-11-22 18:52:36 -06:00
* [Poetry](https://python-poetry.org/) is needed to ensure every user has the same python dependencies installed.
2020-07-14 20:04:00 -03:00
2021-11-22 15:33:33 -03:00
- Open the Terminal
2021-12-03 19:52:03 -03:00
2021-12-04 08:24:31 -03:00
-- Easy mode:
2021-12-04 10:39:02 -03:00
* a@A:~> sudo apt install hexyl
2021-12-04 08:24:31 -03:00
* a@A:~> pip3 install pybitblock
* a@A:~> pyblock
-- Manual mode:
2021-12-04 10:39:02 -03:00
* a@A:~> sudo apt install hexyl
2021-12-04 08:24:31 -03:00
* a@A:~> pip3 install poetry
* a@A:~> git clone https://github.com/curly60e/pyblock.git
* a@A:~> cd pyblock
* a@A:~> poetry install
2022-03-07 20:26:32 +01:00
* a@A:~> cd pybitblock
2021-12-04 08:24:31 -03:00
* a@A:~> poetry run python3 PyBlock.py
-- Upgrade:
* a@A:~> pip3 install pybitblock -U
* a@A:~> pyblock
2020-06-04 16:36:44 -03:00
<br />
- This is how we continue.
<br />
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST1.PNG" width="30%" />
2020-06-04 16:36:44 -03:00
<br />
- It will ask you for the IP:PORT (REST PORT).
<br />
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST1REMOTE.PNG" width="30%" />
2020-06-04 16:36:44 -03:00
<br />
- Then it will ask you for the path to the tls.cert.
<br />
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST2REMOTE.PNG" width="30%" />
2020-06-04 16:36:44 -03:00
<br />
- Then it will ask you for the path to the admin.macaroon.
<br />
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/REST3REMOTE.PNG" width="30%" />
2020-06-04 16:36:44 -03:00
<br />
- Then it will ask you for the path to bitcoin-cli or if you have already installed just put: bitcoin-cli.
<br />
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/bitcoin-cli.PNG" width="30%" />
2020-06-04 16:36:44 -03:00
<br />
- And you are in.
<br />
2021-12-03 19:10:10 -03:00
<img src="./pybitblock/resources/images/main.PNG" width="30%" />
2020-06-04 16:36:44 -03:00
<br />
## Dependencies
2020-06-24 17:27:00 -03:00
- Install Curl on Debian based type:
- sudo apt install curl
2020-05-06 17:22:04 -03:00
## How to execute
2020-06-04 16:36:44 -03:00
2020-05-24 16:07:56 -03:00
- python3 PyBlock.py
2020-05-09 18:32:07 -03:00
2020-07-14 20:04:00 -03:00
2021-12-08 17:02:49 -03:00
### Created by
2020-05-06 17:22:04 -03:00
2022-12-19 08:09:30 -03:00
[@Curly60e.](https://twitter.com/curly60e) ⚡️ curly60e@zbd.gg
2022-12-22 14:30:45 +01:00
2022-12-17 18:48:45 +01:00
npub1a78zk8cnczxjudg888f9t3va29vxhevvhdkdqvwe7zk70qx488zsc8573s
2021-11-29 09:25:01 -03:00
2022-01-20 14:47:53 +01:00
### Pentester and contribution by
2021-12-08 17:02:49 -03:00
2022-03-29 23:00:47 +02:00
[@SN.](https://twitter.com/__B__T__C__) ⚡️ sn@getalby.com
2022-12-22 14:30:45 +01:00
2022-12-17 18:48:45 +01:00
npub1h0mlskkqsyct98tldn744wa5j783h8du779c7zdjay29uyzwev4qxx9sjn
2021-12-08 17:02:49 -03:00
### Contributor
2022-03-29 23:00:47 +02:00
[@Danvergara.](https://twitter.com/__danvergara__)
2021-12-08 17:02:49 -03:00
### Tools by
2021-11-28 19:13:11 +01:00
[@SamouraiDev,](https://twitter.com/SamouraiDev)
[@Korynewton,](https://twitter.com/kn3wt)
[@Tippin_Me,](https://twitter.com/tippin_me)
[@TallyCoinApp,](https://twitter.com/tallycoinapp)
2021-12-08 14:00:53 +01:00
[@DJBooth007,](https://twitter.com/djbooth007)
2021-11-28 19:13:11 +01:00
[@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)
2021-12-04 00:24:03 +01:00
[@Whale_Alert,](https://twitter.com/whale_alert)
2021-12-08 14:00:53 +01:00
[@BitcoinExplorer,](https://twitter.com/BitcoinExplorer)
[@JanoSide,](https://twitter.com/janoside)
2022-03-12 03:59:09 +01:00
[@LNstats,](https://twitter.com/LNstats)
[@Slush_Pool,](https://twitter.com/slush_pool)
[@Braiins_Systems,](https://twitter.com/braiins_systems)
2022-04-02 02:42:27 +02:00
[@CKPoolDev,](https://twitter.com/ckpooldev)
[@KanoBTC,](https://twitter.com/kanobtc)
2022-03-12 03:59:09 +01:00
[@JohnCantrell97,](https://twitter.com/JohnCantrell97)
[@JoostJgr,](https://twitter.com/joostjgr)
[@PRguitarman,](https://twitter.com/PRguitarman)
[@NyanCat,](https://twitter.com/nyannyancat)
2022-03-29 23:00:47 +02:00
[@Mononautical,](https://twitter.com/mononautical)
2022-04-22 21:13:44 +02:00
[@Janna3257,](https://twitter.com/Janna3257)
[@Cercatrova_21,](https://twitter.com/cercatrova_21)
2022-10-03 19:41:29 +02:00
[@ChaumDotCom,](https://twitter.com/chaumdotcom)
[@CashuBTC,](https://twitter.com/CashuBTC)
[@CalleBTC,](https://twitter.com/callebtc)
[@0xB10C,](https://twitter.com/0xB10C)
2022-10-05 19:10:16 +02:00
[@BitRawr,](https://twitter.com/bitrawr)
2022-12-19 21:08:41 +01:00
[@Vishalxl,](https://twitter.com/vishalxl)
2022-12-22 00:56:31 +01:00
[@Odudex,](https://twitter.com/odudex)
2022-03-29 23:00:47 +02:00
[@PyPi,](https://pypi.org/project/pybitblock/)
2022-01-20 14:47:53 +01:00
...
2021-04-22 17:41:55 -03:00
2022-04-23 20:32:35 +02:00
## PyBLØCK Widget
2022-04-22 21:05:17 +02:00
## Tutorial
1. Install the app "Scriptable" -> [Apple Appstore - Scriptable](https://apps.apple.com/ch/app/scriptable/id1405459188)
2022-04-22 21:13:44 +02:00
2. Open the app and click the "+" sign on the top right corner.
2022-04-26 22:43:31 +02:00
3. Copy or Download the following script created by [PyBLOCK](https://github.com/curly60e/pyblock/blob/master/PyBL%C3%98CK%20Widget.scriptable):
4. Paste or Open in Scriptable.
2022-04-23 20:28:49 +02:00
5. Run the script.
6. Click and done.
7. Go to the homescreen, press and hold for a few seconds to make the icons move. Tab on the top left corner the "+" symbol.
8. Scroll down untill you find the "Scriptable" App. Select it and scroll to the right for the full sized version.
9. Click "Add Widget" and tab the new created widget to edit it. Select the created script and you're done.
2022-04-22 21:05:17 +02:00
2022-04-26 22:43:31 +02:00
<br />
2022-04-22 21:05:17 +02:00
2022-12-22 14:30:45 +01:00
<img src="https://pbs.twimg.com/media/Fj4xKy0X0AAcBqN.jpg" width="50%" />
2022-04-22 21:05:17 +02:00
2022-04-23 20:32:35 +02:00
## SUPPORT PyBLØCK.
2021-04-22 17:41:55 -03:00
2022-12-19 08:09:54 -03:00
⚡️ curly60e@zbd.gg ⚡️
2022-03-12 03:59:09 +01:00
2022-12-19 08:13:36 -03:00
Bitcoin Address: bc1prwjajvvax2rkm2wzelpfzzc2ncywht69pswnurhzdfj9qujhyxzsqpd3eg
2021-05-24 11:16:51 -03:00
2021-12-03 19:11:39 -03:00
<img src="/pybitblock/images/bitcoin-donation.png" width="30%" />
2021-05-24 11:16:51 -03:00
Samourai Wallet Paynym: PM8TJhNTTq3YVocXuPtLjKx7pKkdUxqwTerWJ2j2a7dNitgyMmBPN6gK61yE17N2vgvQvKYokXktt6D6GZFTmocvDJhaUJfHt7ehEMmthjsT3NQHseFM
2021-04-22 17:41:55 -03:00
2021-12-03 19:11:39 -03:00
<img src="/pybitblock/images/codeimage.png" width="30%" />
2021-04-22 17:41:55 -03:00
2021-05-24 11:29:12 -03:00
Monero: 42jtb4dAfm6BQ8h6x56qGyAMMHVXGRwRMTSb2LwsBg1jVqD4TxfpD1pTK56tkrTMGhEKipZdDHfJrB1g8iQfvSyC7gZ9M8M
2021-04-22 17:41:55 -03:00
2021-12-03 19:11:39 -03:00
<img src="/pybitblock/images/qrcode.png" width="20%" />
2022-12-17 18:50:33 +01:00
2022-12-23 04:21:02 +01:00
PyBLØCK [Nostr Pulic Channel](https://anigma.io/?channel=ddadf6518d23d5e82a112b7965807ea2adfb22ec353a124fbf5f342e8403fdcb)