var utils = require('./utils')

function Transactions(url) {
  this.url = url
}

Transactions.prototype.get = function(txIds, callback) {
  utils.jsendBatchedRequest(this.url + '/get', {
    txIds: txIds
  }, Array.isArray(txIds), callback)
}

Transactions.prototype.propagate = function(txHexs, callback) {
  utils.jsendBatchedRequest(this.url + '/propagate', {
    txHexs: txHexs
  }, Array.isArray(txHexs), callback)
}

Transactions.prototype.summary = function(txIds, callback) {
  utils.jsendBatchedRequest(this.url + '/summary', {
    txIds: txIds
  }, Array.isArray(txIds), callback)
}

module.exports = Transactions

@@ -229,32 +229,158 @@
 ), callback)%0A%7D%0A%0A
+Transactions.prototype.latest = function(callback) %7B%0A  utils.jsendBatchedRequest(this.url + '/latest', %7B%7D, true, callback)%0A%7D%0A%0A
 Transactions.pro

add latest endpoint