bitcore-doichain
Advanced tools
Comparing version 0.1.17 to 0.1.18
import bitcore from "bitcore-doichain"; | ||
import constants from "../constants" | ||
const createRawDoichainTX = async (nameId, nameValue, validatorAddress,changeAddress,privKeySet,utxo,fee,validatorFee) => { | ||
const createRawDoichainTX = (nameId, nameValue, validatorAddress,changeAddress,privKeySet,utxo,transactionFee,validatorFee) => { | ||
if(fee<constants.NETWORK_FEE.btc) throw Error("fee too low! Will not be accepted by doichain node") | ||
if(validatorFee<constants.VALIDATOR_FEE.btc) throw Error("amount too low! Will not be accepted by validator - reward,revocation, doi-storage") | ||
if(transactionFee<constants.NETWORK_FEE.btc) throw Error("fee too low! Will not be accepted by doichain node") | ||
//if(validatorFee<constants.VALIDATOR_FEE.btc) throw Error("amount too low! Will not be accepted by validator - reward,revocation, doi-storage") | ||
const transactionFee = constants.TRANSACTION_FEE.satoshis | ||
//const transactionFee = constants.TRANSACTION_FEE.satoshis | ||
const changeAmount = Math.abs(parseInt(utxo.change*100000000-transactionFee)) | ||
@@ -20,5 +20,5 @@ | ||
return await tx.serialize(true); | ||
return tx.serialize(true); | ||
} | ||
export default createRawDoichainTX |
{ | ||
"name": "bitcore-doichain", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "Doichain Support for Bitcore", | ||
@@ -5,0 +5,0 @@ "author": "Nico Krause <nico@le-space.de>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91294