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

Method lockunspent

bitcoin/rpc.py:695–699  ·  view source on GitHub ↗

Lock or unlock outpoints

(self, unlock, outpoints)

Source from the content-addressed store, hash-verified

693 return r2
694
695 def lockunspent(self, unlock, outpoints):
696 """Lock or unlock outpoints"""
697 json_outpoints = [{'txid':b2lx(outpoint.hash), 'vout':outpoint.n}
698 for outpoint in outpoints]
699 return self._call('lockunspent', unlock, json_outpoints)
700
701 def sendrawtransaction(self, tx, allowhighfees=False):
702 """Submit transaction to local node and network.

Callers

nothing calls this directly

Calls 2

b2lxFunction · 0.90
_callMethod · 0.45

Tested by

no test coverage detected