Merge ElementsProject/elements#1160: Fix createblindedaddress help message

fb5132b7bb Fix createblindedaddress help message (Andrea Bonel)

Pull request description:

ACKs for top commit:
  delta1:
    ACK fb5132b
  stevenroose:
    utACK fb5132b7bb

Tree-SHA512: dd60dac485815b8e02a6dd239862fdc079ad53a7079b75ded3fbd1552a88514b0e5168749d2ad186b589ebbe9d73a1d490f263978bbc67b516ec461e191ef139
This commit is contained in:
Steven Roose 2022-09-06 16:06:00 +02:00
commit da236e8ad9
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87

View file

@ -991,13 +991,13 @@ static RPCHelpMan createblindedaddress()
"\nCreates a blinded address using the provided blinding key.\n",
{
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The unblinded address to be blinded."},
{"blinding_key", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The blinding public key. This can be obtained for a given address using `validateaddress`."},
{"blinding_key", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The blinding public key. This can be obtained for a given address using `getaddressinfo` (`confidential_key` field)."},
},
RPCResult{
RPCResult::Type::STR, "blinded_address", "The blinded address"
},
RPCExamples{
"\nCreate a multisig address from 2 addresses\n"
"\nCreate a blinded address\n"
+ HelpExampleCli("createblindedaddress", "HEZk3iQi1jC49bxUriTtynnXgWWWdAYx16 ec09811118b6febfa5ebe68642e5091c418fbace07e655da26b4a845a691fc2d") +
"\nAs a json rpc call\n"
+ HelpExampleRpc("createblindedaddress", "HEZk3iQi1jC49bxUriTtynnXgWWWdAYx16, ec09811118b6febfa5ebe68642e5091c418fbace07e655da26b4a845a691fc2d")