import { getEpochTransaction } from '@rss3/api-core';
import { useQuery } from '@tanstack/react-query';

function useGetEpochTransaction(params, options) {
  const queryKey = ["useGetEpochTransaction", params];
  const query = useQuery({
    queryKey,
    queryFn: () => {
      const args = Array.isArray(params) ? params : [params];
      return getEpochTransaction(
        ...args
      );
    },
    ...options
  });
  return {
    ...query,
    queryKey
  };
}

export { useGetEpochTransaction };
//# sourceMappingURL=use-get-epoch-transaction.js.map
//# sourceMappingURL=use-get-epoch-transaction.js.map