From 2a053d84962455e66770b91f891239196d58deb1 Mon Sep 17 00:00:00 2001 From: NostrDev Date: Tue, 3 Dec 2024 18:55:11 +0200 Subject: [PATCH 1/3] fix: adds a utxo route --- backend/src/api/bitcoin/bitcoin.routes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/api/bitcoin/bitcoin.routes.ts b/backend/src/api/bitcoin/bitcoin.routes.ts index 6c42f2b7c3..03ffc96f70 100644 --- a/backend/src/api/bitcoin/bitcoin.routes.ts +++ b/backend/src/api/bitcoin/bitcoin.routes.ts @@ -34,6 +34,7 @@ class BitcoinRoutes { .get(config.MEMPOOL.API_URL_PREFIX + 'init-data', this.getInitData) .get(config.MEMPOOL.API_URL_PREFIX + 'validate-address/:address', this.validateAddress) .get(config.MEMPOOL.API_URL_PREFIX + 'address/:address', this.getAddress) + .get(config.MEMPOOL.API_URL_PREFIX + 'address/:address/txs', this.getAddressTransactions) .get(config.MEMPOOL.API_URL_PREFIX + 'tx/:txId/rbf', this.getRbfHistory) .get(config.MEMPOOL.API_URL_PREFIX + 'tx/:txId/cached', this.getCachedTx) .get(config.MEMPOOL.API_URL_PREFIX + 'replacements', this.getRbfReplacements) From ef36c420541913ecf1dbbb9a90bfe72dcab23feb Mon Sep 17 00:00:00 2001 From: NostrDev Date: Wed, 4 Dec 2024 09:51:50 +0200 Subject: [PATCH 2/3] fix: implemenets esplora txs endpoint --- backend/src/api/bitcoin/esplora-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/bitcoin/esplora-api.ts b/backend/src/api/bitcoin/esplora-api.ts index 9a4b7706a6..91752e99d4 100644 --- a/backend/src/api/bitcoin/esplora-api.ts +++ b/backend/src/api/bitcoin/esplora-api.ts @@ -309,7 +309,7 @@ class ElectrsApi implements AbstractBitcoinApi { } $getAddressTransactions(address: string, txId?: string): Promise { - throw new Error('Method getAddressTransactions not implemented.'); + return this.failoverRouter.$get('/address/' + address + '/txs'); } $getScriptHash(scripthash: string): Promise { From 635ed12a321a0c4bf9802164bdc988027912ee34 Mon Sep 17 00:00:00 2001 From: NostrDev Date: Wed, 4 Dec 2024 10:04:51 +0200 Subject: [PATCH 3/3] fix: upgrades mempool_api docker version --- docker-angor-api/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-angor-api/docker-compose.yml b/docker-angor-api/docker-compose.yml index 609b99f44c..209d626063 100644 --- a/docker-angor-api/docker-compose.yml +++ b/docker-angor-api/docker-compose.yml @@ -50,7 +50,7 @@ services: mempool_api: container_name: mempool-api - image: eugenenostrdev/mempool-api:amd64-1.1.8 + image: eugenenostrdev/mempool-api:amd64-1.2.0 environment: MEMPOOL_BACKEND: "esplora" ESPLORA_REST_API_URL: "http://mempool-electrs:3003"