dex-skills v0.1.0

Moonshot

Moonshot is a Solana token launchpad that uses the @moonit/sdk for token creation. The launch flow follows a three-step process: prepare the mint transaction, sign it with your wallet, and submit it. Token data is queried via Dexscreener.

Chain

Solana Mainnet

Key Details

Property Value
SDK @moonit/sdk
Launch Flow prepareMintTx → sign → submitMintTx
Token Standard SPL Token
Query Provider Dexscreener
Private Key Format Base58

Setup

Initialize dex-skills for Moonshot
import { createSkills, getSkill } from "dex-skills";

const skills = createSkills({
  wallets: {
    solana: {
      privateKey: "your-base58-private-key",
      rpcUrl: "https://api.mainnet-beta.solana.com",
    },
  },
});

const moonshot = getSkill(skills, "moonshot");

Launch a Token

Internally, dex-skills handles the full Moonshot launch flow: calling prepareMintTx to construct the transaction, signing it with your private key, and submitting it via submitMintTx.

Launch Example
const result = await moonshot.launch({
  name: "Moon Token",
  symbol: "MOON",
  description: "A token launched on Moonshot.",
  imageUrl: "https://example.com/token-logo.png",
  bannerUrl: "https://example.com/token-banner.png",
  initialBuyAmount: "0.1",
  links: {
    twitter: "https://x.com/moontoken",
    telegram: "https://t.me/moontoken",
    website: "https://moontoken.xyz",
  },
});

console.log("Token address:", result.tokenAddress);
console.log("Transaction:", result.txHash);

Launch Parameters

Parameter Type Description
name * string Display name of the token.
symbol * string Token ticker symbol.
description string Description of the token.
imageUrl string URL to the token icon image (max 2MB). Converted to base64 internally.
bannerUrl string URL to the token banner image (max 5MB). Moonshot-specific. Converted to base64 internally.
initialBuyAmount string Amount of SOL to spend on an initial buy immediately after launch.
links object Social links object with optional keys: twitter, telegram, website.

Query Token Info

Token information is fetched from Dexscreener, providing real-time market data including price, volume, and liquidity metrics.

Get Token Info
const token = await moonshot.getTokenInfo("TokenMintAddress...");

console.log("Name:", token.name);
console.log("Symbol:", token.symbol);
console.log("Price (USD):", token.priceUsd);
console.log("Liquidity:", token.liquidityUsd);

List Tokens

List Tokens
const tokens = await moonshot.listTokens({
  limit: 20,
  sortBy: "createdAt",
  sortOrder: "desc",
});

for (const token of tokens) {
  console.log(token.symbol, token.tokenAddress, token.priceUsd);
}

Buy Tokens

Purchase tokens on Moonshot by specifying the token address, SOL amount, and optional slippage.

Buy Example
const result = await moonshot.buy({
  tokenAddress: "TokenMintAddress...",
  amount: "0.1",
  slippage: 10,
});

console.log("Tx Hash:", result.txHash);
console.log("Tokens received:", result.tokenAmount);

Sell Tokens

Sell tokens on Moonshot by specifying the token address and amount of tokens to sell.

Sell Example
const result = await moonshot.sell({
  tokenAddress: "TokenMintAddress...",
  amount: "1000000",
  slippage: 10,
});

console.log("Tx Hash:", result.txHash);
console.log("SOL received:", result.nativeAmount);

Get Trending

Trending Tokens
const trending = await moonshot.getTrending({
  category: "gainers",
  limit: 20,
});

for (const token of trending) {
  console.log(token.symbol, token.marketCap);
}

Trade History

Trade History
const trades = await moonshot.getTradeHistory("TokenMintAddress...", { limit: 50 });

for (const trade of trades) {
  console.log(trade.action, trade.tokenAmount, trade.priceUsd);
}

Supported Methods

Method Supported
launch() Yes
getTokenInfo() Yes
listTokens() Yes
buy() Yes
sell() Yes
getTrending() Yes
getTradeHistory() Yes
getHolders() No
estimatePrice() No

Platform Notes

Three-Step Launch Flow
Moonshot uses a distinct three-step process for token creation. The SDK first prepares an unsigned mint transaction via prepareMintTx, the wallet then signs it, and finally the signed transaction is submitted via submitMintTx. dex-skills abstracts this into a single launch() call.
Dexscreener Queries
Token data is sourced from Dexscreener rather than a platform-specific API. This means query results reflect aggregated market data across all trading venues for the token, not just Moonshot-specific activity.

Supported Social Links

Field Description
twitter Twitter/X profile URL
telegram Telegram group or channel URL
website Project website URL
discord Discord server invite URL