watchAsset static method

Future<bool> watchAsset(
  1. WatchAssetParameters watchAssetParameters, {
  2. String configKey = 'default',
})

Implementation

static Future<bool> watchAsset(
    WatchAssetParameters watchAssetParameters, {
      String configKey = 'default',
    }) =>
    _guardFuture(() async {
      _logAction('watchAsset');
      final result = await window.wagmiCore
          .watchAsset(
        configKey.toJS,
        watchAssetParameters.toJS,
      )
          .toDart;
      return result.toDart;
    });