Changeset View
Changeset View
Standalone View
Standalone View
src/core_io.h
Show All 36 Lines | |||||
* | * | ||||
* @see ParseHashV for an RPC-oriented version of this | * @see ParseHashV for an RPC-oriented version of this | ||||
*/ | */ | ||||
bool ParseHashStr(const std::string &strHex, uint256 &result); | bool ParseHashStr(const std::string &strHex, uint256 &result); | ||||
std::vector<uint8_t> ParseHexUV(const UniValue &v, const std::string &strName); | std::vector<uint8_t> ParseHexUV(const UniValue &v, const std::string &strName); | ||||
SigHashType ParseSighashString(const UniValue &sighash); | SigHashType ParseSighashString(const UniValue &sighash); | ||||
// core_write.cpp | // core_write.cpp | ||||
UniValue ValueFromAmount(const Amount &amount); | |||||
std::string FormatScript(const CScript &script); | std::string FormatScript(const CScript &script); | ||||
std::string EncodeHexTx(const CTransaction &tx, const int serializeFlags = 0); | std::string EncodeHexTx(const CTransaction &tx, const int serializeFlags = 0); | ||||
std::string SighashToStr(uint8_t sighash_type); | std::string SighashToStr(uint8_t sighash_type); | ||||
void ScriptPubKeyToUniv(const CScript &scriptPubKey, UniValue &out, | void ScriptPubKeyToUniv(const CScript &scriptPubKey, UniValue &out, | ||||
bool fIncludeHex); | bool fIncludeHex); | ||||
void ScriptToUniv(const CScript &script, UniValue &out, bool include_address); | void ScriptToUniv(const CScript &script, UniValue &out, bool include_address); | ||||
void TxToUniv(const CTransaction &tx, const uint256 &hashBlock, UniValue &entry, | void TxToUniv(const CTransaction &tx, const uint256 &hashBlock, UniValue &entry, | ||||
bool include_hex = true, int serialize_flags = 0); | bool include_hex = true, int serialize_flags = 0); | ||||
#endif // BITCOIN_CORE_IO_H | #endif // BITCOIN_CORE_IO_H |