New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

doichain

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doichain - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

2

lib/getBalanceOfWallet.js

@@ -51,3 +51,3 @@ const bitcoin = require('bitcoinjs-lib')

transactionCount+=addressesRet.transactionCount
balance+=addressesRet.balance
balance+=Number(addressesRet.balance).toFixed(8)
}else{

@@ -54,0 +54,0 @@ if(checkVisibleAddresses){

@@ -19,3 +19,3 @@ import broadcastTransaction from './broadcastTransaction'

// https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending-legacy-non-segwit-p2pkh-p2sh
// https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending-legacy-non-segwit-p2pkh-p2sh
const changeAmount = Math.round(inputsBalance*100000000-amount-fee)

@@ -22,0 +22,0 @@ txb.addOutput(destAddress, amount)

{
"name": "doichain",
"version": "0.0.21",
"version": "0.0.22",
"description": "A js-Doichain library. The goal is to fully cover the Doichain protocol",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc