getnewaddress "" bech32 generates a
P2WPKH address (e.g.
How can I generate a
P2WSH address (e.g.
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.