MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / __repr__

Method __repr__

bitcoin/core/__init__.py:243–247  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 return True
242
243 def __repr__(self):
244 if self.nValue >= 0:
245 return "CTxOut(%s*COIN, %r)" % (str_money_value(self.nValue), self.scriptPubKey)
246 else:
247 return "CTxOut(%d, %r)" % (self.nValue, self.scriptPubKey)
248
249 @classmethod
250 def from_txout(cls, txout):

Callers

nothing calls this directly

Calls 1

str_money_valueFunction · 0.85

Tested by

no test coverage detected