addwitnessaddress
wallet removed deprecated v0.16 removed v0.17
This RPC no longer exists in Bitcoin Core.
Documented here so users finding old tutorials, blog posts, or code samples
can learn what it did, when it went away, and what to use instead.
Added a witness address for a script with known pubkey or redeemscript. Replaced by passing an address-type argument to getnewaddress.
Use instead
Last-known help text
From the version just before removal.
addwitnessaddress address ( p2sh )
DEPRECATED. 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
2. p2sh (boolean, optional, default=true) Embed inside P2SH
Use getnewaddress with the address-type argument instead.