diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md index 00c49b69..c3d34d20 100644 --- a/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md @@ -70,6 +70,14 @@ All existing inputs must have their previous output transaction be in the wallet p: "Optional
(0 or 1)" d: "A json array of integers. The fee will be equally deducted from the amount of each specified output. The outputs are specified by their zero-based index, before any change output is added." +- n: "→ →
Output index" + t: numeric (int) + p: Optional
(0 or more) + d: "A output index number (vout) from which the fee should be subtracted. + If multiple vouts are provided, the total fee will be divided by the + numer of vouts listed and each vout will have that amount subtracted + from it" + {% enditemplate %} *Result---information about the created transaction* diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendmany.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendmany.md index cc2aa624..f5a9a624 100644 --- a/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendmany.md +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendmany.md @@ -55,6 +55,20 @@ The `sendmany` RPC {{summary_sendMany}} {% enditemplate %} +*Parameter #5---automatic fee subtraction* + +{% itemplate ntpd1 %} +- n: "Subtract Fee From Amount" + t: "array" + p: "Optional
(0 or 1)" + d: "An array of addresses. The fee will be equally divided by as many addresses as are entries in this array and subtracted from each address. If this array is empty or not provided, the fee will be paid by the sender" + +- n: "→
Address" + t: "string (base58)" + p: "Optional (0 or more)" + d: "An address previously listed as one of the recipients." +{% enditemplate %} + *Result---a TXID of the sent transaction* {% itemplate ntpd1 %} diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/sendtoaddress.md index ebdbeff2..5686c062 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*