UNPKG

@reservoir0x/relay-kit-ui

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

12 lines 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getChainBlockExplorerUrl = (chainId, chains) => { let blockExplorerUrl = chains?.find((chain) => chain.id === chainId)?.explorerUrl || 'https://etherscan.io'; if (blockExplorerUrl.endsWith('/')) { blockExplorerUrl = blockExplorerUrl.slice(0, -1); } return blockExplorerUrl; }; exports.default = getChainBlockExplorerUrl; //# sourceMappingURL=getChainBlockExplorerUrl.js.map