Created
September 7, 2017 17:04
-
-
Save mflaxman/14e62e46bbc85068fa3d0fd2e00c8df5 to your computer and use it in GitHub Desktop.
Revisions
-
mflaxman created this gist
Sep 7, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ from pycoin.tx.tx_utils import create_signed_tx from pycoin.services.blockcypher import BlockcypherProvider # inspect your spendables spendables = [x.as_text() for x in BlockcypherProvider().spendables_for_address(address=FROM_ADDRESS)] # sign TX signed_tx = create_signed_tx( spendables=spendables, payables=[TO_ADDRESS], wifs=[WIF], fee=FEE_IN_SATOSHIS, ) # inspect signed TX and then use a pushtx service to broadcast signed_tx.as_hex()