Skip to main content
You can also create a vault without code at vaults.ranger.finance/create. See Quick Start (UI).
The current SDK flow is based on @solana/kit plus direct instruction builders.

Setup

1. Define Vault Parameters

maxCap: 0n means zero capacity, not unlimited capacity. For an uncapped vault, use the full u64 max value.
Keep the description within the on-chain limit. Oversized metadata will cause the transaction to fail.

2. Load Signers And Derive Vault Accounts

3. Build The Initialize Instruction

4. Send The Transaction

Send the returned instruction with your standard @solana/kit transaction flow. The admin signs as payer and the generated vault keypair signs as the new account. Save the resulting vault address. You will use it for:
  1. LP metadata
  2. Strategy setup
  3. Allocation
For the full account schema and helper exports, see SDK Reference.