useIsAccountDeployed

Check if a account has been deployed for the given admin

function useIsAccountDeployed(
  contract: RequiredParam<SmartContract<BaseContract>>,
  admin: RequiredParam<string>,
  extraData?: BytesLike,
): UseQueryResult<boolean>;

Parameters


Returns

a boolean indicating if a account has been deployed for the given admin

type ReturnType = UseQueryResult<boolean>;

Example

const {
  data: isAccountDeployed,
  isLoading,
  error,
} = useIsAccountDeployed(contract);