> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xmonaco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useMonacoSDK

> Access SDK instance and global state

```tsx theme={null}
import { useMonacoSDK } from "@0xmonaco/react";

const { 
  sdk,
  clientId,
  error,
  clearError,
  setError
} = useMonacoSDK();
```

<ResponseField name="sdk" type="MonacoSDK | null">
  Monaco SDK instance (null while initializing)
</ResponseField>

<ResponseField name="clientId" type="string">
  Application client ID from provider
</ResponseField>

<ResponseField name="error" type="Error | null">
  SDK initialization error if any
</ResponseField>

<ResponseField name="clearError" type="() => void">
  Clear the current error
</ResponseField>

<ResponseField name="setError" type="(error: Error | null) => void">
  Set an error state
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.