{"key",RPCArg::Type::STR_HEX,/* opt */false,/* default_val */"","The hex-encoded public key"},
}},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is legacy."},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"legacy","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
"Returns an object containing information about memory usage.\n",
{
{"mode",RPCArg::Type::STR,/* opt */true,/* default_val */"","determines what kind of information is returned. This argument is optional, the default mode is \"stats\".\n"
{"mode",RPCArg::Type::STR,/* opt */true,/* default_val */"\"stats\"","determines what kind of information is returned.\n"
" - \"stats\" returns general statistics about memory usage in the daemon.\n"
" - \"mallocinfo\" returns an XML string describing low-level heap state (only available if compiled with glibc 2.10+)."},
"\nReturns information about the given added node, or all added nodes\n"
"(note that onetry addnodes are not listed here)\n",
{
{"node",RPCArg::Type::STR,/* opt */true,/* default_val */"","If provided, return information about this specific node, otherwise all nodes are returned."},
{"node",RPCArg::Type::STR,/* opt */true,/* default_val */"all nodes","If provided, return information about this specific node, otherwise all nodes are returned."},
{"subnet",RPCArg::Type::STR,/* opt */false,/* default_val */"","The IP/Subnet (see getpeerinfo for nodes IP) with an optional netmask (default is /32 = single IP)"},
{"command",RPCArg::Type::STR,/* opt */false,/* default_val */"","'add' to add an IP/Subnet to the list, 'remove' to remove an IP/Subnet from the list"},
{"bantime",RPCArg::Type::NUM,/* opt */true,/* default_val */"","time in seconds how long (or until when if [absolute] is set) the IP is banned (0 or empty means using the default time of 24h which can also be overwritten by the -bantime startup argument)"},
{"absolute",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","If set, the bantime must be an absolute timestamp in seconds since epoch (Jan 1 1970 GMT)"},
{"bantime",RPCArg::Type::NUM,/* opt */true,/* default_val */"0","time in seconds how long (or until when if [absolute] is set) the IP is banned (0 or empty means using the default time of 24h which can also be overwritten by the -bantime startup argument)"},
{"absolute",RPCArg::Type::BOOL,/* opt */true,/* default_val */"false","If set, the bantime must be an absolute timestamp in seconds since epoch (Jan 1 1970 GMT)"},
{"sequence",RPCArg::Type::NUM,/* opt */true,/* default_val */"depends on the value of the 'replaceable' and 'locktime' arguments","The sequence number"},
{"iswitness",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","Whether the transaction hex is a serialized witness transaction\n"
{"iswitness",RPCArg::Type::BOOL,/* opt */true,/* default_val */"depends on heuristic tests","Whether the transaction hex is a serialized witness transaction\n"
" If iswitness is not present, heuristic tests will be used in decoding"},
{"sequence",RPCArg::Type::NUM,/* opt */true,/* default_val */"depends on the value of the 'replaceable' and 'locktime' arguments","The sequence number"},
{"hexstring",RPCArg::Type::STR_HEX,/* opt */false,/* default_val */"","The hex string of a raw transaction"},
{"permitsigdata",RPCArg::Type::BOOL,/* opt */true,/* default_val */"false","If true, any signatures in the input will be discarded and conversion.\n"
" will continue. If false, RPC will fail if any signatures are present."},
{"iswitness",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","Whether the transaction hex is a serialized witness transaction.\n"
{"iswitness",RPCArg::Type::BOOL,/* opt */true,/* default_val */"depends on heuristic tests","Whether the transaction hex is a serialized witness transaction.\n"
" If iswitness is not present, heuristic tests will be used in decoding. If true, only witness deserializaion\n"
" will be tried. If false, only non-witness deserialization will be tried. Only has an effect if\n"
{"redeemscript",RPCArg::Type::STR,/* opt */true,/* default_val */"","Allowed only if the scriptPubKey is a P2SH or P2SH-P2WSH address/scriptPubKey"},
{"witnessscript",RPCArg::Type::STR,/* opt */true,/* default_val */"","Allowed only if the scriptPubKey is a P2SH-P2WSH or P2WSH address/scriptPubKey"},
{"pubkeys",RPCArg::Type::ARR,/* opt */true,/* default_val */"","Array of strings giving pubkeys that must occur in the output or redeemscript",
{"redeemscript",RPCArg::Type::STR,/* opt */true,/* default_val */"omitted","Allowed only if the scriptPubKey is a P2SH or P2SH-P2WSH address/scriptPubKey"},
{"witnessscript",RPCArg::Type::STR,/* opt */true,/* default_val */"omitted","Allowed only if the scriptPubKey is a P2SH-P2WSH or P2WSH address/scriptPubKey"},
{"pubkeys",RPCArg::Type::ARR,/* opt */true,/* default_val */"empty array","Array of strings giving pubkeys that must occur in the output or redeemscript",
{"keys",RPCArg::Type::ARR,/* opt */true,/* default_val */"","Array of strings giving private keys whose corresponding public keys must occur in the output or redeemscript",
{"keys",RPCArg::Type::ARR,/* opt */true,/* default_val */"empty array","Array of strings giving private keys whose corresponding public keys must occur in the output or redeemscript",
"If 'label' is specified, it is added to the address book \n"
"so payments received with the address will be associated with 'label'.\n",
{
{"label",RPCArg::Type::STR,/* opt */true,/* default_val */"","The label name for the address to be linked to. If not provided, the default label \"\" is used. It can also be set to the empty string \"\" to represent the default label. The label does not need to exist, it will be created if there is no label by the given name."},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -addresstype."},
{"label",RPCArg::Type::STR,/* opt */true,/* default_val */"null","The label name for the address to be linked to. If not provided, the default label \"\" is used. It can also be set to the empty string \"\" to represent the default label. The label does not need to exist, it will be created if there is no label by the given name."},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"set by -addresstype","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
"\nReturns a new Bitcoin address, for receiving change.\n"
"This is for use with raw transactions, NOT normal use.\n",
{
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -changetype."},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"set by -changetype","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
{"address",RPCArg::Type::STR,/* opt */false,/* default_val */"","The bitcoin address to send to."},
{"amount",RPCArg::Type::AMOUNT,/* opt */false,/* default_val */"","The amount in "+CURRENCY_UNIT+" to send. eg 0.1"},
{"comment",RPCArg::Type::STR,/* opt */true,/* default_val */"","A comment used to store what the transaction is for.\n"
{"comment",RPCArg::Type::STR,/* opt */true,/* default_val */"null","A comment used to store what the transaction is for.\n"
" This is not part of the transaction, just kept in your wallet."},
{"comment_to",RPCArg::Type::STR,/* opt */true,/* default_val */"","A comment to store the name of the person or organization\n"
{"comment_to",RPCArg::Type::STR,/* opt */true,/* default_val */"null","A comment to store the name of the person or organization\n"
" to which you're sending the transaction. This is not part of the \n"
" transaction, just kept in your wallet."},
{"subtractfeefromamount",RPCArg::Type::BOOL,/* opt */true,/* default_val */"false","The fee will be deducted from the amount being sent.\n"
" The recipient will receive less bitcoins than you enter in the amount field."},
{"replaceable",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","Allow this transaction to be replaced by a transaction with higher fees via BIP 125"},
{"conf_target",RPCArg::Type::NUM,/* opt */true,/* default_val */"","Confirmation target (in blocks)"},
{"replaceable",RPCArg::Type::BOOL,/* opt */true,/* default_val */"fallback to wallet's default","Allow this transaction to be replaced by a transaction with higher fees via BIP 125"},
{"conf_target",RPCArg::Type::NUM,/* opt */true,/* default_val */"fallback to wallet's default","Confirmation target (in blocks)"},
{"estimate_mode",RPCArg::Type::STR,/* opt */true,/* default_val */"UNSET","The fee estimate mode, must be one of:\n"
{"address",RPCArg::Type::STR,/* opt */true,/* default_val */"","Subtract fee from this address"},
},
},
{"replaceable",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","Allow this transaction to be replaced by a transaction with higher fees via BIP 125"},
{"conf_target",RPCArg::Type::NUM,/* opt */true,/* default_val */"","Confirmation target (in blocks)"},
{"replaceable",RPCArg::Type::BOOL,/* opt */true,/* default_val */"fallback to wallet's default","Allow this transaction to be replaced by a transaction with higher fees via BIP 125"},
{"conf_target",RPCArg::Type::NUM,/* opt */true,/* default_val */"fallback to wallet's default","Confirmation target (in blocks)"},
{"estimate_mode",RPCArg::Type::STR,/* opt */true,/* default_val */"UNSET","The fee estimate mode, must be one of:\n"
{"key",RPCArg::Type::STR,/* opt */false,/* default_val */"","bitcoin address or hex-encoded public key"},
},
},
{"label",RPCArg::Type::STR,/* opt */true,/* default_val */"","A label to assign the addresses to."},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -addresstype."},
{"label",RPCArg::Type::STR,/* opt */true,/* default_val */"null","A label to assign the addresses to."},
{"address_type",RPCArg::Type::STR,/* opt */true,/* default_val */"set by -addresstype","The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
"If \"blockhash\" is no longer a part of the main chain, transactions from the fork point onward are included.\n"
"Additionally, if include_removed is set, transactions affecting the wallet which were removed are returned in the \"removed\" array.\n",
{
{"blockhash",RPCArg::Type::STR,/* opt */true,/* default_val */"","The block hash to list transactions since"},
{"blockhash",RPCArg::Type::STR,/* opt */true,/* default_val */"null","If set, the block hash to list transactions since, otherwise list all transactions."},
{"target_confirmations",RPCArg::Type::NUM,/* opt */true,/* default_val */"1","Return the nth block hash from the main chain. e.g. 1 would mean the best block hash. Note: this is not used as a filter, but only affects [lastblock] in the return value"},
{"include_watchonly",RPCArg::Type::BOOL,/* opt */true,/* default_val */"false","Include transactions to watch-only addresses (see 'importaddress')"},
{"include_removed",RPCArg::Type::BOOL,/* opt */true,/* default_val */"true","Show transactions that were removed due to a reorg in the \"removed\" array\n"
"Only pay-to-pubkey, multisig, and P2SH versions thereof are currently supported for watch-only\n",
{
{"hexstring",RPCArg::Type::STR_HEX,/* opt */false,/* default_val */"","The hex string of the raw transaction"},
{"options",RPCArg::Type::OBJ,/* opt */true,/* default_val */"","for backward compatibility: passing in a true instead of an object will result in {\"includeWatching\":true}",
{"options",RPCArg::Type::OBJ,/* opt */true,/* default_val */"null","for backward compatibility: passing in a true instead of an object will result in {\"includeWatching\":true}",
{
{"changeAddress",RPCArg::Type::STR,/* opt */true,/* default_val */"pool address","The bitcoin address to receive the change"},
{"changePosition",RPCArg::Type::NUM,/* opt */true,/* default_val */"random","The index of the change output"},
{"change_type",RPCArg::Type::STR,/* opt */true,/* default_val */"","The output type to use. Only valid if changeAddress is not specified. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -changetype."},
{"change_type",RPCArg::Type::STR,/* opt */true,/* default_val */"set by -changetype","The output type to use. Only valid if changeAddress is not specified. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
{"includeWatching",RPCArg::Type::BOOL,/* opt */true,/* default_val */"false","Also select inputs which are watch only"},
{"feeRate",RPCArg::Type::AMOUNT,/* opt */true,/* default_val */"not set: makes wallet determine the fee","Set a specific fee rate in "+CURRENCY_UNIT+"/kB"},
{"subtractFeeFromOutputs",RPCArg::Type::ARR,/* opt */true,/* default_val */"","A json array of integers.\n"
{"subtractFeeFromOutputs",RPCArg::Type::ARR,/* opt */true,/* default_val */"empty array","A json array of integers.\n"
" The fee will be equally deducted from the amount of each specified output.\n"
" The outputs are specified by their zero-based index, before any change output is added.\n"
" Those recipients will receive less bitcoins than you enter in their corresponding amount field.\n"
" If no outputs are specified here, the sender pays the fee.",
{
{"vout_index",RPCArg::Type::NUM,/* opt */true,/* default_val */"","The zero-based output index, before a change output is added."},
},
},
{"replaceable",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","Marks this transaction as BIP125 replaceable.\n"
{"replaceable",RPCArg::Type::BOOL,/* opt */true,/* default_val */"fallback to wallet's default","Marks this transaction as BIP125 replaceable.\n"
" Allows this transaction to be replaced by a transaction with higher fees"},
{"conf_target",RPCArg::Type::NUM,/* opt */true,/* default_val */"","Confirmation target (in blocks)"},
{"conf_target",RPCArg::Type::NUM,/* opt */true,/* default_val */"fallback to wallet's default","Confirmation target (in blocks)"},
{"estimate_mode",RPCArg::Type::STR,/* opt */true,/* default_val */"UNSET","The fee estimate mode, must be one of:\n"
"\"UNSET\"\n"
"\"ECONOMICAL\"\n"
"\"CONSERVATIVE\""},
},
"options"},
{"iswitness",RPCArg::Type::BOOL,/* opt */true,/* default_val */"","Whether the transaction hex is a serialized witness transaction \n"
{"iswitness",RPCArg::Type::BOOL,/* opt */true,/* default_val */"depends on heuristic tests","Whether the transaction hex is a serialized witness transaction \n"
" If iswitness is not present, heuristic tests will be used in decoding"},
"\nReturns the list of all labels, or labels that are assigned to addresses with a specific purpose.\n",
{
{"purpose",RPCArg::Type::STR,/* opt */true,/* default_val */"","Address purpose to list labels for ('send','receive'). An empty string is the same as not providing this argument."},
{"purpose",RPCArg::Type::STR,/* opt */true,/* default_val */"null","Address purpose to list labels for ('send','receive'). An empty string is the same as not providing this argument."},
" If true, the next address from getnewaddress and change address from getrawchangeaddress will be from this new seed.\n"
" If false, addresses (including change addresses if the wallet already had HD Chain Split enabled) from the existing\n"
" keypool will be used until it has been depleted."},
{"seed",RPCArg::Type::STR,/* opt */true,/* default_val */"","The WIF private key to use as the new HD seed; if not provided a random seed will be used.\n"
{"seed",RPCArg::Type::STR,/* opt */true,/* default_val */"random seed","The WIF private key to use as the new HD seed.\n"
" The seed value can be retrieved using the dumpwallet command. It is the private key marked hdseed=1"},
{"address",RPCArg::Type::AMOUNT,/* opt */true,/* default_val */"","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,/* opt */false,/* default_val */"","A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in "+CURRENCY_UNIT+""},
{"data",RPCArg::Type::STR_HEX,/* opt */true,/* default_val */"","A key-value pair. The key must be \"data\", the value is hex-encoded data"},
{"data",RPCArg::Type::STR_HEX,/* opt */false,/* default_val */"","A key-value pair. The key must be \"data\", the value is hex-encoded data"},
},
},
},
},
{"locktime",RPCArg::Type::NUM,/* opt */true,/* default_val */"0","Raw locktime. Non-0 value also locktime-activates inputs\n"
" Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible."},
{"changeAddress",RPCArg::Type::STR_HEX,/* opt */true,/* default_val */"pool address","The bitcoin address to receive the change"},
{"changePosition",RPCArg::Type::NUM,/* opt */true,/* default_val */"random","The index of the change output"},
{"change_type",RPCArg::Type::STR,/* opt */true,/* default_val */"","The output type to use. Only valid if changeAddress is not specified. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -changetype."},
{"change_type",RPCArg::Type::STR,/* opt */true,/* default_val */"set by -changetype","The output type to use. Only valid if changeAddress is not specified. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
{"includeWatching",RPCArg::Type::BOOL,/* opt */true,/* default_val */"false","Also select inputs which are watch only"},
{"feeRate",RPCArg::Type::AMOUNT,/* opt */true,/* default_val */"not set: makes wallet determine the fee","Set a specific fee rate in "+CURRENCY_UNIT+"/kB"},
{"subtractFeeFromOutputs",RPCArg::Type::ARR,/* opt */true,/* default_val */"","A json array of integers.\n"
{"subtractFeeFromOutputs",RPCArg::Type::ARR,/* opt */true,/* default_val */"empty array","A json array of integers.\n"
" The fee will be equally deducted from the amount of each specified output.\n"
" The outputs are specified by their zero-based index, before any change output is added.\n"
" Those recipients will receive less bitcoins than you enter in their corresponding amount field.\n"
" If no outputs are specified here, the sender pays the fee.",