I'm trying to look at the distribution of fees per kb of weight, but all I can find in the RPC connection to the daemon is the fees of a transaction. Note that I want the weight of a transaction, not the actual size. That means including the effects of the clawback.
I guess I could get size from the hex representation of the TX, but that doesn't take into account the weight-clawback for Txes with more than 2 inputs or outputs.
To be clear, I want to do this for almost all transactions on the blockchain, not just my own transactions.