addwitnessaddress

wallet

v0.14.0

addwitnessaddress "address"

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

Result:
"witnessaddress", (string) The value of the new address (P2SH of witness script).
}
Don't trust. Verify. Docs extracted from src/wallet/rpcwallet.cpp#L1089-L1106.