Working with bitcoinlib
-
Install virtualenv to keep the workshop dependencies isolated from the rest of your system.
pip install virtualenv
- Create a virtualenv
virtualenv .venv
- Activate the virtualenv (Note: this will need to be done anytime you come back to this repo)
source .venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Copy
bitcoin-sample.conf
tobitcoin.conf
and tweak the settings to connect to your own bitcoin node
cp bitcoin-sample.conf bitcoin.conf
- Start up Jupyter
jupyter notebook
- In the web browser, open bitcoinlib.ipynb and begin working!