UNPKG

@lifi/sdk

Version:

LI.FI Any-to-Any Cross-Chain-Swap SDK

13 lines 452 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRpcUrls = void 0; const config_js_1 = require("../config.js"); const getRpcUrls = async (chainId) => { const rpcUrls = (await config_js_1.config.getRPCUrls())[chainId]; if (!rpcUrls?.length) { throw new Error(`RPC URL not found for chainId: ${chainId}`); } return rpcUrls; }; exports.getRpcUrls = getRpcUrls; //# sourceMappingURL=rpc.js.map