![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
Go to the source code of this file.
Enumerations | |
| enum class | TxVerbosity { SHOW_TXID , SHOW_DETAILS , SHOW_DETAILS_AND_PREVOUT } |
| Verbose level for block's transaction. More... | |
Functions | |
| CScript | ParseScript (const std::string &s) |
| std::string | ScriptToAsmStr (const CScript &script, bool fAttemptSighashDecode=false) |
| Create the assembly string representation of a CScript object. | |
| bool | DecodeHexTx (CMutableTransaction &tx, const std::string &hex_tx, bool try_no_witness=false, bool try_witness=true) |
| bool | DecodeHexBlk (CBlock &, const std::string &strHexBlk) |
| bool | DecodeHexBlockHeader (CBlockHeader &, const std::string &hex_header) |
| util::Result< int > | SighashFromStr (const std::string &sighash) |
| UniValue | ValueFromAmount (CAmount amount) |
| std::string | FormatScript (const CScript &script) |
| std::string | EncodeHexTx (const CTransaction &tx) |
| std::string | SighashToStr (unsigned char sighash_type) |
| void | ScriptToUniv (const CScript &script, UniValue &out, bool include_hex=true, bool include_address=false, const SigningProvider *provider=nullptr) |
| void | TxToUniv (const CTransaction &tx, const uint256 &block_hash, UniValue &entry, bool include_hex=true, const CTxUndo *txundo=nullptr, TxVerbosity verbosity=TxVerbosity::SHOW_DETAILS, std::function< bool(const CTxOut &)> is_change_func={}) |
|
strong |
|
nodiscard |
Definition at line 250 of file core_io.cpp.
| bool DecodeHexBlockHeader | ( | CBlockHeader & | header, |
| const std::string & | hex_header ) |
Definition at line 237 of file core_io.cpp.
|
nodiscard |
Definition at line 227 of file core_io.cpp.
| std::string EncodeHexTx | ( | const CTransaction & | tx | ) |
Definition at line 402 of file core_io.cpp.
| std::string FormatScript | ( | const CScript & | script | ) |
Definition at line 298 of file core_io.cpp.
| CScript ParseScript | ( | const std::string & | s | ) |
Definition at line 94 of file core_io.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 357 of file core_io.cpp.
| void ScriptToUniv | ( | const CScript & | script, |
| UniValue & | out, | ||
| bool | include_hex = true, | ||
| bool | include_address = false, | ||
| const SigningProvider * | provider = nullptr ) |
Definition at line 409 of file core_io.cpp.
|
nodiscard |
Definition at line 266 of file core_io.cpp.
| std::string SighashToStr | ( | unsigned char | sighash_type | ) |
| void TxToUniv | ( | const CTransaction & | tx, |
| const uint256 & | block_hash, | ||
| UniValue & | entry, | ||
| bool | include_hex = true, | ||
| const CTxUndo * | txundo = nullptr, | ||
| TxVerbosity | verbosity = TxVerbosity::SHOW_DETAILS, | ||
| std::function< bool(const CTxOut &)> | is_change_func = {} ) |
Definition at line 430 of file core_io.cpp.