Skip to content

Commit bd200a0

Browse files
committed
Adds subtractfeefromamount to sendmany and sendtoaddress calls
1 parent 8270bfd commit bd200a0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bitcoin/rpc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,18 +527,18 @@ def sendrawtransaction(self, tx, allowhighfees=False):
527527
r = self._call('sendrawtransaction', hextx)
528528
return lx(r)
529529

530-
def sendmany(self, fromaccount, payments, minconf=1, comment=''):
530+
def sendmany(self, fromaccount, payments, minconf=1, comment='', subtractfeefromamount=False):
531531
"""Sent amount to a given address"""
532532
json_payments = {str(addr):float(amount)/COIN
533533
for addr, amount in payments.items()}
534-
r = self._call('sendmany', fromaccount, json_payments, minconf, comment)
534+
r = self._call('sendmany', fromaccount, json_payments, minconf, comment, subtractfeefromamount)
535535
return lx(r)
536536

537-
def sendtoaddress(self, addr, amount):
537+
def sendtoaddress(self, addr, amount, comment='', commentto='', subtractfeefromamount=False):
538538
"""Sent amount to a given address"""
539539
addr = str(addr)
540540
amount = float(amount)/COIN
541-
r = self._call('sendtoaddress', addr, amount)
541+
r = self._call('sendtoaddress', addr, amount, comment, commentto, subtractfeefromamount)
542542
return lx(r)
543543

544544
def signrawtransaction(self, tx, *args):

0 commit comments

Comments
 (0)