REST endpoint

This commit is contained in:
Ivan Socolsky 2016-05-03 12:42:04 -03:00
parent 42c2d9a95f
commit 64665d3efe
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ ExpressApp.prototype.start = function(opts, cb) {
var opts = {};
if (req.query.skip) opts.skip = +req.query.skip;
if (req.query.limit) opts.limit = +req.query.limit;
if (req.query.includeExtendedInfo == '1') opts.includeExtendedInfo = true;
server.getTxHistory(opts, function(err, txs) {
if (err) return returnError(err, res, req);