0

I want to find the sat/vb of a tx in a mempool. I am using bitcoin-cli to do this.

cmd = ['bitcoin-cli', 'getrawtransaction', txid, "true"]

This is the command that I extrect the info of the given tx but it only returns the size not the fee. Thus I cannot calculate the sat/vb how can I find how much fee is paid?

1 Answer 1

1

Since Bitcoin Core v25.0 (implemented in #23319) you can get the transaction fee (and prevouts) in getrawtransaction by setting the last parameter to 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.