diff --git a/src/RPCServer.cpp b/src/RPCServer.cpp index 096c208465..1c88bb2082 100644 --- a/src/RPCServer.cpp +++ b/src/RPCServer.cpp @@ -2046,9 +2046,14 @@ Json::Value RPCServer::doAccountTransactions(const Json::Value& params) { Transaction::pointer txn = theApp->getMasterTransaction().fetch(it->second, true); if (!txn) + { ret["transactions"].append(it->second.GetHex()); + } else + { + txn->setLedger(it->first); ret["transactions"].append(txn->getJson(0)); + } } return ret;