1-of-1 P2SH Wallet in bitcoinj

81 views
Skip to first unread message

Pooja Rai

unread,
Feb 4, 2022, 12:06:01 PM2/4/22
to bitcoinj
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!

Andreas Schildbach

unread,
Feb 7, 2022, 10:49:51 AM2/7/22
to bitc...@googlegroups.com
This isn't supported by the Wallet class. It uses either P2PKH or P2WPKH.

Can you describe your usecase?
> --
> 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 bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj+u...@googlegroups.com>.
> 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>.


Reply all
Reply to author
Forward
0 new messages