January 2019
Beginner to intermediate
372 pages
11h 17m
English
We'll make use of a Python package called python-bitcoinlib, which has a set of libraries that provide an interface to Bitcoin's data structures and can access Bitcoin client APIs. It invokes the Bitcoin client's methods through the RPC interface.
All the required functions and data structures are imported from the bitcoin module, as shown here:
from bitcoin import SelectParams import bitcoin.rpc import math import time from bitcoin.core import b2x, b2lx, str_money_value, COIN, CMutableTransaction, CMutableTxIn, CMutableTxOut from bitcoin.wallet import CBitcoinAddress
A chain is selected to create a connection. The chain could be mainnet, testnet, or regtest. We will use Bitcoin's test network for ...
Read now
Unlock full access