| 145 | } |
| 146 | |
| 147 | void 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 | |
| 164 | void assignJSON(UniValue& logEntry, const dev::eth::LogEntry& log, |
| 165 | bool includeAddress) { |