> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Read vault state and valuation

> Load accounts, read fee-aware valuation, and resolve refresh inputs.

`ExponentVault` exposes a loaded state snapshot, account readers, and valuation helpers. Import it from `@exponent-labs/exponent-sdk`. These reads do not commit an onchain AUM refresh.

## Load and reload

| Method | Parameters and result |
| - | - |
| `ExponentVault.load({ connection, address, env?, programId? })` | `Promise<ExponentVault>`; loads state and linked strategy caches. Environment defaults to SDK `LOCAL_ENV`; an explicit `programId` overrides the environment's vault program. |
| `ExponentVault.loadAll({ connection, env? })` | `Promise<ExponentVault[]>`. Same environment default. |
| `vault.reload(connection?)` | `Promise<ExponentVault>`; refreshes the original instance and returns a loaded instance. Connection defaults to the current connection. |
| `fetchWithdrawalAccount(address)` | Request owner, vault, requested/remaining LP, ordered fills, and timestamps. See the [withdrawal schema](https://docs.exponent.finance/developer-strategy-vaults/account-references/withdrawal-account.md). |
| `fetchAllActionProposals()` | Array of `{ address, data }`; `data` uses the generated proposal representation. |

```typescript theme={null}
import { ExponentVault } from "@exponent-labs/exponent-sdk";

const vault = await ExponentVault.load({ connection, address: vaultAddress });
const storedAum = vault.getTotalAum();
const mintedLp = await vault.fetchLpTokenSupply();
await vault.reload();
```

Reload after confirmed mutations before building another operation from state. Keep atomic token and LP amounts as `bigint`.

## Read valuation

| Method | Result and important defaults |
| - | - |
| `getTotalAum()` | Stored reserve AUM + position AUM, as underlying-mint atomic `bigint`. |
| `fetchLpTokenSupply()` | Actual minted LP supply, as atomic `bigint`; excludes unminted management fees. |
| `getLpPrice()` | `Promise<number>` in human underlying units per human LP. Fetches current vault/mint state and Clock, includes pending/projected management-fee dilution, uses stored AUM. |
| `fetchTotalAumInfo(prices, jitoBundleRpc?, options?)` | `{ aum, aumHuman, lpRate, lpSupply, effectiveLpSupply, pendingManagementFeeLp, lastManagementFeeAccruedAt, managementFeeBps, lpDecimals, underlyingDecimals }`. `aum`, supplies, pending fee LP, timestamp, and fee rate are bigint; `aumHuman`, `lpRate`, and decimals are numbers. |
| `getTotalAumViaJitoBundle(prices, jitoBundleRpc?, options?)` | Simulated refreshed AUM as atomic `bigint`. Endpoint defaults to the RPC endpoint. No transaction submission. |
| `aumCalculator.calculatePositionsAum(prices, options?)` | Offchain `AumResult[]`; each `aum` is underlying-mint atomic `bigint`. |

The two bundle-valuation methods accept `{ allowSimulationFallback?, valuationClock? }`. By default, simulation errors fall back to **stored AUM** with a warning. Set `allowSimulationFallback: false` when a successful simulated valuation is required. A valuation result does not refresh the vault account.

Instant-withdrawal capacity and quote contracts are documented with [deposits and withdrawals](https://docs.exponent.finance/developer-strategy-vaults/typescript/vault-operations/overview.md#instant-withdrawals).

## Prepare refresh inputs

| Method | Result |
| - | - |
| `buildStrategyVaultPriceRefreshPlan(prices, { priceIds? }?)` | `{ instructions, lookupTableAddresses }`; prerequisites precede registered price updates. Defaults to all tracked price IDs. Includes child-vault refreshes and lookup tables for vault-LP sources. |
| `ixsRefreshStrategyVaultPrices(prices, options?)` | The same plan's instruction array only. |
| `getKaminoRefreshIxs(vault)` | Public async helper for tracked lending reserve and obligation refreshes. |
| `getAumRemainingAccountMetas(extra = [])` | Loaded-state valuation metas, with caller positional extras first. Synchronous. |
| `getExtraAumRemainingAccountMetas()` | Fetch-derived valuation accounts for linked Order Book and Orca state. |
| `getResolvedAumRemainingAccountMetas(extra = [])` | Full derivable valuation metas, including fetch-derived accounts. Resolves addresses; does not update their contents. |
| `ixRefreshAum({ remainingAccounts?, exponentPrices? } = {})` | `TransactionInstruction`; appends loaded-state valuation accounts. Price account defaults to the shared PDA. Permissionless. |
| `ixUpdatePrice({ priceId, priceInterfaceAccounts?, pythPriceFeedId?, remainingAccounts?, remainingAccountMetas?, isPriceInterfaceWritable? })` | Registered price update instruction; `priceId` is numeric. Interface defaults to read-only; ScaledUi sources require writable. `remainingAccountMetas` preserves privileges and cannot accompany nonempty `remainingAccounts` or `pythPriceFeedId`. |
| `ixUpdatePrices({ updates })` | One instruction for registered price updates. Prefer the planner for dependencies. |

```typescript theme={null}
import { getKaminoRefreshIxs } from "@exponent-labs/exponent-sdk";

const prices = await vault.fetcher.fetchExponentPrices();
const pricePlan = await vault.buildStrategyVaultPriceRefreshPlan(prices);
const protocolRefreshes = await getKaminoRefreshIxs(vault);
const refreshAum = vault.ixRefreshAum({
  remainingAccounts: await vault.getResolvedAumRemainingAccountMetas(),
});
// Order: protocolRefreshes, pricePlan.instructions, refreshAum.
// Retain pricePlan.lookupTableAddresses when compiling messages.
```

Price updates must share the slot of the accounting calculation that uses them. Preserve protocol refresh ordering. See [Refresh AUM](https://docs.exponent.finance/developer-strategy-vaults/refresh-aum.md) for transaction packing and bundles.

`buildVaultRefreshTransactions` packs ordered refresh instructions into unsigned v0 transactions using supplied tables and compute settings. `assertVaultBundleFits` checks the five-transaction Jito bundle limit; neither submits a bundle.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.