@@ -459,12 +459,17 @@ static RPCHelpMan sendtoaddress()
459
459
},
460
460
},
461
461
RPCExamples{
462
- HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1" )
463
- + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1 \" donation\" \" seans outpost\" " )
464
- + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1 \"\" \"\" true" )
465
- + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1 \"\" \"\" false true 0.00002 " + (CURRENCY_UNIT + " /kB" ))
466
- + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1 \"\" \"\" false true 2 " + (CURRENCY_ATOM + " /B" ))
467
- + HelpExampleRpc (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" , 0.1, \" donation\" , \" seans outpost\" " )
462
+ " \n Send 0.1 BTC\n "
463
+ + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1" ) +
464
+ " \n Send 0.1 BTC with a confirmation target of 6 blocks in economical fee estimate mode using positional arguments\n "
465
+ + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1 \" donation\" \" sean's outpost\" false true 6 economical" ) +
466
+ " \n Send 0.1 BTC with a fee rate of 1 " + CURRENCY_ATOM + " /vB, subtract fee from amount, BIP125-replaceable, using positional arguments\n "
467
+ + HelpExampleCli (" sendtoaddress" , " \" " + EXAMPLE_ADDRESS[0 ] + " \" 0.1 \" drinks\" \" room77\" true true 0 \"\" 1" ) +
468
+ " \n Send 0.2 BTC with a confirmation target of 6 blocks in economical fee estimate mode using named arguments\n "
469
+ + HelpExampleCli (" -named sendtoaddress" , " address=\" " + EXAMPLE_ADDRESS[0 ] + " \" amount=0.2 conf_target=6 estimate_mode=\" economical\" " ) +
470
+ " \n Send 0.5 BTC with a fee rate of 25 " + CURRENCY_ATOM + " /vB using named arguments\n "
471
+ + HelpExampleCli (" -named sendtoaddress" , " address=\" " + EXAMPLE_ADDRESS[0 ] + " \" amount=0.5 fee_rate=25" )
472
+ + HelpExampleCli (" -named sendtoaddress" , " address=\" " + EXAMPLE_ADDRESS[0 ] + " \" amount=0.5 fee_rate=25 subtractfeefromamount=false replaceable=true avoid_reuse=true comment=\" 2 pizzas\" comment_to=\" jeremy\" verbose=true" )
468
473
},
469
474
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
470
475
{
@@ -4064,9 +4069,15 @@ static RPCHelpMan send()
4064
4069
}
4065
4070
},
4066
4071
RPCExamples{" "
4067
- " \n Send with a fee rate of 1 satoshi per byte\n "
4068
- + HelpExampleCli (" send" , " '{\" " + EXAMPLE_ADDRESS[0 ] + " \" : 0.1}' 1 sat/b\n " ) +
4069
- " \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 "
4072
+ " \n Send 0.1 BTC with a confirmation target of 6 blocks in economical fee estimate mode\n "
4073
+ + HelpExampleCli (" send" , " '{\" " + EXAMPLE_ADDRESS[0 ] + " \" : 0.1}' 6 economical\n " ) +
4074
+ " Send 0.2 BTC with a fee rate of 1 " + CURRENCY_ATOM + " /vB using positional arguments\n "
4075
+ + HelpExampleCli (" send" , " '{\" " + EXAMPLE_ADDRESS[0 ] + " \" : 0.2}' 0 \"\" 1\n " ) +
4076
+ " Send 0.2 BTC with a fee rate of 1 " + CURRENCY_ATOM + " /vB using the options argument\n "
4077
+ + HelpExampleCli (" send" , " '{\" " + EXAMPLE_ADDRESS[0 ] + " \" : 0.2}' '{\" fee_rate\" : 1}'\n " ) +
4078
+ " Send 0.3 BTC with a fee rate of 25 " + CURRENCY_ATOM + " /vB using named arguments\n "
4079
+ + HelpExampleCli (" -named send" , " outputs='{\" " + EXAMPLE_ADDRESS[0 ] + " \" : 0.3}' fee_rate=25\n " ) +
4080
+ " 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 "
4070
4081
+ HelpExampleCli (" send" , " '{\" " + EXAMPLE_ADDRESS[0 ] + " \" : 0.1}' 1 economical '{\" add_to_wallet\" : false, \" inputs\" : [{\" txid\" :\" a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\" , \" vout\" :1}]}'" )
4071
4082
},
4072
4083
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
0 commit comments