import { base64 as r } from "@scure/base";
import { z as e } from "zod";
import { decodeQueryResult as i } from "./decodeQueryResult.js";
import { nearRpcClient as a } from "./rpc.js";
const d = async ({
  contractId: t
}) => {
  const n = await a.query({
    request_type: "call_function",
    method_name: "storage_balance_bounds",
    account_id: t,
    args_base64: r.encode(new TextEncoder().encode(JSON.stringify({}))),
    finality: "optimistic"
  }), o = i(
    n,
    e.object({ min: e.string(), max: e.string() })
  );
  return BigInt(o.min);
};
export {
  d as getNearNep141MinStorageBalance
};
//# sourceMappingURL=getNearNep141MinStorageBalance.js.map
