aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/bitcoin/address.js20
-rw-r--r--routes/payments.js1
2 files changed, 0 insertions, 21 deletions
diff --git a/routes/bitcoin/address.js b/routes/bitcoin/address.js
deleted file mode 100644
index 3434f107..00000000
--- a/routes/bitcoin/address.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const axios = require("axios");
-const api = "https://blockstream.info/api";
-
-module.exports = async (req, res) => {
- try {
- let { address } = req.body;
- let {
- data: {
- chain_stats: { funded_txo_sum: balance },
- },
- } = await axios.get(`${api}/address/${address}`);
-
- let utxos = [];
- // let { data: utxos } = await axios.get(`${api}/address/${address}/utxo`);
- res.send({ balance, utxos });
- } catch (e) {
- l.error("error retrieving address info", e.message);
- return res.status(500).send(e.message);
- }
-};
diff --git a/routes/payments.js b/routes/payments.js
index cfeb8450..ab35c9a0 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -40,7 +40,6 @@ const { join } = require("path");
if (config.bitcoin) {
bc = new BitcoinCore(config.bitcoin);
- app.get("/bitcoin/address", auth, require("./bitcoin/address"));
app.post("/bitcoin/fee", auth, require("./bitcoin/fee"));
app.post("/bitcoin/send", auth, require("./bitcoin/send"));
require("./bitcoin/receive");