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

Function OutputTxJSON

src/bitcoin-tx.cpp:784–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784static void OutputTxJSON(const CTransaction& tx)
785{
786 UniValue entry(UniValue::VOBJ);
787 TxToUniv(tx, uint256(), entry);
788
789 std::string jsonOutput = entry.write(4);
790 tfm::format(std::cout, "%s\n", jsonOutput);
791}
792
793static void OutputTxHash(const CTransaction& tx)
794{

Callers 1

OutputTxFunction · 0.85

Calls 4

TxToUnivFunction · 0.85
uint256Class · 0.70
formatFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected