Adding missing basic API endpoints when in bitcoind/electrum mode.
fixes #291
This commit is contained in:
6 files changed
+68
-6
No files matched your search
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user