> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moon.it/llms.txt
> Use this file to discover all available pages before exploring further.

# Bot SDK

Calculate prices and execute buy/sell and mint transactions via the Moonit SDK

<Info>
  Join our [developer TG channel ](https://t.me/+dYgiHDL-Z29jZGRk)for updates
</Info>

# Overview

The **Moonit SDK** provides the following functions :

* **Make full use of all features for our two curve options: standard and flat curves**
* **Mint a Token**
  * Prepare and Submit Transactions
  * Upload All Assets
  * [<u>Mint and submit multiple txs using your own RPC/Jito</u>](https://github.com/gomoonit/moonit-bot-examples/tree/main/src/jito-mint)
* **Retrieve Token Price & Position on Bonding Curve**
* **Calculate Collateral & Token Flow (In/Out)**
* **Execute Buy & Sell Transactions** (both **Exact In** and **Exact Out**)

Moonit currently supports the following SDKs:

* **Solana SDK**
* **EVM SDK**
* **Fogo SDK**

# Supported SDKs

## Solana SDK

Use this SDK to interact with Moonit on **Solana**.

NPM Package: `@moonit/sdk`

> 🔗 [<u>https://www.npmjs.com/package/@moonit/sdk</u>](https://www.npmjs.com/package/@moonit/sdk)

## EVM SDK

Use this SDK to interact with Moonit on **EVM-compatible chains**.

NPM Package: `@moonit/sdk-evm`

> 🔗 [<u>https://www.npmjs.com/package/@moonit/sdk-evm</u>](https://www.npmjs.com/package/@moonit/sdk-evm)

## Fogo SDK

Use this SDK to interact with Moonit on **Fogo**.

NPM Package: `@moonit/sdk-fogo`

> 🔗 [<u>https://www.npmjs.com/package/@moonit/sdk-fogo</u>](https://www.npmjs.com/package/@moonit/sdk-fogo)

# Installation

Install the SDK depending on your target environment.

## Solana

```text bash theme={null}
npm install @moonit/sdk
```

## EVM

```text bash theme={null}
npm install @moonit/sdk
```

## Fogo

```text bash theme={null}
npm install @moonit/sdk
```

# Example Code

## Solana Example

> 🐙 [GitHub - gomoonit/moonit-bot-examples: Examples for using the official SDK](https://github.com/gomoonit/moonit-bot-examples)

<Info>
  The **buy and sell instructions** are also **available on-chain** via the **Smart Contract** and accessible through **CPI (Cross-Program Invocation)**.
</Info>

# Migration from @wen-moon-ser/moonshot-sdk

If you are using the old moonshot-sdk there is a simple way to migrate to @moonit/sdk as the packages are compatible.

Replace the dependency `@wen-moon-ser/moonshot-sdk` with `@moonit/sdk` and update all `Moonshot` class imports with `Moonit`. Example:

<img src="https://mintcdn.com/moonit/RFZz2eHpvmvKyBbl/images/3ee254eced63f4a8320157f1b49d99044c9f46bd2f090834465047b9c5920645-image_9.avif?fit=max&auto=format&n=RFZz2eHpvmvKyBbl&q=85&s=a8f0cae80e24669e41dc4ba40f2f5507" alt="3ee254eced63f4a8320157f1b49d99044c9f46bd2f090834465047b9c5920645 Image 9" width="600" height="64" data-path="images/3ee254eced63f4a8320157f1b49d99044c9f46bd2f090834465047b9c5920645-image_9.avif" />

<img src="https://mintcdn.com/moonit/RFZz2eHpvmvKyBbl/images/c5e9b2e78292deb83c8d7a99ceeb268bb556aea1a1794c5259e66646a890cce2-image_10.avif?fit=max&auto=format&n=RFZz2eHpvmvKyBbl&q=85&s=821a5e329dd26903a4b0cfc1ec927803" alt="C5e9b2e78292deb83c8d7a99ceeb268bb556aea1a1794c5259e66646a890cce2 Image 10" width="1536" height="475" data-path="images/c5e9b2e78292deb83c8d7a99ceeb268bb556aea1a1794c5259e66646a890cce2-image_10.avif" />
