Adding missing basic API endpoints when in bitcoind/electrum mode.

fixes #291
This commit is contained in:
softsimon
2021-01-25 01:09:42 +07:00
parent 11ff5b28b4
commit e262d954f0
6 changed files with 68 additions and 6 deletions

View File

@@ -114,7 +114,7 @@
<td><a [routerLink]="['/tx' | relativeUrl, transaction.txid]">{{ transaction.txid | shortenString : 10 }}</a></td>
<td class="text-right d-none d-lg-table-cell"><app-amount [satoshis]="transaction.value" digitsInfo="1.8-8" [noFiat]="true"></app-amount></td>
<td *ngIf="(network$ | async) === ''" class="text-right d-none d-lg-table-cell"><app-fiat [value]="transaction.value" digitsInfo="1.0-0"></app-fiat></td>
<td class="text-right">{{ transaction.fee / (transaction.weight / 4) | number : '1.1-1' }} <span i18n="shared.sat-vbyte|sat/vB">sat/vB</span></td>
<td class="text-right">{{ transaction.fee / transaction.vsize | number : '1.1-1' }} <span i18n="shared.sat-vbyte|sat/vB">sat/vB</span></td>
</tr>
</tbody>
</table>

View File

@@ -47,7 +47,7 @@ export interface MempoolInfo {
export interface TransactionStripped {
txid: string;
fee: number;
weight: number;
vsize: number;
value: number;
}