import '../../crypto_currency/interfaces/electrumx_currency_interface.dart'; import 'electrumx_interface.dart'; typedef TxSize = ({int real, int virtual}); mixin RbfInterface on ElectrumXInterface { // TODO actually save the size Future getVSize(String txid) async { final tx = await electrumXCachedClient.getTransaction( txHash: txid, cryptoCurrency: cryptoCurrency, ); try { return (real: tx["size"] as int, virtual: tx["vsize"] as int); } catch (_) { return null; } } // TODO more RBF specific logic }