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

Method getFirstTransaction

src/scripts/script_variant.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 AnyScript::AnyScript(uint32_t addressNum, AddressType::Enum type, DataAccess &access) : wrapped(scriptCreator.at(static_cast<size_t>(type))(addressNum, access)) {}
34
35 Transaction AnyScript::getFirstTransaction() const {
36 return mpark::visit([&](auto &scriptAddress) { return scriptAddress.getFirstTransaction(); }, wrapped);
37 }
38
39 ranges::optional<Transaction> AnyScript::getTransactionRevealed() const {
40 return mpark::visit([&](auto &scriptAddress) { return scriptAddress.getTransactionRevealed(); }, wrapped);

Callers

nothing calls this directly

Calls 1

visitFunction · 0.50

Tested by

no test coverage detected