These recipes include some command-line utilities written with many comments and designed to be easy to follow. You can use them as a template for your own code.
This script shows you how to create a “2-of-3” multisig address. It requires BIP32 private key file.
This script creates a fake coinbase transaction to an address of your choosing so you can test code that spends this output.
This script shows you how to spend coins from an incoming transaction. It expects an incoming transaction in hex format a file (“incoming-tx.hex”) and a bitcoin address, and it spends the coins from the selected output of in incoming transaction to the address you choose.
It does NOT sign the transaction. That’s done by 4_sign_tx.py.