Post
Topic
Board Development & Technical Discussion
Topic OP
Example of creating/signing a p2pkh and p2sh testnet Tx using PyCoin ?
by
HeadsOrTails
on 06/08/2015, 11:12:31 UTC
I'm looking for an eg of how to spend a testnet Tx using Pycoin.

Here's the private key (sec) and txid for an unspent BTC0.1. The vout is 0.


Code:
priv =4336520df5693ecffd16038d31b11488cf92207a8d9e3ffff8fd5d46556d1d6e
txid = 75aea43b3a6365718f6cc4e9479b48f582790f5b0fff29f32a0effa26e4762b5

Can someone show me how I'd send the funds to n1hjyVvYQPQtejJcANd5ZJM5rmxHCCgWL7?

And if someone can show me a p2sh eg Tx too, I'm happy to tip the funds @ 1Ae4qudMZEj6raDKwUgLsFriBMmqyMMx4c