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 c9e175a0cc
commit e86b7c7258
6 changed files with 68 additions and 6 deletions

View File

@@ -52,7 +52,8 @@ export class Common {
return {
txid: tx.txid,
fee: tx.fee,
weight: tx.weight,
weight: tx.weight, // Deprecated
vsize: tx.weight / 4,
value: tx.vout.reduce((acc, vout) => acc + (vout.value ? vout.value : 0), 0),
};
}