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

Vault Initialization

Config Management

Escrow Creation

User Token Actions

Fill Instructions

Fill instructions can run during the connected pool’s pre-activation buy window. They swap from the vault quote token account into the vault base token account. Each fill validates the expected PoolType, caps the amount by remaining swappable quote, updates swapped_amount and bought_token, emits SwapFill, and charges the crank fee unless a valid CrankFeeWhitelist is supplied.

Merkle Proof Metadata

Crank Fee Whitelist

Validation