MCPcopy Create free account
hub / github.com/LUX-Core/lux / assignJSON

Function assignJSON

src/rpcwallet.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void assignJSON(UniValue& entry, const TransactionReceiptInfo& resExec) {
148 entry.push_back(Pair("blockHash", resExec.blockHash.GetHex()));
149 entry.push_back(Pair("blockNumber", uint64_t(resExec.blockNumber)));
150 entry.push_back(Pair("transactionHash", resExec.transactionHash.GetHex()));
151 entry.push_back(
152 Pair("transactionIndex", uint64_t(resExec.transactionIndex)));
153 entry.push_back(Pair("from", resExec.from.hex()));
154 entry.push_back(Pair("to", resExec.to.hex()));
155 entry.push_back(
156 Pair("cumulativeGasUsed", CAmount(resExec.cumulativeGasUsed)));
157 entry.push_back(Pair("gasUsed", CAmount(resExec.gasUsed)));
158 entry.push_back(Pair("contractAddress", resExec.contractAddress.hex()));
159 std::stringstream ss;
160 ss << resExec.excepted;
161 entry.push_back(Pair("excepted",ss.str()));
162}
163
164void assignJSON(UniValue& logEntry, const dev::eth::LogEntry& log,
165 bool includeAddress) {

Callers 2

waitforlogsFunction · 0.85

Calls 6

PairFunction · 0.85
HexStrFunction · 0.85
hexMethod · 0.80
strMethod · 0.80
push_backMethod · 0.45
GetHexMethod · 0.45

Tested by

no test coverage detected