Skip to main content

Documentation Index

Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt

Use this file to discover all available pages before exploring further.

createInitializePricesInstruction

Initializes the global ExponentPrices PDA and registers the caller as the first price manager. This is a one-time setup instruction that creates the on-chain account used to store price data for vault token valuations. After initialization, additional price managers can be added via the manage prices instruction.

Usage

import { createInitializePricesInstruction } from "@exponent-labs/exponent-sdk/client/vaults";
import { PublicKey, SystemProgram } from "@solana/web3.js";

const ix = createInitializePricesInstruction({
  manager: managerKeypair.publicKey,
  exponentPrices: exponentPricesPda,
  systemProgram: SystemProgram.programId,
});

Accounts

NameSignerWritableDescription
managerYesYesInitial price manager (pays rent, registered as first manager)
exponentPricesNoYesExponentPrices PDA to initialize
systemProgramNoNoSystem program

Args

This instruction takes no arguments.

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.