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

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

export { useGetStakingTransactions };
//# sourceMappingURL=use-get-staking-transactions.js.map
//# sourceMappingURL=use-get-staking-transactions.js.map