Skip to content

Commit f2a3d9e

Browse files
rpc.py: fix some documentation errors
Explain "payments" arguments in sendmany.
1 parent edae39f commit f2a3d9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bitcoin/rpc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,14 +609,17 @@ def sendrawtransaction(self, tx, allowhighfees=False):
609609
return lx(r)
610610

611611
def sendmany(self, fromaccount, payments, minconf=1, comment='', subtractfeefromamount=[]):
612-
"""Sent amount to a given address"""
612+
"""Send amount to given addresses.
613+
614+
payments - dict with {address: amount}
615+
"""
613616
json_payments = {str(addr):float(amount)/COIN
614617
for addr, amount in payments.items()}
615618
r = self._call('sendmany', fromaccount, json_payments, minconf, comment, subtractfeefromamount)
616619
return lx(r)
617620

618621
def sendtoaddress(self, addr, amount, comment='', commentto='', subtractfeefromamount=False):
619-
"""Sent amount to a given address"""
622+
"""Send amount to a given address"""
620623
addr = str(addr)
621624
amount = float(amount)/COIN
622625
r = self._call('sendtoaddress', addr, amount, comment, commentto, subtractfeefromamount)

0 commit comments

Comments
 (0)