Fix for outspends when using esplora

This commit is contained in:
softsimon 2022-06-23 11:55:56 +02:00
parent 61afa92d05
commit 960513c370
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -62,7 +62,7 @@ class ElectrsApi implements AbstractBitcoinApi {
}
$getOutspends(txId: string): Promise<IEsploraApi.Outspend[]> {
return axios.get<IEsploraApi.Outspend[]>(config.ESPLORA.REST_API_URL + '/tx/' + txId, this.axiosConfig)
return axios.get<IEsploraApi.Outspend[]>(config.ESPLORA.REST_API_URL + '/tx/' + txId + '/outspends', this.axiosConfig)
.then((response) => response.data);
}