i am using licore-lib node js for send transaction its is giving me dust error,not understanding what should be the fees.
below is my code…
var utxos = [{
‘txid’: txid, //pass the transaction address got from above utxo
’vout’: vout, //pass the output from above utxo
’address’: address, //pass the legacy address which is the public address from utxo
’scriptPubKey’: scriptPubKey, //pass the script from above utxo
’amount’: satoshis,
}];
i have these utxos values
[ { txid: ‘6c4e6bfc21b673747046a291c1f98193f103f106f4c79e541c7e7a091909a519’,
outputIndex: 1,
address: ‘LaqHwkfBhBv5DbYtknmL7xWTXoLxML8FpE’,
scriptPubKey: ‘76a914ab38dff9a2e50c7c43fef7f9f4b585447a59d5b888ac’,
amount: 22240 } ]
var amount = 20000;
var transaction = new litecore.Transaction()
.from(utxos) // Feed information about what unspent outputs one can use
.to('LaqHwkfBhBv5DbYtknmL7xWTXoLxML8FpE', 12000) // Add an output with the given amount of satoshis
.change(address) // Sets up a change address where the rest of the funds will go
.sign(privateKey)
.fee(1000)