5 #ifndef BITCOIN_CORE_IO_H 6 #define BITCOIN_CORE_IO_H 50 #endif // BITCOIN_CORE_IO_H static const std::string sighash
util::Result< int > SighashFromStr(const std::string &sighash)
std::string FormatScript(const CScript &script)
The same as previous option with information about prevouts if available.
bool DecodeHexBlk(CBlock &, const std::string &strHexBlk)
TxVerbosity
Verbose level for block's transaction.
bool DecodeHexBlockHeader(CBlockHeader &, const std::string &hex_header)
int64_t CAmount
Amount in satoshis (Can be negative)
std::string ScriptToAsmStr(const CScript &script, const bool fAttemptSighashDecode=false)
Create the assembly string representation of a CScript object.
Include TXID, inputs, outputs, and other common block's transaction information.
void ScriptToUniv(const CScript &script, UniValue &out, bool include_hex=true, bool include_address=false, const SigningProvider *provider=nullptr)
std::string SighashToStr(unsigned char sighash_type)
std::string EncodeHexTx(const CTransaction &tx)
An interface to be implemented by keystores that support signing.
Only TXID for each block's transaction.
Serialized script, used inside transaction inputs and outputs.
Undo information for a CTransaction.
bool DecodeHexTx(CMutableTransaction &tx, const std::string &hex_tx, bool try_no_witness=false, bool try_witness=true)
UniValue ValueFromAmount(const CAmount amount)
A mutable version of CTransaction.
The basic transaction that is broadcasted on the network and contained in blocks. ...
CScript ParseScript(const std::string &s)
void TxToUniv(const CTransaction &tx, const uint256 &block_hash, UniValue &entry, bool include_hex=true, const CTxUndo *txundo=nullptr, TxVerbosity verbosity=TxVerbosity::SHOW_DETAILS)