| 742 | } |
| 743 | |
| 744 | static 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 | |
| 753 | static void OutputTxHash(const CTransaction& tx) |
| 754 | { |