From 13d978a3b28749741f9f81774e1567b2c00aeff9 Mon Sep 17 00:00:00 2001 From: Termina1 Date: Fri, 26 Jan 2024 16:49:01 +0200 Subject: [PATCH] fix bitcoin config example --- docs/networks.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/networks.html b/docs/networks.html index 1b1382c2..cde71251 100644 --- a/docs/networks.html +++ b/docs/networks.html @@ -84,6 +84,24 @@ url: http://your-url ws: url: ws://your-url`; + if (protocol.id == "bitcoin") { + code = ` +- id: ${chain["short-names"][0]} + chain: ${chain["short-names"][0]} + connection: + bitcoin: + rpc: + url: "http://localhost:8332" + basic-auth: + username: bitcoin + password: e984af45bb888428207c290 + # use Esplora index to fetch balances and utxo for an address + esplora: + url: "http://localhost:3001" + # connect via ZeroMQ to get notifications about new blocks + zeromq: + address: "http://localhost:5555"`; + } let dialog = document.querySelector("#config"); dialog.querySelector("code").textContent = code; dialog.querySelector(