Link: https://github.com/spesmilo/electrum/blob/master/electrum/commands.py
deserialize also do not return with the transaction's fee rate, just the exact data in the raw transaction.
I found this. Maybe it helps
https://github.com/spesmilo/electrum/blob/master/electrum/transaction.py
"""Return an estimated virtual tx size in vbytes.
BIP-0141 defines 'Virtual transaction size' to be weight/4 rounded up.
This definition is only for humans, and has little meaning otherwise.
If we wanted sub-byte precision, fee calculation should use transaction
weights, but for simplicity we approximate that with (virtual_size)x4
"""
weight = self.estimated_weight()
return self.virtual_size_from_weight(weight)
Oh, OK. So is this an Electrum command exposed to the user, or just a regular function?