getSnEndpoint static method

String getSnEndpoint(
  1. String network
)

Implementation

static String getSnEndpoint(String network) {
  if (network.contains('polkadot')) {
    network = 'polkadot';
  }
  if (network.contains('acala')) {
    network = 'acala-testnet';
  }
  return 'https://$network.api.subscan.io/api/scan';
}