Skip to main content
The presale IDL exposes the instructions below. Integrators should use the TypeScript SDK for transaction construction or build through CPI.

Presale Initialization

initialize_presale Inputs

Mode-specific Initialization

Whitelist And Escrow Setup

Permissioned Merkle Leaf

The program verifies a leaf derived from: The Merkle proof uses a leaf prefix and sorted pair hashing in the on-chain verifier.

Buyer Flows

Creator Flows

Lifecycle Conditions

Account Lists

Use generated clients for exact account ordering. The main business accounts for each instruction are:

Token 2022 Remaining Accounts

Transfer-hook mints require extra account metas. The program consumes them through RemainingAccountsInfo.slices. The SDK fetches transfer-hook extra account metas and passes the correct slices value for supported flows. Manual clients must ensure the slice length matches the remaining accounts that follow the instruction account list.