Skip to main content
Bumped by Community user
Clarify that I want the weight, not the size
Source Link

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. NotNote 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-penaltyclawback for bigger 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.

I'm trying to look at the distribution of fees per kb, but all I can find in the RPC connection to the daemon is the fees of a transaction. Not the weight of a transaction. I guess I could get size from the hex representation of the TX, but that doesn't take into account the weight-penalty for bigger 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.

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.

Source Link

How do I get the weight of a transaction from the RPC daemon

I'm trying to look at the distribution of fees per kb, but all I can find in the RPC connection to the daemon is the fees of a transaction. Not the weight of a transaction. I guess I could get size from the hex representation of the TX, but that doesn't take into account the weight-penalty for bigger 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.