I am trying to send 0.52 from my address to address2 and I am passing fees like below
Code:
var tx = bitcore.Transaction();
tx.from(utxos);
tx.to(address2,satoshibits); // 520000
tx.change(address);
tx.fee(fees); // 260000 in satoshi
tx.sign(privateKey);
tx.serialize();
Error:
Fee is too large: expected less than 150000 but got 260000
Anyone have an idea if I want to pass max fees then default