getnewaddress "" bech32 generates a
P2WPKH address (e.g.
How can I generate a
P2WSH address (e.g.
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
To generate a P2WSH address, you need to have some script. The most easiest one you can use is a multisig script. You can do this with the
addmultisigaddress. If you do something like
addmultisigaddress 1 '["37Ju7oTbPfe5qNAHYiAKfdTtVvCSP3TTdL"]' "" "bech32"
you should get a P2WSH address.