'use strict';

var apiCore = require('@rss3/api-core');
var reactQuery = require('@tanstack/react-query');

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

exports.useGetEpochTransaction = useGetEpochTransaction;
//# sourceMappingURL=use-get-epoch-transaction.cjs.map
//# sourceMappingURL=use-get-epoch-transaction.cjs.map