createwitnessaddress

util

v0.13.0

createwitnessaddress "script"

Creates a witness address for a particular script.
It returns a json object with the address and witness script.

Arguments:
1. "script" (string, required) A hex encoded script

Result:
{
"address":"multisigaddress", (string) The value of the new address (P2SH of witness script).
"witnessScript":"script" (string) The string value of the hex-encoded witness script.
}
Don't trust. Verify. Docs extracted from src/rpc/misc.cpp#L322-L338.