A hook to get the current wallet's capabilities according to EIP-5792 .
import { useCapabilities } from "thirdweb/react";const { data: capabilities, isLoading } = useCapabilities();
function useCapabilities(options?: { queryOptions?: Pick< UseQueryOptions<unknown, Error, unknown, QueryKey>, "enabled" | "retry" >;}): UseQueryResult<GetCapabilitiesResult>;
let options: { queryOptions?: Pick< UseQueryOptions<unknown, Error, unknown, QueryKey>, "enabled" | "retry" >;};
let returnType: UseQueryResult<GetCapabilitiesResult>;
a React Query object.