# 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)
