mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-23 15:20:49 +01:00
rpc/createrawtransaction: redefine addresses as OBJ_USER_KEYS
The OBJ type is for actual objects with defined keys; OBJ_USER_KEYS is for objects with user-defined keys (such as the bitcoin address(es) in the createrawtransaction output object.
This commit is contained in:
parent
d9e2183c50
commit
8500f7bf54
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ static RPCHelpMan createrawtransaction()
|
||||||
"For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also\n"
|
"For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also\n"
|
||||||
" accepted as second parameter.",
|
" accepted as second parameter.",
|
||||||
{
|
{
|
||||||
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
|
{"", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::OMITTED, "",
|
||||||
{
|
{
|
||||||
{"address", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in " + CURRENCY_UNIT},
|
{"address", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in " + CURRENCY_UNIT},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue