I have set the fee to 0.0000016 bitcoin/kilobyte and then did the following:-
-
ListUnspent
-
SetTxFee
-
CreateRawTransaction
-
SignRawTransaction
-
SendRawTransaction
But while trying to send the transaction, this is what I get:
-26: 256: absurdly-high-fee
Is there any other way to set the fee using this library?
Debug.log
ThreadRPCServer method=listunspent
ThreadRPCServer method=settxfee
ThreadRPCServer method=createrawtransaction
ThreadRPCServer method=signrawtransaction
ThreadRPCServer method=sendrawtransaction
Amounts:
amounts := map[btcutil.Address]btcutil.Amount{ destAddress: destAmount, }
It seems like it tries to send the whole sum of the transaction, not the amount I want it to send. If the transaction into A is 1 BTC and I want to send 0.3 BTC to another address, how to achieve this when setting amounts?