feat: fix mempool endpint

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent 51c8b58fdb
commit 657ed7a37c
14 changed files with 50 additions and 19 deletions
@@ -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})