'use strict';

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

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

exports.useGetStakingTransaction = useGetStakingTransaction;
//# sourceMappingURL=use-get-staking-transaction.cjs.map
//# sourceMappingURL=use-get-staking-transaction.cjs.map