Is there any code snippets / wallets to send segwit transactions on the testnet at the moment?

I'm more looking for a code snippet or any library to support this to do some tests and make them public as a testing suit for wallet services.

1 Answer 1


bitcoin core supports this

addwitnessaddress "address"

then compose your transaction and send it, you can do it all via RPC calls, so any programming language that can do rpc calls will work (python, php, go, etc. etc)

help addwitnessaddress

addwitnessaddress "address"

Add a witness address for a script (with pubkey or redeemscript known).
It returns the witness script.

1. "address"       (string, required) An address known to the wallet

"witnessaddress",  (string) The value of the new address (P2SH of witness script).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.