AMM Swap SDK

Developers can interact with DipCoin’s Spot AMM (Automated Market Maker) through both off-chain and on-chain components.

Off-Chain Components (Read-Only)

The off-chain component is designed for querying information and consists of a set of open API endpoints. Users can retrieve the following data:

  • Exchange data (e.g., Total Value Locked (TVL), total trading volume, total fees generated).

  • List of available liquidity pools.

  • Details of each liquidity pool (e.g., contract address, transaction history, TVL, fee structure).

However, these APIs are read-only and may experience some latency. To perform transactional operations (e.g., token swaps, adding/removing liquidity, opening/closing positions, claiming fees/rewards), users must interact with the on-chain components.

On-Chain Components (Transactional Operations)

For on-chain interactions, developers can use our pre-built functions and interfaces to directly call smart contracts and execute various transactions (e.g., token swaps, liquidity provisioning, position management).

We provide SDKs in multiple programming languages to streamline development:

If developers wish to build their own SDK in another language, they can reference the existing DipCoin SDK implementations and adapt the functionality accordingly. High-quality contributions in additional languages are welcome; feel free to submit them to us.

Last updated