MCPcopy Create free account
hub / github.com/citp/BlockSci / getFirstTransaction

Method getFirstTransaction

src/scripts/script.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 ScriptBase::ScriptBase(const Address &address) : ScriptBase(address.scriptNum, address.type, address.getAccess(), address.getAccess().scripts->getScriptHeader(address.scriptNum, dedupType(address.type))) {}
19
20 Transaction ScriptBase::getFirstTransaction() const {
21 auto txNum = getFirstTxIndex();
22 return Transaction(txNum, getAccess().getChain().getBlockHeight(txNum), getAccess());
23 }
24
25 ranges::optional<Transaction> ScriptBase::getTransactionRevealed() const {
26 auto index = getTxRevealedIndex();

Callers

nothing calls this directly

Calls 3

getFirstTxIndexFunction · 0.50
TransactionClass · 0.50
getBlockHeightMethod · 0.45

Tested by

no test coverage detected