import 'dart:typed_data'; import 'package:bitcoin_base/bitcoin_base.dart' as bitcoin; List addressToOutputScript(String address, bitcoin.BasedUtxoNetwork network) { try { return bitcoin.addressToOutputScript(address: address, network: network); } catch (err) { print(err); return Uint8List(0); } }