launchBlockExplorer method
Launch blockchain explorer for the current chain in external browser
Implementation
@override
void launchBlockExplorer() async {
if ((selectedChain?.explorerUrl ?? '').isNotEmpty) {
final blockExplorer = selectedChain!.explorerUrl;
final address = _currentSession?.address ?? '';
final explorerUrl = '$blockExplorer/address/$address';
await uriService.instance.launchUrl(
Uri.parse(explorerUrl),
mode: LaunchMode.externalApplication,
);
}
}