diff --git a/lnbits/extensions/watchonly/static/components/address-list/address-list.html b/lnbits/extensions/watchonly/static/components/address-list/address-list.html index 9dcedf4d2..5a2404a17 100644 --- a/lnbits/extensions/watchonly/static/components/address-list/address-list.html +++ b/lnbits/extensions/watchonly/static/components/address-list/address-list.html @@ -65,7 +65,7 @@
{{props.row.address}} feesAPI.getFeesRecommended() this.recommededFees = await retryWithDelay(fn) diff --git a/lnbits/extensions/watchonly/static/components/history/history.html b/lnbits/extensions/watchonly/static/components/history/history.html index 87b715830..001041355 100644 --- a/lnbits/extensions/watchonly/static/components/history/history.html +++ b/lnbits/extensions/watchonly/static/components/history/history.html @@ -82,7 +82,7 @@ {{props.row.address}} {{props.row.txId}} +
+ {{mempoolEndpoint}}xxxxxx1
- +
@@ -78,7 +80,7 @@ :utxos="utxos" :selectable="true" :payed-amount="totalPayedAmount" - :mempool_endpoint="mempool_endpoint" + :mempool-endpoint="mempoolEndpoint" :sats-denominated="satsDenominated" >
diff --git a/lnbits/extensions/watchonly/static/components/payment/payment.js b/lnbits/extensions/watchonly/static/components/payment/payment.js index be584e37d..1c3d09acb 100644 --- a/lnbits/extensions/watchonly/static/components/payment/payment.js +++ b/lnbits/extensions/watchonly/static/components/payment/payment.js @@ -8,7 +8,7 @@ async function payment(path) { 'accounts', 'addresses', 'utxos', - 'mempool_endpoint', + 'mempool-endpoint', 'sats-denominated', 'serial-signer-ref', 'adminkey' @@ -291,7 +291,9 @@ async function payment(path) { fetchTxHex: async function (txId) { const { bitcoin: {transactions: transactionsAPI} - } = mempoolJS() // todo: hostname + } = mempoolJS({ + hostname: new URL(this.mempoolEndpoint).hostname + }) try { const response = await transactionsAPI.getTxHex({txid: txId}) diff --git a/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.html b/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.html index 52643d202..6477976e1 100644 --- a/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.html +++ b/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.html @@ -89,7 +89,7 @@
{{props.row.address}} {{props.row.txId}} + + + +
{ getAddressTxsDelayed: async function (addrData) { const { bitcoin: {addresses: addressesAPI} - } = mempoolJS() + } = mempoolJS({ + hostname: new URL(this.config.data.mempool_endpoint).hostname + }) const fn = async () => addressesAPI.getAddressTxs({ @@ -336,7 +338,9 @@ const watchOnly = async () => { getAddressTxsUtxoDelayed: async function (address) { const { bitcoin: {addresses: addressesAPI} - } = mempoolJS() + } = mempoolJS({ + hostname: new URL(this.config.data.mempool_endpoint).hostname + }) const fn = async () => addressesAPI.getAddressTxsUtxo({ diff --git a/lnbits/extensions/watchonly/templates/watchonly/index.html b/lnbits/extensions/watchonly/templates/watchonly/index.html index 07cd5d91e..a29535edc 100644 --- a/lnbits/extensions/watchonly/templates/watchonly/index.html +++ b/lnbits/extensions/watchonly/templates/watchonly/index.html @@ -89,7 +89,7 @@ ref="addressList" :addresses="addresses" :accounts="walletAccounts" - :mempool_endpoint="config.data.mempool_endpoint" + :mempool-endpoint="config.data.mempool_endpoint" :sats-denominated="config.data.sats_denominated" @scan:address="scanAddress" @show-address-details="showAddressDetails" @@ -101,14 +101,14 @@ @@ -116,12 +116,14 @@
+ {{config.data.mempool_endpoint}}