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

Function OutputTx

src/bitcoin-tx.cpp:807–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807static void OutputTx(const CTransaction& tx)
808{
809 if (gArgs.GetBoolArg("-json", false))
810 OutputTxJSON(tx);
811 else if (gArgs.GetBoolArg("-txid", false))
812 OutputTxHash(tx);
813 else
814 OutputTxHex(tx);
815}
816
817static std::string readStdin()
818{

Callers 1

CommandLineRawTxFunction · 0.85

Calls 4

OutputTxJSONFunction · 0.85
OutputTxHashFunction · 0.85
OutputTxHexFunction · 0.85
GetBoolArgMethod · 0.80

Tested by

no test coverage detected