![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <core_io.h>#include <consensus/amount.h>#include <consensus/consensus.h>#include <consensus/validation.h>#include <key_io.h>#include <script/script.h>#include <script/standard.h>#include <serialize.h>#include <streams.h>#include <undo.h>#include <univalue.h>#include <util/check.h>#include <util/strencodings.h>#include <util/system.h>Go to the source code of this file.
Functions | |
| UniValue | ValueFromAmount (const CAmount amount) |
| std::string | FormatScript (const CScript &script) |
| std::string | SighashToStr (unsigned char sighash_type) |
| std::string | ScriptToAsmStr (const CScript &script, const bool fAttemptSighashDecode) |
| Create the assembly string representation of a CScript object. More... | |
| std::string | EncodeHexTx (const CTransaction &tx, const int serializeFlags) |
| void | ScriptToUniv (const CScript &script, UniValue &out) |
| void | ScriptPubKeyToUniv (const CScript &scriptPubKey, UniValue &out, bool include_hex, bool include_address) |
| void | TxToUniv (const CTransaction &tx, const uint256 &hashBlock, UniValue &entry, bool include_hex, int serialize_flags, const CTxUndo *txundo, TxVerbosity verbosity) |
Variables | |
| const std::map< unsigned char, std::string > | mapSigHashTypes |
| std::string EncodeHexTx | ( | const CTransaction & | tx, |
| const int | serializeFlags | ||
| ) |
Definition at line 138 of file core_write.cpp.
| std::string FormatScript | ( | const CScript & | script | ) |
Definition at line 34 of file core_write.cpp.
| void ScriptPubKeyToUniv | ( | const CScript & | scriptPubKey, |
| UniValue & | out, | ||
| bool | include_hex, | ||
| bool | include_address | ||
| ) |
Definition at line 150 of file core_write.cpp.
| std::string ScriptToAsmStr | ( | const CScript & | script, |
| const bool | fAttemptSighashDecode | ||
| ) |
Create the assembly string representation of a CScript object.
| [in] | script | CScript object to convert into the asm string representation. |
| [in] | fAttemptSighashDecode | Whether to attempt to decode sighash types on data within the script that matches the format of a signature. Only pass true for scripts you believe could contain signatures. For example, pass false, or omit the this argument (defaults to false), for scriptPubKeys. |
Definition at line 93 of file core_write.cpp.
Definition at line 145 of file core_write.cpp.
| std::string SighashToStr | ( | unsigned char | sighash_type | ) |
| void TxToUniv | ( | const CTransaction & | tx, |
| const uint256 & | hashBlock, | ||
| UniValue & | entry, | ||
| bool | include_hex, | ||
| int | serialize_flags, | ||
| const CTxUndo * | txundo, | ||
| TxVerbosity | verbosity | ||
| ) |
Definition at line 166 of file core_write.cpp.
| const std::map<unsigned char, std::string> mapSigHashTypes |
Definition at line 70 of file core_write.cpp.