MCPcopy
hub / github.com/jimmysong/programmingbitcoin / fetch_tx

Method fetch_tx

code-ch08/tx.py:295–296  ·  view source on GitHub ↗
(self, testnet=False)

Source from the content-addressed store, hash-verified

293 return result
294
295 def fetch_tx(self, testnet=False):
296 return TxFetcher.fetch(self.prev_tx.hex(), testnet=testnet)
297
298 def value(self, testnet=False):
299 '''Get the outpoint value by looking up the tx hash

Callers 2

valueMethod · 0.95
script_pubkeyMethod · 0.95

Calls 2

fetchMethod · 0.45
hexMethod · 0.45

Tested by

no test coverage detected