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

Method signrawtransactionwithwallet

bitcoin/rpc.py:742–752  ·  view source on GitHub ↗

Sign inputs for transaction bicoincore >= 0.17.x FIXME: implement options

(self, tx, *args)

Source from the content-addressed store, hash-verified

740 return r
741
742 def signrawtransactionwithwallet(self, tx, *args):
743 """Sign inputs for transaction
744 bicoincore >= 0.17.x
745
746 FIXME: implement options
747 """
748 hextx = hexlify_str(tx.serialize())
749 r = self._call('signrawtransactionwithwallet', hextx, *args)
750 r['tx'] = CTransaction.deserialize(unhexlify_str(r['hex']))
751 del r['hex']
752 return r
753
754 def submitblock(self, block, params=None):
755 """Submit a new block to the network.

Callers

nothing calls this directly

Calls 5

hexlify_strFunction · 0.85
unhexlify_strFunction · 0.85
serializeMethod · 0.45
_callMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected