I've been working on my Litecoin wallet for a while now. But I can't seem to control the transaction fee when I make raw transactions.
I know how to send transactions with Litecoin-Qt GUI: https://live.blockcypher.com/ltc/tx/2b2f0aab9d2661840a60b172dcda24f359e85b7dbd0810e7afb2d3a6c0b8e59c/
No problem with that, the fee was 0.00017 LTC and was included in the next block. The
vsize of this TX = 170, which explains the 0.00017 LTC fee.
But I'm also working on my own wallet on my VPS with the Litecoin-CLI. I made a raw TX, signed it and sent it. This happened: https://live.blockcypher.com/ltc/tx/32ceefc7f377ad53c91922dffe62e6fd19e48a46d6afb4d610c2c090646404dc/
A transaction fee of 0.1 LTC!!! And the
vsize is just 192.
I went back to the litecoin.conf file and it has the
paytxfee=0.001 parameter. Which means it would cost me 0.001 LTC/kB.
maxtxfee wasn't turned on yet, but now it is with a value of 0.001. When I try to send now, it just prompts me with:
What am I doing wrong?
(Yes I'm testing my wallet on the mainnet, I'm stupid)