# Contract Module

This module provides TypeScript interfaces and types for interacting with blockchain contracts. It includes definitions for various contract parameters and functions, allowing for type-safe contract interactions.

## Features

* TypeScript interfaces for contract parameters.
* Type-safe function definitions for contract interactions.
* Support for multiple contract versions.

## Usage

Import the necessary interfaces and types from this module to ensure type safety when interacting with blockchain contracts in your application.

## Usage Example

```typescript
import { ProofOfIdentityV2 } from "@haven1/wagmi-sdk/contract";

const { data, isLoading, isError } = ProofOfIdentityV2({
  address: '0xYourAddressHere',
  contractAddress: ProofOfIndentity.address,
  chainId: haven1Testnet.id,
});

if (isLoading) {
  console.log('Loading...');
} else if (isError) {
  console.error('Error fetching data');
} else {
  console.log('User Data:', data);
}
```

This example demonstrates how to use the `ProofOfIdentityV2` function to fetch user identity details from a smart contract. Replace the placeholders with actual addresses.


---

# 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-wagmi-sdk/contract-module.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.
