Merge pull request #520 from isocolsky/ref/tx-notes

Ref/tx notes
This commit is contained in:
Matias Alejo Garcia 2016-06-01 10:48:34 -03:00
commit 10bb0a0be7
2 changed files with 13 additions and 1 deletions

View File

@ -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) {

View File

@ -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",