accountEth.dart 441 B

123456789101112131415161718
  1. import 'dart:convert';
  2. import 'package:polkawallet_sdk/service/index.dart';
  3. class ServiceAccountEth {
  4. ServiceAccountEth(this.serviceRoot);
  5. final SubstrateService serviceRoot;
  6. /// Get icons of addresses
  7. /// return svg strings
  8. Future<List?> getAddressIcons(List addresses) async {
  9. final dynamic res = await serviceRoot.webView!
  10. .evalJavascript('eth.account.genIcons(${jsonEncode(addresses)})');
  11. return res;
  12. }
  13. }