> For the complete documentation index, see [llms.txt](https://cetus-1.gitbook.io/cetus-developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cetus-1.gitbook.io/cetus-developer-docs/developer/via-clmm-contract/getting-started.md).

# Getting Started

## How to depend on this service?

### **Use MVR (**&#x72;ecommend)

1. Install mvr CLI
2. using Move Registry CLI

```
mvr add @cetuspackages/clmm --network mainnet
```

### Use github tag

**Dependencies**

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

```
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-contracts.git", subdir = "packages/cetus_clmm", rev = "mainnet-v0.0.14", override = true }
```

{% endtab %}

{% tab title="Testnet" %}

```
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-contracts.git", subdir = "packages/cetus_clmm", rev = "testnet-v0.0.1", override = true }
```

{% endtab %}
{% endtabs %}

#### Example

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

```
[package]
name= "cetus_example"
version = "0.0.1"

[dependencies]
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-contracts.git", subdir = "packages/cetus_clmm", rev = "mainnet-v0.0.14", override = true }

[address]
cetus_example = "0x0"
// don't need to define cetus_clmm duplicate
```

{% endtab %}

{% tab title="Testnet" %}

```
[package]
name= "cetus_example"
version = "0.0.1"

[dependencies]
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-contracts.git", subdir = "packages/cetus_clmm", rev = "testnet-v0.0.1", override = true }

[address]
cetus_example = "0x0"
// don't need to define cetus_clmm duplicate
```

{% endtab %}
{% endtabs %}

## How to build and publish?

{% hint style="danger" %}
Cetus clmm interface is not complete in terms of code base (only function definition is provided), so it will get failed when sui client checks its code version. However, this does not affect its actual functionality.&#x20;

Therefore, we need to add a `--dependencies-are-root` during the build and publish.
{% endhint %}

### Global Config ID

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

```typescript
0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f
```

{% endtab %}

{% tab title="Testnet" %}

```
0xc6273f844b4bc258952c4e477697aa12c918c8e08106fac6b934811298c9820a
```

{% endtab %}
{% endtabs %}

### Pools ID

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

```typescript
0xf699e7f2276f5c9a75944b37a0c5b5d9ddfd2471bf6242483b03ab2887d198d0
```

{% endtab %}

{% tab title="Testnet" %}

```
0x20a086e6fa0741b3ca77d033a65faf0871349b986ddbdde6fa1d85d78a5f4222
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cetus-1.gitbook.io/cetus-developer-docs/developer/via-clmm-contract/getting-started.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
