import { providers as o } from "near-api-js";
import { FailoverRpcProvider as t } from "near-api-js/lib/providers";
function c({
  rpcProviders: r
}) {
  return new t(r);
}
function p({ urls: r }) {
  const e = r.map(
    (n) => new o.JsonRpcProvider({ url: n })
  );
  return c({ rpcProviders: e });
}
const s = {
  /**
   * RPC URLs for different blockchains.
   * Ensure these URLs are valid and accessible.
   */
  rpcUrls: {
    near: "https://relmn.aurora.dev"
  }
}, a = [
  s.rpcUrls.near,
  "https://free.rpc.fastnear.com",
  "https://rpc.mainnet.near.org"
], l = p({
  urls: a
});
export {
  l as nearClient
};
//# sourceMappingURL=nearClient.js.map
