UNPKG

wttp-core

Version:

Core contracts, interfaces, and TypeScript types for the Web3 Transfer Protocol (WTTP).

10 lines 294 B
import { config } from '../wttp.config'; export function getRpcUrl(chainId) { const chain = config.chains[chainId]; if (!chain) { throw new Error(`Chain ${chainId} not found in config`); } return chain.rpcsList[0]; } export { config }; //# sourceMappingURL=config.js.map