@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) • 729 B
TypeScript
import { type UseQueryResult } from '@tanstack/react-query';
import type { ConfigParam, SafeConfig, SafeMultisigTransaction } from '../types/index.js';
export type UsePendingTransactionsParams = ConfigParam<SafeConfig>;
export type UsePendingTransactionsReturnType = UseQueryResult<SafeMultisigTransaction[]>;
/**
* Hook to get all pending 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 pending transactions.
*/
export declare function usePendingTransactions(params?: UsePendingTransactionsParams): UsePendingTransactionsReturnType;