70 {}){
71 _log("get_transaction_trace called" );
73
75 if (!resp.is_null()) {
76 auto& b_mvo = resp.get_object();
77 if (b_mvo.contains("transactions")) {
78 auto& transactions = b_mvo["transactions"];
79 std::string input_id = trxid.str();
80 for (
uint32_t i = 0; i < transactions.size(); ++i) {
81 if (transactions[i].is_null()) continue;
82 auto& t_mvo = transactions[i].get_object();
83 if (t_mvo.contains("id")) {
84 const auto& t_id = t_mvo["id"].get_string();
85 if (t_id == input_id) {
86 result = transactions[i];
87 break;
88 }
89 }
90 }
91 if( result.is_null() )
92 _log("Exhausted all " + std::to_string(transactions.size()) + " transactions in block " + b_mvo["number"].as_string() + " without finding trxid " + trxid.str());
93 }
94 }
95 return result;
96 }
fc::variant get_block_trace(uint32_t block_height, const yield_function &yield={})