From 00202e278365062c9da52c6b2fdcb7b3be362e8b Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Mon, 12 Jun 2017 11:23:33 +0100 Subject: [PATCH] Add subtractfeeamount parameter Source: https://github.com/bitcoin/bitcoin/blob/e4918316d80f0541189c40039095c716a09d636e/src/wallet/rpcwallet.cpp#L403 --- .../devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md index ebdbeff2..b6bba243 100644 --- a/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md @@ -56,6 +56,16 @@ The `sendtoaddress` RPC {{summary_sendToAddress}} {% enditemplate %} +*Parameter #5---automatic fee subtraction + +{% itemplate ntpd1 %} +- n: "Subtract Fee From Amount" + t: "boolean" + p: "Optional
(0 or 1)" + d: "The fee will be deducted from the amount being sent. The recipient will receive less bitcoins than you enter in the amount field. Default is false" + +{% enditemplate %} + *Result---a TXID of the sent transaction* {% itemplate ntpd1 %} @@ -63,7 +73,7 @@ The `sendtoaddress` RPC {{summary_sendToAddress}} t: "string" p: "Required
(exactly 1)" d: "The TXID of the sent transaction, encoded as hex in RPC byte order" - + {% enditemplate %} *Example from Bitcoin Core 0.10.0*