Skip to content

Instantly share code, notes, and snippets.

@justinmoon
Created July 19, 2019 09:24
Show Gist options
  • Save justinmoon/0a072344881aafc50bbf0975cf8f16e4 to your computer and use it in GitHub Desktop.
Save justinmoon/0a072344881aafc50bbf0975cf8f16e4 to your computer and use it in GitHub Desktop.

Wallet Creation

# Create 3/3 wallet
$ python cli.py createwallet 3 3
Your new 3/3 wallet has been saved to "junction.wallet"

# Once your transaction has confirmed, create a PSBT:
$ python cli.py --wallet blt createpsbt <recipient> <amount-in-btc>
Your PSBT for wallet "blt" has been created

# Plug in Ledger, enter pin, navigate to testnet app
# Add Ledger "signer" to wallet
$ python cli.py addsigner <choose-name-for-this-device>

# Unplug Ledger and plug in BitBox
# Add BitBox "signer" to wallet
$ python cli.py addsigner <choose-name-for-this-device> --password <bitbox-password>

# Unplug BitBox and plug in Trezor
# Add Trezor "signer" to wallet
$ python cli.py addsigner <choose-name-for-this-device>
Use the numeric keypad to enter your pin. The layout is:
	7 8 9
	4 5 6
	1 2 3
Pin: 362751984
Wallet "junction" is ready to use. Your first receiving address:
<receiving-address>

Send some TBTC to . Here's a testnet faucet if you don't have any TBTC on hand: https://testnet-faucet.mempool.co/

Spending

# Plug in Trezor
# Pin shown is what you'd enter in case pictured below:
$ python cli.py --wallet blt signpsbt
Use the numeric keypad to enter your pin. The layout is:
	7 8 9
	4 5 6
	1 2 3
Pin: 362751984
Confirm on your device
<confirm on trezor>

# Unplug Trezor. Plug in BitBox. BitBox needs a passphrase:
$ python cli.py --wallet blt signpsbt --password <bitbox-password>


# Unplug BitBox. Plug in Ledger. Enter PIN and navigat to testnet app:
$ python cli.py --wallet blt signpsbt

# Broadcast transaction
$ python cli.py broadcast

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment