"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getExplorerUrl = exports.isEVMChain = void 0;
const config_1 = require("./config");
const isEVMChain = (chainId) => {
    if (!chainId) {
        return false;
    }
    return chainId.startsWith(config_1.EVM_PREFIX);
};
exports.isEVMChain = isEVMChain;
const getExplorerUrl = (chainId) => {
    const chain = (0, config_1.getConfigByChainId)(chainId);
    if (chain) {
        return chain.explorer;
    }
    return '';
};
exports.getExplorerUrl = getExplorerUrl;
