mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
util: HelpExampleRpc formatting fixup
to conform to json-rpc spec as per https://www.jsonrpc.org/specification#examples
This commit is contained in:
parent
d20d5dc824
commit
a33cffbeab
1 changed files with 2 additions and 2 deletions
|
@ -116,8 +116,8 @@ std::string HelpExampleCli(const std::string& methodname, const std::string& arg
|
|||
|
||||
std::string HelpExampleRpc(const std::string& methodname, const std::string& args)
|
||||
{
|
||||
return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", "
|
||||
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n";
|
||||
return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", "
|
||||
"\"method\": \"" + methodname + "\", \"params\": [" + args + "]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n";
|
||||
}
|
||||
|
||||
// Converts a hex string to a public key if possible
|
||||
|
|
Loading…
Add table
Reference in a new issue