Skip to content

Commit 2e4d51a

Browse files
committed
Merge #126: rpc.py: fix some documentation errors
f2a3d9e rpc.py: fix some documentation errors (Otto Allmendinger)
2 parents edae39f + f2a3d9e commit 2e4d51a

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)