5#ifndef BITCOIN_CORE_IO_H
6#define BITCOIN_CORE_IO_H
42 const bool fAttemptSighashDecode =
false);
44 const std::string &strHexTx);
68 UniValue &entry,
bool include_hex =
true,
69 const CTxUndo *txundo =
nullptr,
71 std::function<
bool(
const CTxOut &)> is_change_func = {});
A mutable version of CTransaction.
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks.
An output of a transaction.
Restore the UTXO in a Coin at a given COutPoint.
Signature hash type wrapper class.
void ScriptToUniv(const CScript &script, UniValue &out, bool include_address)
std::string EncodeHexTx(const CTransaction &tx)
std::string SighashToStr(uint8_t sighash_type)
CScript ParseScript(const std::string &s)
std::string FormatScript(const CScript &script)
void ScriptPubKeyToUniv(const CScript &scriptPubKey, UniValue &out, bool fIncludeHex)
bool DecodeHexTx(CMutableTransaction &tx, const std::string &strHexTx)
std::vector< uint8_t > ParseHexUV(const UniValue &v, const std::string &strName)
bool DecodeHexBlk(CBlock &, const std::string &strHexBlk)
bool ParseHashStr(const std::string &strHex, uint256 &result)
Parse a hex string into 256 bits.
bool DecodeHexBlockHeader(CBlockHeader &, const std::string &hex_header)
TxVerbosity
Verbose level for block's transaction.
@ SHOW_DETAILS_AND_PREVOUT
The same as previous option with information about prevouts if available.
@ SHOW_TXID
Only TXID for each block's transaction.
@ SHOW_DETAILS
Include TXID, inputs, outputs, and other common block's transaction information.
std::string ScriptToAsmStr(const CScript &script, const bool fAttemptSighashDecode=false)
Create the assembly string representation of a CScript object.
SigHashType ParseSighashString(const UniValue &sighash)
void TxToUniv(const CTransaction &tx, const BlockHash &hashBlock, UniValue &entry, bool include_hex=true, const CTxUndo *txundo=nullptr, TxVerbosity verbosity=TxVerbosity::SHOW_DETAILS, std::function< bool(const CTxOut &)> is_change_func={})
A BlockHash is a unqiue identifier for a block.