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