aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.js')
-rw-r--r--src/api.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/api.js b/src/api.js
index ea8461e..43d2bae 100644
--- a/src/api.js
+++ b/src/api.js
@@ -142,19 +142,6 @@ export class Api {
return { fastestFee: 20, halfHourFee: 10, hourFee: 5, economyFee: 2, minimumFee: 1 };
}
- // Only mempool.space exposes a price endpoint; price is non-critical.
- async price() {
- const h = this._hosts.find((x) => x.base.includes('mempool'));
- if (!h || h.cooldownUntil > Date.now()) return null;
- try {
- const res = await fetch(h.base + '/v1/prices');
- if (!res.ok) return null;
- const p = await res.json();
- return p && p.USD ? p.USD : null;
- } catch {
- return null;
- }
- }
async broadcast(hexTx) {
if (this.offline) throw new Error('offline');