tryDecodeBech32 static method
(List<int> , String)?
tryDecodeBech32({
- required String bech32,
- required Bech32Encodings encoding,
Implementation
static (List<int>, String)? tryDecodeBech32({
required String bech32,
required Bech32Encodings encoding,
}) {
try {
final decode = Bech32Decoder.decodeWithoutHRP(bech32, encoding: encoding);
return (decode.$2, decode.$1);
} catch (_) {}
return null;
}