# Utilities & Reference

Essential tools, helpers, and reference materials for DLMM development. This section provides utility functions for common calculations, comprehensive error handling guides, optimization best practices, and migration paths from other protocols.

### Prerequisites

Before using utilities and references, ensure you have:

* Basic DLMM SDK integration experience
* Understanding of common protocol operations
* Familiarity with TypeScript/JavaScript
* Knowledge of error handling patterns
* Experience with AMM protocols (for migration)

### What You'll Learn

This section provides comprehensive development resources and tools:

#### [Price Helpers](/integration/dlmm/typescript-sdk/utilities-and-reference/price-helpers.md)

Utility functions for price conversions between human-readable formats and protocol values. Convert between decimal prices, bin IDs, and fixed-point representations.

#### [Amount Helpers](broken://pages/eVFjJ017LCvmdkci0Axv)

Calculate and format token amounts for protocol interactions. Handle decimal conversions, precise rounding, and amount validations for safe operations.

#### [Error Handling](broken://pages/SeVkw6BAY2olbKcQS95N)

Comprehensive guide to DLMM error types, common issues, and solutions. Learn to gracefully handle transaction failures and provide meaningful user feedback.

#### [Best Practices](/integration/dlmm/typescript-sdk/utilities-and-reference/best-practices.md)

Performance optimization tips for efficient DLMM interactions. Minimize gas usage, batch operations effectively, and implement robust retry mechanisms.

#### [Migration Guide](broken://pages/TubxuJUpAukMUUxrnfOS)

Step-by-step guide for transitioning from CLMM to DLMM. Understand key differences, map equivalent operations, and migrate existing positions efficiently.


---

# 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.ferra.ag/integration/dlmm/typescript-sdk/utilities-and-reference.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.
