# Haven1 SDK

## Features

**Easy Integration**: Seamlessly integrate with the Haven1 blockchain using our comprehensive SDK.

**TypeScript Support**: Enjoy full TypeScript support for type safety and better development experience.

## Haven1 SDK Packages

This guide will help you quickly get started with each of the Haven1 SDK packages, including Blockchain, React, Wagmi, and API Client.

### Blockchain SDK

**Installation**

{% tabs %}
{% tab title="npm" %}

```sh
npm install @haven1/blockchain-sdk
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn add @haven1/blockchain-sdk
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm add @haven1/blockchain-sdk
```

{% endtab %}
{% endtabs %}

**Usage**: If your project is based on ethers, this package provides essential configurations and utilities for interacting with the Haven1 blockchain, including chain configurations, contract addresses, ABI definitions, and utility functions.&#x20;

**Dependencies**: `ethers`, `axios`&#x20;

**Peer Dependencies**: `react`, `react-dom`

### Wagmi SDK

**Installation**&#x20;

{% tabs %}
{% tab title="npm" %}

```sh
npm install @haven1/wagmi-sdk
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn add @haven1/wagmi-sdk
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm add @haven1/wagmi-sdk
```

{% endtab %}
{% endtabs %}

**Usage**: If your project is based on wagmi, this package provides hooks and utilities for managing blockchain interactions, including wallet connections and contract calls.&#x20;

**Dependencies**: `wagmi`, `ethers`&#x20;

**Peer Dependencies**: `@tanstack/react-query`, `react`, `viem`, `wagmi`, `@haven1/sdk-api-client`, `@haven1/react-sdk`, `@haven1/blockchain-sdk`

### React SDK

**Installation**

{% tabs %}
{% tab title="npm" %}

```sh
npm install @haven1/react-sdk
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn add @haven1/react-sdk
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm add @haven1/react-sdk
```

{% endtab %}
{% endtabs %}

**Usage**: This package includes Haven1 design system React components and hooks for building user interfaces that interact with the Haven1.&#x20;

**Dependencies**: `react`, `react-dom`, `@haven1/blockchain-sdk`&#x20;

**Peer Dependencies**: `react-router-dom`

### API Client SDK

**Installation**

{% tabs %}
{% tab title="npm" %}

```sh
npm install @haven1/sdk-api-client
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn add @haven1/sdk-api-client
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm add @haven1/sdk-api-client
```

{% endtab %}
{% endtabs %}

**Usage**: This package provides a Open API standard client for interacting with the Haven1 API. It handles authentication and SDK API requests.

**Dependencies**: `axios`&#x20;

**Peer Dependencies**: `react`, `react-dom`

Each package comes with detailed documentation to help you explore more advanced features and configurations.&#x20;

Ensure you have the necessary peer dependencies installed in your project to avoid any issues during development.
