I am using bitcore server
https://github.com/bitpay/bitcore and below is the code for making a transaction
Code:
var tx = bitcore.Transaction();
tx.from(utxos);
tx.to(address2,50000);
tx.change(address);
tx.sign(privateKey);
tx.serialize();
How much transaction fees are taken for executing the above transaction.? and I want to check before the transaction goes for the execution.