MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / OutputTxJSON

Function OutputTxJSON

src/bitcoin-tx.cpp:744–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744static void OutputTxJSON(const CTransaction& tx)
745{
746 UniValue entry(UniValue::VOBJ);
747 TxToUniv(tx, /*block_hash=*/uint256(), entry);
748
749 std::string jsonOutput = entry.write(4);
750 tfm::format(std::cout, "%s\n", jsonOutput);
751}
752
753static void OutputTxHash(const CTransaction& tx)
754{

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