Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 1.75 KB

gcp-shell-tutorial.md

File metadata and controls

78 lines (53 loc) · 1.75 KB

Bitcoin in Action playground!!!

Avviando questo tutorial verrai guidato nei primi passi che ti consentiranno di

  • accendere nodi Bitcoin
  • collegare il tuo portafoglio
  • rivere dei 5000 bitcoin

Next steps

  1. Scaricare Bitcoin Core
  2. Playground bootstrap
  3. Connettere Electrum al playground tramite ngrok

Install Bitcoin Core

Esegui il seguente snippet per scaricare Bitcoin Core 0.21

wget https://bitcoincore.org/bin/bitcoin-core-0.21.0/bitcoin-0.21.0-x86_64-linux-gnu.tar.gz && \
tar xzvf bitcoin-0.21.0-x86_64-linux-gnu.tar.gz && \
mv bitcoin-0.21.0/* bitcoin-core && \
rm -Rf bitcoin-0.21.0 && \
rm -Rf bitcoin-0.21.0-x86_64-linux-gnu.tar.gz

Playground bootstrap

docker-compose pull
docker-compose up

Attendere messaggio come descritto al seguente indirizzo

https://playground.bitcoininaction.com/playground-bootstrap#fuoco-alle-polveri

Bitcoin blockchain explorer

Click and change the preview port to 8094.

If everything is fine you'll see something.

Mining

to open a new shell leaving docker-compose running

cd cloudshell_open/bitcoin-in-action-playground

and follow https://playground.bitcoininaction.com/minare-il-primo-blocco-bitcoin

Publish ports of Cloud Shell

To be able to connect with unauthenticated not HTTP only we need something better of web preview :)

./gcp-shell-install-ngrok.sh
ngrok start blockchain-explorer_50001 lightningd_9735 lnd_19735

Connect your Electrum

Using the ngrok domain and port to connect your Electrum wallet

--regtest --oneserver --server {ngrok domain 500001}:{ngrok 50001 port}:t