mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Merge pull request #1626 from d2597b33-2ac1-4c27-af8e-5794285e8600/patch-1
Add subtractfeeamount parameter
This commit is contained in:
commit
d827ca08c4
3 changed files with 33 additions and 1 deletions
|
@ -70,6 +70,14 @@ All existing inputs must have their previous output transaction be in the wallet
|
|||
p: "Optional<br>(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: "→ →<br>Output index"
|
||||
t: numeric (int)
|
||||
p: Optional<br>(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*
|
||||
|
|
|
@ -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<br>(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: "→<br>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 %}
|
||||
|
|
|
@ -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<br>(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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue