@meteora-ag/presale-sdk.
Before you begin, here are the main resources:
TypeScript SDK
Presale Vault TypeScript SDK Repository
Presale Vault NPM Package
Published package for transaction builders, PDAs, wrappers, and helpers.
Install
To use the SDK in your project, install it using your preferred package manager:- npm
- pnpm
- yarn
Dependencies
| Package | Version |
|---|---|
@coral-xyz/anchor | ^0.31.1 |
@solana/web3.js | ^1.98.2 |
@solana/spl-token | ^0.4.13 |
bn.js | ^5.2.2 |
decimal.js | ^10.6.0 |
Create A Client
Create a client from an existing presale address:refetchState() before building transactions when your UI may be using stale state.
Program IDs
| Constant | Value |
|---|---|
PRESALE_PROGRAM_ID | presSVxnf9UU8jMxhgSMqaRwNiT36qeBdNeTRKjTdbj |
MEMO_PROGRAM_ID | MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr |
METAPLEX_PROGRAM_ID | metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s |
Build A Transaction
SDK Examples
Presale Vault Examples
Example scripts for initialization, deposits, claims, refunds, and creator actions.

