Join our developer TG channel for updates
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
- Mint and submit multiple txs using your own RPC/Jito
- Retrieve Token Price & Position on Bonding Curve
- Calculate Collateral & Token Flow (In/Out)
- Execute Buy & Sell Transactions (both Exact In and Exact Out)
- Solana SDK
- EVM SDK
- Fogo SDK
Supported SDKs
Solana SDK
Use this SDK to interact with Moonit on Solana. NPM Package:@moonit/sdk
🔗 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
🔗 https://www.npmjs.com/package/@moonit/sdk-evm
Fogo SDK
Use this SDK to interact with Moonit on Fogo. NPM Package:@moonit/sdk-fogo
🔗 https://www.npmjs.com/package/@moonit/sdk-fogo
Installation
Install the SDK depending on your target environment.Solana
bash
EVM
bash
Fogo
bash
Example Code
Solana Example
🐙 GitHub - gomoonit/moonit-bot-examples: Examples for using the official SDK
The buy and sell instructions are also available on-chain via the Smart Contract and accessible through CPI (Cross-Program Invocation).
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:


