Skip to content

Commit

Permalink
mempool#245 Enables Post Transaction (#27)
Browse files Browse the repository at this point in the history
* fix: implements an esplora endpoint

* fix: implements post transaction in esplora

* fix: return type
  • Loading branch information
nostrdev-com authored Jan 20, 2025
1 parent a794c6e commit 20dd944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/bitcoin/esplora-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class ElectrsApi implements AbstractBitcoinApi {
}

$sendRawTransaction(rawTransaction: string): Promise<string> {
return this.failoverRouter.$post<string>('/tx', rawTransaction, 'string');
return this.failoverRouter.$post<string>('/tx', rawTransaction, 'text');
}

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

0 comments on commit 20dd944

Please sign in to comment.