wallet: rpc: manpage: fix example missing `fee_rate` argument
What changed, and why it matters
This commit fixes a typo in the documentation example for the `send` RPC command. The example was missing a placeholder for the `fee_rate` argument, which caused the example command to be interpreted incorrectly and produce an error if copied exactly. It is a documentation-only change and does not alter any executable code.
No security action required. Treat as a normal documentation fix.
Security signals we found
Documentation-only correction
No executable code changed
No RPC behavior or validation logic modified
Evidence from the diff
The change updates an inline help/manpage example in src/wallet/rpc/spend.cpp for the send RPC. The previous example omitted the positional fee_rate argument while trying to pass options by position, so the parser treated the options JSON object as fee_rate. The fix inserts null as the fee_rate placeholder so the subsequent positional argument is correctly parsed as options. No RPC logic, parsing rules, or wallet behavior is modified.
Changed components
src/wallet/rpc/spend.cppbitcoin-cli `send` RPC help/manpage exampleInspect captured patch +1 / −1
diff --git a/src/wallet/rpc/spend.cpp b/src/wallet/rpc/spend.cpp
index 64cf95a4..467f2790 100644
--- a/src/wallet/rpc/spend.cpp
+++ b/src/wallet/rpc/spend.cpp
@@ -1297,7 +1297,7 @@ RPCHelpMan send()
"Send 0.3 BTC with a fee rate of 25 " + CURRENCY_ATOM + "/vB using named arguments\n"
+ HelpExampleCli("-named send", "outputs='{\"" + EXAMPLE_ADDRESS[0] + "\": 0.3}' fee_rate=25\n") +
"Create a transaction that should confirm the next block, with a specific input, and return result without adding to wallet or broadcasting to the network\n"
- + HelpExampleCli("send", "'{\"" + EXAMPLE_ADDRESS[0] + "\": 0.1}' 1 economical '{\"add_to_wallet\": false, \"inputs\": [{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\", \"vout\":1}]}'")
+ + HelpExampleCli("send", "'{\"" + EXAMPLE_ADDRESS[0] + "\": 0.1}' 1 economical null '{\"add_to_wallet\": false, \"inputs\": [{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\", \"vout\":1}]}'")
},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
Why this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.