cake_wallet/cw_bitcoin/lib/address_to_output_script.dart

12 lines
322 B
Dart
Raw Normal View History

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