MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / bci_fetchtx

Function bci_fetchtx

src/lib/pybitcointools/bci.py:319–325  ·  view source on GitHub ↗
(txhash)

Source from the content-addressed store, hash-verified

317
318# Gets a specific transaction
319def bci_fetchtx(txhash):
320 if isinstance(txhash, list):
321 return [bci_fetchtx(h) for h in txhash]
322 if not re.match('^[0-9a-fA-F]*$', txhash):
323 txhash = txhash.encode('hex')
324 data = make_request('https://blockchain.info/rawtx/'+txhash+'?format=hex')
325 return data
326
327
328def blockr_fetchtx(txhash, network='btc'):

Callers

nothing calls this directly

Calls 1

make_requestFunction · 0.85

Tested by

no test coverage detected