Skip to content
Discussion options

You must be logged in to vote

After you made changes to a transaction, for example with add_input or add_output, you need to update it.

You could use the sign_and_update() method. With tx.verify() the transaction will be verified, I don't think this step is required, but it good to check before you try to push the transaction to the network.

Also in your code example the 'testnet4' was not passed to the method, so I think the default 'testnet' was used.

With the code below I got it working

# Create private key, and send btc to address
phrase = 'term teach tunnel candy pledge student acoustic robust total flash marine sound'
k = HDKey().from_passphrase(phrase, network='testnet4')

def create_native_segwit_offline_trans…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mallcoffee123g01-bot
Comment options

@mallcoffee123g01-bot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mccwdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants