From 4502dd284ac0ebd30e2e613153e36b1d819901c6 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 13 Aug 2015 16:08:27 -0300 Subject: [PATCH] express endpoint --- lib/expressapp.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/expressapp.js b/lib/expressapp.js index 5944b5e..3324372 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -288,6 +288,16 @@ ExpressApp.prototype.start = function(opts, cb) { }); }); + router.post('/v1/broadcast_raw/', function(req, res) { + getServerWithAuth(req, res, function(server) { + server.broadcastRawTx(req.body, function(err, txp) { + if (err) return returnError(err, res, req); + res.json(txp); + res.end(); + }); + }); + }); + router.post('/v1/txproposals/:id/signatures/', function(req, res) { getServerWithAuth(req, res, function(server) { req.body.txProposalId = req.params['id'];