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

Method fetch_tx

code-ch13/tx.py:448–449  ·  view source on GitHub ↗
(self, testnet=False)

Source from the content-addressed store, hash-verified

446 return result
447
448 def fetch_tx(self, testnet=False):
449 return TxFetcher.fetch(self.prev_tx.hex(), testnet=testnet)
450
451 def value(self, testnet=False):
452 '''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