 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
25 while (it != script.
end()) {
27 std::vector<unsigned char> vch;
28 if (script.
GetOp2(it, op, &vch)) {
37 if (str.substr(0, 3) == std::string(
"OP_")) {
38 ret += str.substr(3, std::string::npos) +
" ";
52 return ret.substr(0, ret.size() - 1);
74 std::vector<CTxDestination> addresses;
86 out.
pushKV(
"reqSigs", nRequired);
92 out.
pushKV(
"addresses", a);
113 in.
pushKV(
"scriptSig", o);
121 for (
unsigned int i = 0; i < tx.
vout.size(); i++) {
127 out.
pushKV(
"value", outValue);
128 out.
pushKV(
"n", (int64_t)i);
132 out.
pushKV(
"scriptPubKey", o);
135 entry.
pushKV(
"vout", vout);
An input of a transaction.
const char * GetOpName(opcodetype opcode)
std::string FormatScript(const CScript &script)
std::string EncodeHexTx(const CTransaction &tx)
const_iterator begin() const
std::string GetHex() const
bool GetOp2(const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > *pvchRet) const
base58-encoded PRCY addresses.
unsigned int GetSerializeSize(char a, int, int=0)
std::string FormatMoney(const CAmount &n, bool fPlus)
Money parsing/formatting utilities.
bool pushKV(const std::string &key, const UniValue &val)
void ScriptPubKeyToUniv(const CScript &scriptPubKey, UniValue &out, bool fIncludeHex)
The basic transaction that is broadcasted on the network and contained in blocks.
const char * GetTxnOutputType(txnouttype t)
An output of a transaction.
std::vector< CTxOut > vout
const_iterator end() const
std::string HexStr(const T itbegin, const T itend, bool fSpaces=false)
256-bit unsigned big integer.
Serialized script, used inside transaction inputs and outputs.
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
std::string ToString() const
bool push_back(const UniValue &val)
Double ended buffer combining vector and stream-like interfaces.
const uint256 & GetHash() const
bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet)
std::string EncodeHexPoSBlockSummary(const PoSBlockSummary &pos)
void TxToUniv(const CTransaction &tx, const uint256 &hashBlock, UniValue &entry)
opcodetype
Script opcodes.