# Contracts Library

[**COTI Contracts**](https://github.com/coti-io/coti-contracts) is a library of smart contracts for COTI's GC technology, including MPC contract for secure computations, private ERC20 and ERC721 contracts, and test mocks for validation. These components enable privacy-focused and decentralized DeFi solutions.

## Clone, Build & Test

Full instructions for building and testing the package locally are available in the [coti-contracts GitHub repository](https://github.com/coti-io/coti-contracts)

## Installation

### Hardhat (npm)

```bash
npm install @coti-io/coti-contracts
```

{% hint style="info" %}
SDK versions < 1.0.0 are for use with the Devnet, versions >= 1.0.0 are for use with the Testnet
{% endhint %}

## Usage

See the [**coti-contracts-examples**](https://github.com/coti-io/coti-contracts-examples) repository for code examples.


---

# 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.coti.io/coti-documentation/build-on-coti/tools/contracts-library.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.
