Skip to main content
This guide shows how to install and initialize the official Presale Vault TypeScript SDK, @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:

Dependencies

Create A Client

Create a client from an existing presale address:
The client caches the presale account, mint accounts, and Token 2022 transfer-hook remaining-account metadata. Call refetchState() before building transactions when your UI may be using stale state.

Program IDs

Build A Transaction

By default, the SDK estimates compute units and prepends a compute-budget instruction. Disable this behavior if your integration manages compute budget instructions itself:

SDK Examples

Presale Vault Examples

Example scripts for initialization, deposits, claims, refunds, and creator actions.

Testing The SDK

If you have cloned the SDK repository, start with package-level checks and tests: