Use internal /block/:hash/txs endpoint

This commit is contained in:
Mononaut 2023-09-06 08:24:30 +09:00
parent 4972f00a96
commit 2339a0771e
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -238,7 +238,7 @@ class ElectrsApi implements AbstractBitcoinApi {
}
$getTxsForBlock(hash: string): Promise<IEsploraApi.Transaction[]> {
return this.failoverRouter.$get<IEsploraApi.Transaction[]>('/block/' + hash + '/txs');
return this.failoverRouter.$get<IEsploraApi.Transaction[]>('/internal/block/' + hash + '/txs');
}
$getBlockHash(height: number): Promise<string> {