map getTx

This commit is contained in:
Matias Alejo Garcia 2015-04-10 12:37:01 -03:00
parent ab91edd035
commit 6beae7cf11
2 changed files with 12 additions and 1 deletions

View File

@ -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) { router.get('/v1/txhistory/', function(req, res) {
getServerWithAuth(req, res, function(server) { getServerWithAuth(req, res, function(server) {
var opts = {}; var opts = {};

View File

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service", "name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets", "description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc", "author": "BitPay Inc",
"version": "0.0.23", "version": "0.0.24",
"keywords": [ "keywords": [
"bitcoin", "bitcoin",
"copay", "copay",