> For the complete documentation index, see [llms.txt](https://docs.haven1.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.haven1.org/build/developer-tools/haven1-sdk/haven1-react-sdk/usehaven1sdk.md).

# useHaven1SDK

## Function: useHaven1SDK()

> **useHaven1SDK**(): `Haven1SDK`

Custom hook to access the Haven1 SDK instance from the context.

### Returns

`Haven1SDK`

The Haven1 SDK instance.

### Throws

If the Haven1SDKProvider is missing in the component tree.

### Defined in

[packages/react/src/api/hook/useHaven1Sdk.tsx:35](https://github.com/haven1network/haven1-sdk/blob/7cd51fbeb78d9011a6b1c4b8e514287b0d830453/packages/react/src/api/hook/useHaven1Sdk.tsx#L35)
