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

Method sendtoaddress

bitcoin/rpc.py:724–729  ·  view source on GitHub ↗

Send amount to a given address

(self, addr, amount, comment='', commentto='', subtractfeefromamount=False)

Source from the content-addressed store, hash-verified

722 return lx(r)
723
724 def sendtoaddress(self, addr, amount, comment='', commentto='', subtractfeefromamount=False):
725 """Send amount to a given address"""
726 addr = str(addr)
727 amount = float(amount)/COIN
728 r = self._call('sendtoaddress', addr, amount, comment, commentto, subtractfeefromamount)
729 return lx(r)
730
731 def signrawtransaction(self, tx, *args):
732 """Sign inputs for transaction

Callers

nothing calls this directly

Calls 2

lxFunction · 0.90
_callMethod · 0.45

Tested by

no test coverage detected