Skip to content

Instantly share code, notes, and snippets.

@sorce
sorce / send_counterparty_from_trezor.py
Last active November 5, 2019 11:03
Create, sign and send a counterparty transaction from an address controlled by a trezor
#!/usr/bin/env python
'''
if you find this script helpful and would like to give some crypto to
the cause, we would be very happy to receive it :)
donate bitcoin / counterparty: 3L19gTtMMJHpkAjYVduUZETdduwAfM7NGR
'''
import sys
import json
import requests
from requests.auth import HTTPBasicAuth
#!/usr/bin/env python
import sys
import json
import requests
from decimal import Decimal
import logging
from logging.handlers import RotatingFileHandler
worklog = logging.getLogger('sweep_funds')
#shandler = logging.handlers.RotatingFileHandler('sweep_funds.log', maxBytes=1024*1024*10, backupCount=1000)