This isn't supported by the Wallet class. It uses either P2PKH or P2WPKH.

Can you describe your usecase?


On 04/02/2022 15.05, Pooja Rai wrote:
Hi everyone,
I am able to create a 1-of-1 P2SH address. How can I create a Wallet with 1-of-1 P2SH address.
Using this code throws exception-
Wallet wallet = Wallet.createDeterministic(mainParams, Script.ScriptType.P2WPKH);

Thanks for help in advance!

--
You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/bitcoinj/bd5989d5-b62b-4c3a-b0ee-841daa779351n%40googlegroups.com <https://groups.google.com/d/msgid/bitcoinj/bd5989d5-b62b-4c3a-b0ee-841daa779351n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bitcoinj/strf2m%2416pe%241%40ciao.gmane.io.

Reply via email to