1
We're using bitcoind on our server.
When people withdraw from our system we want to have the correct miner fee.
I understand that we can get the good miner fee from txconfirmtarget or the API from: https://bitcoinfees.21.co/api
But when we send a transaction how do we know which miner fee to put if we want to enter it into the database?
EDIT: I do notice this: bitcoin-cli estimatefee 2 but then how do we find out how many bytes are being sent?
Are you using bitcoind's internal wallet or just using it to create and broadcast a raw transaction? – Andrew Chow – 2017-07-05T23:17:37.640
bitcoind on a centos server – Marc Alexander – 2017-07-06T16:25:52.493
That doesn't answer my question. Are you using bitcoind as a wallet (i.e. using sendtoaddress, sendmany, etc. RPCs) or just as a node to broadcast your transactions with? – Andrew Chow – 2017-07-06T16:31:08.030
as a wallet with RPCs – Marc Alexander – 2017-07-06T16:37:24.417