From 5bba254ff0ba3a7a558a7857a09c8a38d2a43753 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 1 Jun 2016 08:44:42 -0300 Subject: [PATCH 1/2] add GET /txnotes/:txid endpoint --- lib/expressapp.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/expressapp.js b/lib/expressapp.js index 34da5b1..ca0e8fe 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -514,6 +514,18 @@ ExpressApp.prototype.start = function(opts, cb) { }); }); + router.get('/v1/txnotes/:txid', function(req, res) { + getServerWithAuth(req, res, function(server) { + var opts = { + txid: req.params['txid'], + }; + server.getTxNote(opts, function(err, note) { + if (err) return returnError(err, res, req); + res.json(note); + }); + }); + }); + router.put('/v1/txnotes/:txid/', function(req, res) { req.body.txid = req.params['txid']; getServerWithAuth(req, res, function(server) { From 667145014c62a330e622d26208cc0483a85f02b5 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 1 Jun 2016 08:57:39 -0300 Subject: [PATCH 2/2] v1.8.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1cce341..91d69fc 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": "1.8.0", + "version": "1.8.1", "keywords": [ "bitcoin", "copay",