<p>bitcoin core supports this</p>

<pre><code>addwitnessaddress "address"
</code></pre>

<p>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)</p>

<pre><code>help addwitnessaddress


addwitnessaddress "address"

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

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

Result:
"witnessaddress",  (string) The value of the new address (P2SH of witness script).
}
</code></pre>

CC BY-SA 3.0
2017-07-21T22:49:05.080Z
2017-07-21T22:49:05.080Z
Albert S
<p>Is there any code snippets / wallets to send segwit transactions on the testnet at the moment? </p>

<p>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.</p>

<transactions><development><testnet><segregated-witness>
What library or wallet can be used to test segwit transactions on testnet?
Shayan
# What library or wallet can be used to test segwit transactions on testnet?

(Asked by: username_0 on 2017-07-20)

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.

**Tags:** transactions, development, testnet, segregated-witness


---

## 1 answers

### Answer by username_1 on 2017-07-21. Score: 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.

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

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

```


---

