setChainInfo static method

Future<bool> setChainInfo(
  1. ChainInfo chainInfo
)

Set chain info, update chain info to SDK.

chainInfo Chain info, for example Ethereum, Polygon.

Implementation

static Future<bool> setChainInfo(ChainInfo chainInfo) async {
  return await _channel.invokeMethod(
      'setChainInfo',
      jsonEncode({
        "chain_name": chainInfo.name,
        "chain_id": chainInfo.id,
      }));
}