# Migrate from v1 to v2

In the SDK v2, we've implemented comprehensive enhancements and refactoring throughout. We've standardized function names, parameter formats, and return value structures. Additionally, deprecated APIs have been eliminated. As old SDKs will be deprecated in the future, **please migrate your integration using the new SDK as early as possible.**

Below are the key migration highlights. For detailed information, please refer to the TypeScript definitions.


---

# 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://cetus-1.gitbook.io/cetus-developer-docs/developer/via-sdk-v2/migrate-from-v1-to-v2.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.
