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

Method sendrawtransaction

bitcoin/rpc.py:701–712  ·  view source on GitHub ↗

Submit transaction to local node and network. allowhighfees - Allow even if fees are unreasonably high.

(self, tx, allowhighfees=False)

Source from the content-addressed store, hash-verified

699 return self._call('lockunspent', unlock, json_outpoints)
700
701 def sendrawtransaction(self, tx, allowhighfees=False):
702 """Submit transaction to local node and network.
703
704 allowhighfees - Allow even if fees are unreasonably high.
705 """
706 hextx = hexlify_str(tx.serialize())
707 r = None
708 if allowhighfees:
709 r = self._call('sendrawtransaction', hextx, True)
710 else:
711 r = self._call('sendrawtransaction', hextx)
712 return lx(r)
713
714 def sendmany(self, fromaccount, payments, minconf=1, comment='', subtractfeefromamount=[]):
715 """Send amount to given addresses.

Callers 3

spend-p2wpkh.pyFile · 0.45
publish-text.pyFile · 0.45

Calls 4

lxFunction · 0.90
hexlify_strFunction · 0.85
serializeMethod · 0.45
_callMethod · 0.45

Tested by

no test coverage detected