chainId property
String
get
chainId
Implementation
String get chainId {
if (sessionService.isWC) {
final chainIds = NamespaceUtils.getChainIdsFromNamespaces(
namespaces: namespaces ?? {},
);
if (chainIds.isNotEmpty) {
return (chainIds..sort()).first.split(':')[1];
}
}
if (sessionService.isCoinbase) {
return _coinbaseData!.chainId.toString();
}
if (sessionService.isMagic) {
return _magicData!.chainId.toString();
}
return '1';
}