From 6beae7cf11fa4ad243b91f1a7e681807afdc43f6 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 10 Apr 2015 12:37:01 -0300 Subject: [PATCH] map getTx --- lib/expressapp.js | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/expressapp.js b/lib/expressapp.js index 148e187..9f12330 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -272,6 +272,17 @@ ExpressApp.start = function(opts) { }); }); + router.get('/v1/txproposals/:id/', function(req, res) { + getServerWithAuth(req, res, function(server) { + req.body.txProposalId = req.params['id']; + server.getTx(req.body, function(err, tx) { + if (err) return returnError(err, res, req); + res.json(tx); + res.end(); + }); + }); + }); + router.get('/v1/txhistory/', function(req, res) { getServerWithAuth(req, res, function(server) { var opts = {}; diff --git a/package.json b/package.json index 7f25b9b..149e663 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bitcore-wallet-service", "description": "A service for Mutisig HD Bitcoin Wallets", "author": "BitPay Inc", - "version": "0.0.23", + "version": "0.0.24", "keywords": [ "bitcoin", "copay",