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

Function OutputTxJSON

src/bitcoin-tx.cpp:723–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723static void OutputTxJSON(const CTransaction& tx)
724{
725 UniValue entry(UniValue::VOBJ);
726 TxToUniv(tx, uint256(), entry);
727
728 std::string jsonOutput = entry.write(4);
729 fprintf(stdout, "%s\n", jsonOutput.c_str());
730}
731
732static void OutputTxHash(const CTransaction& tx)
733{

Callers 1

OutputTxFunction · 0.85

Calls 3

TxToUnivFunction · 0.85
uint256Class · 0.70
writeMethod · 0.45

Tested by

no test coverage detected