UNPKG

@safe-global/safe-react-hooks

Version:

A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts

12 lines (11 loc) 672 B
import { type UseQueryResult } from '@tanstack/react-query'; import type { ConfigParam, SafeConfig, Transaction } from '../types/index.js'; export type UseTransactionsParams = ConfigParam<SafeConfig>; export type UseTransactionsReturnType = UseQueryResult<Transaction[]>; /** * Hook to get all executed transactions for the connected Safe. * @param params Parameters to customize the hook behavior. * @param params.config SafeConfig to use instead of the one provided by `SafeProvider`. * @returns Query result object containing the list of executed transactions. */ export declare function useTransactions(params?: UseTransactionsParams): UseTransactionsReturnType;