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

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

export { useGetStakingTransaction };
//# sourceMappingURL=use-get-staking-transaction.js.map
//# sourceMappingURL=use-get-staking-transaction.js.map