|
|
@ -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']; |
|
|
|