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

Method is_unspendable

bitcoin/core/script.py:760–763  ·  view source on GitHub ↗

Test if the script is provably unspendable

(self)

Source from the content-addressed store, hash-verified

758 return True
759
760 def is_unspendable(self):
761 """Test if the script is provably unspendable"""
762 return (len(self) > 0 and
763 self[0] == OP_RETURN)
764
765 def is_valid(self):
766 """Return True if the script is valid, False otherwise

Callers 1

TMethod · 0.95

Calls

no outgoing calls

Tested by 1

TMethod · 0.76