@safe-global/safe-react-hooks
Version:
A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts
13 lines (12 loc) • 638 B
TypeScript
import type { Address } from 'viem';
import { type UseQueryResult } from '@tanstack/react-query';
import type { ConfigParam, SafeConfig } from '../../types/index.js';
export type UseOwnersParams = ConfigParam<SafeConfig>;
export type UseOwnersReturnType = UseQueryResult<Address[]>;
/**
* Hook to get the connected Safe's owners.
* @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 connected Safe's owners.
*/
export declare function useOwners(params?: UseOwnersParams): UseOwnersReturnType;