I make a get_block_template request to a monerod using a RPC interface.
From response of this request I can get the a value of
expected_reward = block_reward + tx_fees_amount
But I would like to know just a value of
block_reward = expected_reward - tx_fees_amount
To do this, I need to know a value of transaction fees in this potential block.
1) How can I get the amount for transaction fees in a potential block?
2) Am I moving in the right way to get a block reward without the transaction fees in it? Maybe there are easier ways?
3) Before writing this question, I looked at the answers to similar questions. There are many formulas for calculation block rewards using a value of coins emission. Should I move in that direction? But having a only RPC of my monero node I don't know how to request the current emission of monero's coins. Is it possible?