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

Function OutputTxJSON

src/bitcoin-tx.cpp:520–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520static void OutputTxJSON(const CTransaction& tx)
521{
522 UniValue entry(UniValue::VOBJ);
523 TxToUniv(tx, uint256(), entry);
524
525 string jsonOutput = entry.write(4);
526 fprintf(stdout, "%s\n", jsonOutput.c_str());
527}
528
529static void OutputTxHash(const CTransaction& tx)
530{

Callers 1

OutputTxFunction · 0.85

Calls 3

TxToUnivFunction · 0.85
uint256Class · 0.70
writeMethod · 0.45

Tested by

no test coverage detected