import { networkRegistry as e } from "../../constants/chains.constants.mjs";
import { JsonRpcProvider as t } from "ethers";
import { Connection as n } from "@solana/web3.js";
//#region libs/shared/common/src/functions/utils/create-provider.ts
var r = (n) => {
	let { fetchRpcUrl: r } = e[n];
	if (!r) throw Error("RPC URL not found for the specified chain ID");
	return new t(r, n, { staticNetwork: !0 });
}, i = (e, t = "confirmed") => new n(e, t);
//#endregion
export { i as createCustomSolanaConnection, r as createJsonRpcProvider };
