#include <core_io.h>
#include <common/system.h>
#include <consensus/amount.h>
#include <consensus/consensus.h>
#include <consensus/validation.h>
#include <key_io.h>
#include <script/descriptor.h>
#include <script/script.h>
#include <script/solver.h>
#include <serialize.h>
#include <streams.h>
#include <undo.h>
#include <univalue.h>
#include <util/check.h>
#include <util/strencodings.h>
#include <map>
#include <string>
#include <vector>
Go to the source code of this file.
|
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) |
|
void | ScriptToUniv (const CScript &script, UniValue &out, bool include_hex, bool include_address, const SigningProvider *provider) |
|
void | TxToUniv (const CTransaction &tx, const uint256 &block_hash, UniValue &entry, bool include_hex, const CTxUndo *txundo, TxVerbosity verbosity) |
|
◆ EncodeHexTx()
◆ FormatScript()
std::string FormatScript |
( |
const CScript & |
script | ) |
|
◆ ScriptToAsmStr()
std::string ScriptToAsmStr |
( |
const CScript & |
script, |
|
|
const bool |
fAttemptSighashDecode |
|
) |
| |
Create the assembly string representation of a CScript object.
- Parameters
-
[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 98 of file core_write.cpp.
◆ ScriptToUniv()
◆ SighashToStr()
std::string SighashToStr |
( |
unsigned char |
sighash_type | ) |
|
◆ TxToUniv()
◆ ValueFromAmount()
◆ mapSigHashTypes
const std::map<unsigned char, std::string> mapSigHashTypes |