MCPcopy
hub / github.com/petertodd/python-bitcoinlib / sendmany

Method sendmany

bitcoin/rpc.py:714–722  ·  view source on GitHub ↗

Send amount to given addresses. payments - dict with {address: amount}

(self, fromaccount, payments, minconf=1, comment='', subtractfeefromamount=[])

Source from the content-addressed store, hash-verified

712 return lx(r)
713
714 def sendmany(self, fromaccount, payments, minconf=1, comment='', subtractfeefromamount=[]):
715 """Send amount to given addresses.
716
717 payments - dict with {address: amount}
718 """
719 json_payments = {str(addr):float(amount)/COIN
720 for addr, amount in payments.items()}
721 r = self._call('sendmany', fromaccount, json_payments, minconf, comment, subtractfeefromamount)
722 return lx(r)
723
724 def sendtoaddress(self, addr, amount, comment='', commentto='', subtractfeefromamount=False):
725 """Send amount to a given address"""

Callers 1

publish-text.pyFile · 0.80

Calls 2

lxFunction · 0.90
_callMethod · 0.45

Tested by

no test coverage detected