Skip to content

Commit a794c6e

Browse files
authored
mempool#245 Enable POST Transaction Endpoint (#25)
* fix: implements an esplora endpoint * fix: implements post transaction in esplora
1 parent 3dcf0fc commit a794c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/api/bitcoin/esplora-api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class ElectrsApi implements AbstractBitcoinApi {
325325
}
326326

327327
$sendRawTransaction(rawTransaction: string): Promise<string> {
328-
throw new Error('Method not implemented.');
328+
return this.failoverRouter.$post<string>('/tx', rawTransaction, 'string');
329329
}
330330

331331
$testMempoolAccept(rawTransactions: string[], maxfeerate?: number): Promise<TestMempoolAcceptResult[]> {

0 commit comments

Comments
 (0)