MCPcopy Create free account
hub / github.com/ElementsProject/elements / OutputTxHash

Function OutputTxHash

src/bitcoin-tx.cpp:793–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793static void OutputTxHash(const CTransaction& tx)
794{
795 std::string strHexHash = tx.GetHash().GetHex(); // the hex-encoded transaction hash (aka the transaction id)
796
797 tfm::format(std::cout, "%s\n", strHexHash);
798}
799
800static void OutputTxHex(const CTransaction& tx)
801{

Callers 1

OutputTxFunction · 0.85

Calls 3

formatFunction · 0.70
GetHexMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected