# @haven1/blockchain-sdk

### Key Features

* **Chain Configurations**: Access predefined settings for the Haven1 blockchain, including chain ID, network URLs, and other parameters.
* **ABI Definitions**: Includes ABI files for key Haven1 smart contracts, allowing seamless interaction with the blockchain.
* **Contract Addresses**: Provides a centralized source of Haven1 contract addresses to eliminate hardcoding.
* **Utility Functions**: Built-in utilities to simplify common blockchain tasks such as initializing providers or interacting with contracts.

### Dependencies

This package requires **ethers.js** as a peer dependency to handle low-level blockchain interactions.

## Installation

Install the `@haven1/blockchain-sdk` package using your preferred package manager.

{% 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 %}

### Summary

The `@haven1/blockchain-sdk` is a comprehensive toolkit designed to facilitate seamless integration with the Haven1 blockchain. It offers a range of features including chain configurations, ABI definitions, and utility functions, all aimed at simplifying blockchain interactions. By centralizing contract addresses and providing pre-configured settings, this SDK reduces the complexity of blockchain development and ensures efficient and reliable integration.

### Namespaces

* DevnetContract
* TestnetContract


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.haven1.org/build/developer-tools/haven1-sdk/haven1-blockchain-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
