mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge #14877: rpc: Document default values for optional arguments
fa0c24c96e rpc: Document default values for optional arguments (MarcoFalke) Pull request description: Tree-SHA512: e1f5ea67d7ac67526ae87bffaeb308a9ad68632e161fe0148cd431a340bb7a30def18f1dbc7e98c6c1c269ac8942fd5d5334c85c48e4fb1cead70a42536b6eef
This commit is contained in:
parent
3c2eef8e82
commit
e4557b0067
@ -907,7 +907,7 @@ static UniValue estimaterawfee(const JSONRPCRequest& request)
|
|||||||
{"conf_target", RPCArg::Type::NUM, RPCArg::Optional::NO, "Confirmation target in blocks (1 - 1008)"},
|
{"conf_target", RPCArg::Type::NUM, RPCArg::Optional::NO, "Confirmation target in blocks (1 - 1008)"},
|
||||||
{"threshold", RPCArg::Type::NUM, /* default */ "0.95", "The proportion of transactions in a given feerate range that must have been\n"
|
{"threshold", RPCArg::Type::NUM, /* default */ "0.95", "The proportion of transactions in a given feerate range that must have been\n"
|
||||||
" confirmed within conf_target in order to consider those feerates as high enough and proceed to check\n"
|
" confirmed within conf_target in order to consider those feerates as high enough and proceed to check\n"
|
||||||
" lower buckets. Default: 0.95"},
|
" lower buckets."},
|
||||||
},
|
},
|
||||||
RPCResult{
|
RPCResult{
|
||||||
"{\n"
|
"{\n"
|
||||||
|
@ -924,7 +924,7 @@ static UniValue signrawtransactionwithkey(const JSONRPCRequest& request)
|
|||||||
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
||||||
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output number"},
|
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output number"},
|
||||||
{"scriptPubKey", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "script key"},
|
{"scriptPubKey", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "script key"},
|
||||||
{"redeemScript", RPCArg::Type::STR_HEX, /* default_val */ "", "(required for P2SH or P2WSH) redeem script"},
|
{"redeemScript", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "(required for P2SH or P2WSH) redeem script"},
|
||||||
{"amount", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The amount spent"},
|
{"amount", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The amount spent"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -1484,7 +1484,7 @@ UniValue createpsbt(const JSONRPCRequest& request)
|
|||||||
{
|
{
|
||||||
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
||||||
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output number"},
|
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output number"},
|
||||||
{"sequence", RPCArg::Type::NUM, /* default */ "", "The sequence number"},
|
{"sequence", RPCArg::Type::NUM, /* default */ "depends on the value of 'locktime' argument", "The sequence number"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -115,7 +115,7 @@ struct RPCArg {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the type string of the argument.
|
* Return the type string of the argument.
|
||||||
* Set oneline to allow it to be overrided by a custom oneline type string (m_oneline_description).
|
* Set oneline to allow it to be overridden by a custom oneline type string (m_oneline_description).
|
||||||
*/
|
*/
|
||||||
std::string ToString(bool oneline) const;
|
std::string ToString(bool oneline) const;
|
||||||
/**
|
/**
|
||||||
|
@ -1601,7 +1601,7 @@ static UniValue listsinceblock(const JSONRPCRequest& request)
|
|||||||
"If \"blockhash\" is no longer a part of the main chain, transactions from the fork point onward are included.\n"
|
"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",
|
"Additionally, if include_removed is set, transactions affecting the wallet which were removed are returned in the \"removed\" array.\n",
|
||||||
{
|
{
|
||||||
{"blockhash", RPCArg::Type::STR, RPCArg::Optional::OMITTED_NAMED_ARG, "If set, the block hash to list transactions since"},
|
{"blockhash", RPCArg::Type::STR, RPCArg::Optional::OMITTED_NAMED_ARG, "If set, the block hash to list transactions since, otherwise list all transactions."},
|
||||||
{"target_confirmations", RPCArg::Type::NUM, /* default */ "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"},
|
{"target_confirmations", RPCArg::Type::NUM, /* default */ "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, /* default */ "false", "Include transactions to watch-only addresses (see 'importaddress')"},
|
{"include_watchonly", RPCArg::Type::BOOL, /* default */ "false", "Include transactions to watch-only addresses (see 'importaddress')"},
|
||||||
{"include_removed", RPCArg::Type::BOOL, /* default */ "true", "Show transactions that were removed due to a reorg in the \"removed\" array\n"
|
{"include_removed", RPCArg::Type::BOOL, /* default */ "true", "Show transactions that were removed due to a reorg in the \"removed\" array\n"
|
||||||
@ -3403,7 +3403,6 @@ static UniValue fundrawtransaction(const JSONRPCRequest& request)
|
|||||||
{"feeRate", RPCArg::Type::AMOUNT, /* default */ "not set: makes wallet determine the fee", "Set a specific fee rate in " + CURRENCY_UNIT + "/kB"},
|
{"feeRate", RPCArg::Type::AMOUNT, /* default */ "not set: makes wallet determine the fee", "Set a specific fee rate in " + CURRENCY_UNIT + "/kB"},
|
||||||
{"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "A json array of integers.\n"
|
{"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "A json array of integers.\n"
|
||||||
" The fee will be equally deducted from the amount of each specified output.\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 dash than you enter in their corresponding amount field.\n"
|
" Those recipients will receive less dash than you enter in their corresponding amount field.\n"
|
||||||
" If no outputs are specified here, the sender pays the fee.",
|
" If no outputs are specified here, the sender pays the fee.",
|
||||||
{
|
{
|
||||||
@ -4125,7 +4124,6 @@ UniValue walletcreatefundedpsbt(const JSONRPCRequest& request)
|
|||||||
{"feeRate", RPCArg::Type::AMOUNT, /* default */ "not set: makes wallet determine the fee", "Set a specific fee rate in " + CURRENCY_UNIT + "/kB"},
|
{"feeRate", RPCArg::Type::AMOUNT, /* default */ "not set: makes wallet determine the fee", "Set a specific fee rate in " + CURRENCY_UNIT + "/kB"},
|
||||||
{"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "A json array of integers.\n"
|
{"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "A json array of integers.\n"
|
||||||
" The fee will be equally deducted from the amount of each specified output.\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 Dash than you enter in their corresponding amount field.\n"
|
" Those recipients will receive less Dash than you enter in their corresponding amount field.\n"
|
||||||
" If no outputs are specified here, the sender pays the fee.",
|
" If no outputs are specified here, the sender pays the fee.",
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user