Function useSuiClientQuery
- useSuiClientQuery<
T extends SuiRpcMethodName,
TData = SuiRpcMethods[T]["result"],
>(
...args: undefined extends SuiRpcMethods[T]["params"]
? [
method: T,
params?: SuiRpcMethods[T]["params"],
options?: UseSuiClientQueryOptions<T, TData>,
]
: [
method: T,
params: SuiRpcMethods[T]["params"],
options?: UseSuiClientQueryOptions<T, TData>,
],
): UseQueryResult<TData, Error> Returns UseQueryResult<TData, Error>