# Application Binary Interfaces

Depending on what web3 library you're using, you may need to get hold of the contract ABIs (Application Binary Interfaces). There are two ways to obtain them.

## 1. Install Node Package

We provide a node package called [@hifi/protocol](https://www.npmjs.com/package/@hifi/protocol) that contains the ABIs for the contracts deployed on mainnet:

{% embed url="<https://www.npmjs.com/package/@hifi/protocol>" %}

{% hint style="info" %}
Pro tip: use [unpkg.com](https://unpkg.com/browse/@hifi/protocol@1.0.0/) to browse the contents of the package before installing it.
{% endhint %}

## 2. Clone the Repo

Alternatively, you can clone our GitHub [repository](https://github.com/hifi-finance/hifi-protocol) and compile the contracts yourself. The git commit that we used to deploy the contracts is [b06eda9](https://github.com/hifi-finance/hifi-protocol/commit/b06eda91bbbb21f29f5bc3ac238f74763c4d1057), which is also tagged as [v1.0.0](https://github.com/hifi-finance/hifi-protocol/tree/v1.0.0).&#x20;

```bash
$ git clone git@github.com:hifi-finance/hifi-protocol.git
$ cd ./hifi-protocol
$ git checkout v1.0.0

$ yarn install
$ yarn compile
```

You should find the artifacts in the newly created `artifacts/contracts` folder.


---

# 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://v0.docs.hifi.finance/development/abis.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.
