Future<int?> getSlashingSpans(String stashId) async { final dynamic spans = await serviceRoot.webView! .evalJavascript('staking.getSlashingSpans(api, "$stashId")'); return spans; }