Moonshot IDL

moonshotv0.1.0Token Launchpad
Program Address
MoonCVVNZFSYkqNXP6bxHLPL6QQJiMagDL3qcqUQTrG
On-chain

Moonshot is DEX Screener's token launchpad on Solana. Enables fair token launches via bonding curves with configurable curve types, buy/sell trading with slippage BPS protection, and automated DEX migration at market cap thresholds.

6
Instructions
2
Accounts
2
Events
3
Types

Instructions

tokenMintbuysellmigrateFundsconfigInitconfigUpdate

Account Types

ConfigAccountCurveAccount

Events

TradeEventMigrationEvent

Integration Examples

Use the Moonshot IDL in your application with these code examples for TypeScript, Rust, and Python.

import { Connection, PublicKey } from "@solana/web3.js";
import { Program, AnchorProvider, Idl } from "@coral-xyz/anchor";

// Load the Moonshot IDL
import idl from "./moonshot.json";

const PROGRAM_ID = new PublicKey("MoonCVVNZFSYkqNXP6bxHLPL6QQJiMagDL3qcqUQTrG");

// Set up the provider and program
const connection = new Connection("https://api.mainnet-beta.solana.com");
const provider = new AnchorProvider(connection, wallet, {
  commitment: "confirmed",
});
const program = new Program(idl as Idl, provider);

// Fetch and decode an account
const accountData = await program.account.moonshot
  .fetch(accountPublicKey);
console.log("Account data:", accountData);

// Build and send an instruction
const tx = await program.methods
  .initialize(/* ...args */)
  .accounts({
    /* ...required accounts */
  })
  .rpc();
console.log("Transaction signature:", tx);

IDL JSON Preview

moonshot.json
{
  "version": "0.1.0",
  "name": "token_launchpad",
  "instructions": [
    {
      "name": "tokenMint",
      "accounts": [
        {
          "name": "sender",
          "isMut": true,
          "isSigner": true
        },
        {
          "name": "backendAuthority",
          "isMut": false,
          "isSigner": true
        },
        {
          "name": "curveAccount",
          "isMut": true,
          "isSigner": false
        },
        {
          "name": "mint",
          "isMut": true,
          "isSigner": true
        },
        {
          "name": "mintMetadata",
          "isMut": true,
...

Frequently Asked Questions

What is the Moonshot IDL?

The Moonshot IDL (Interface Definition Language) is a JSON schema that defines the on-chain program interface for the Moonshot smart contract on Solana. It describes all available instructions, account structures, events, and custom types that developers need to interact with the Moonshot program. This IDL contains 6 instructions, 2 account types, 2 events, and 3 type definitions.

How do I use the Moonshot IDL in my project?

Download the JSON file and import it in your project. With TypeScript, use the @coral-xyz/anchor package to create a Program instance. In Rust, use anchor-client. For Python, use anchorpy. See the integration examples above for complete code snippets in all three languages.

What is the Moonshot program address on Solana?

The Moonshot program is deployed at address MoonCVVNZFSYkqNXP6bxHLPL6QQJiMagDL3qcqUQTrG on Solana mainnet. You can verify this on any Solana block explorer.

What version of the Moonshot IDL is this?

This is version 0.1.0 of the Moonshot IDL. IDL versions correspond to specific program deployments and may be updated as the protocol evolves. Always verify compatibility with the on-chain program version before integrating.