Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt

Use this file to discover all available pages before exploring further.

Presale Vault is Meteora’s presale program on Solana. It lets creators run a token presale where buyers deposit a quote token and later claim allocated base tokens after the presale completes. For concepts such as vault modes, configuration, Token 2022 support, access states, and formulas, you can read the following documentations.

Learn more about Presale Vault

Overview of Presale Vault modes, access controls, lifecycle states, and token support.

Presale Vault Formulas

Formulas and definitions for allocation, caps, refunds, fees, and vesting behavior.

Integration

Program Accounts

Account model for presales, registries, escrows, Merkle roots, operators, fixed-price params, and permissioned metadata.

Program Instructions

Instruction families for initialization, escrow creation, deposits, withdrawals, claims, creator actions, and metadata.

Program Events

Event payloads emitted by presale creation, escrow actions, deposits, claims, refunds, and creator actions.

Program Errors

Anchor custom error codes, enum names, messages, and common integration causes.

TypeScript SDK

TypeScript SDK for creating presales, escrows, deposits, claims, refunds, metadata, and state readers.

Rust Integration

Rust integration notes for the CPI feature, generated clients, and tests.

Program IDs

The presale program ID is the same on mainnet and devnet:
NetworkProgram ID
Mainnet BetapresSVxnf9UU8jMxhgSMqaRwNiT36qeBdNeTRKjTdbj
DevnetpresSVxnf9UU8jMxhgSMqaRwNiT36qeBdNeTRKjTdbj
The program authority PDA used by vault transfers is:
AuthorityAddress
Presale Authority4Xgt6XKZiowAGNdPWngVAwpYbSwAmbBnRBPtCFXhrypc

Presale Vault Program

Public Anchor program source for Presale Vault.

Presale Vault IDL

Published Anchor IDL used by generated clients and the TypeScript SDK.

TypeScript SDK

Public SDK for transactions, PDA derivation, account wrappers, math helpers, and examples.
The program does not deploy liquidity with raised capital. Creators withdraw completed presale funds and handle downstream liquidity deployment themselves.

Commands

TaskCommand
Install TypeScript SDK dependenciescd presale-sdk && pnpm install
Build TypeScript SDKcd presale-sdk && pnpm run build
Run TypeScript SDK testscd presale-sdk && pnpm test
Build presale programcd presale && anchor build
Run Rust program testscd presale && cargo test -p presale -- --nocapture

Stay Updated

Presale Vault Changelog

Program and SDK changes for integration planning.