getAddresses method
- required UTXONetworkType networkType,
- required Iterable<
AddressType> addressTypes,
Implementation
Iterable<String> getAddresses({
required UTXONetworkType networkType,
required Iterable<AddressType> addressTypes,
}) {
try {
final (pubKey, _) =
getPublicKeyFromLockingScript(scriptPubKey, networkType);
return [
for (final addressType in addressTypes)
pubKeyHashToAddress(pubKey, addressType, networkType)
];
} catch (e) {
return [];
}
}