For the complete documentation index, see llms.txt. This page is also available as Markdown.

Vault Actions

Query vault data across EVM and Solana chains. All vault getters are available on the main AugustSDK class.

Overview

The August SDK provides comprehensive vault querying capabilities across all supported chains. Vaults follow the ERC4626 standard and include additional features for loan management, allocations, and user positions.

For detailed vault SDK functions, please refer to the SDK reference page

Vault Versions

Version
Description
Chains

evm-0

Legacy vaults

Ethereum, Arbitrum

evm-1

Standard vaults

All EVM chains

evm-2

Multi-asset vaults

Ethereum, Base

sol-0

Solana vaults

Solana Mainnet

Get All Vaults

Fetch all vaults across configured networks with optional enrichment.

import AugustSDK from '@augustdigital/sdk'

const sdk = new AugustSDK({ appName: 'your-app-name' })

sdk.getVaults(options?: {
  chainIds?: number[];
  loans?: boolean;
  allocations?: boolean;
  wallet?: string;
  solanaWallet?: string;
}): Promise<IVault[]>

Parameters

Parameter
Type
Required
Description

options.chainIds

number[]

No

Filter by specific chain IDs

options.loans

boolean

No

Include loan data (default: true)

options.allocations

boolean

No

Include allocation data (default: true)

options.wallet

string

No

EVM wallet to fetch positions for

options.solanaWallet

string

No

Solana wallet to fetch positions for

Returns

Array of IVault objects

Get Single Vault

Fetch detailed data for a specific vault with optional enrichment.

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address or program ID

chainId

number

No

Chain ID (uses active network if not provided)

options.loans

boolean

No

Include loan data (default: true)

options.allocations

boolean

No

Include allocation data (default: true)

options.wallet

string

No

EVM wallet for position data

options.solanaWallet

string

No

Solana wallet for position data

Returns

Single IVault object

Get Vault Loans

Fetch active loan data for a vault (EVM-0 vaults only).

Returns

Array of loan objects with borrower, principal, interest, and APR data.

Get Vault Allocations

This is the data behind the "Vault Exposure" section on the Upshift app. One call returns exactly what the Upshift UI renders — read exposurePerCategory for the pre-bucketed view (supplying / borrowing / wallet / lending legs plus per-category USD totals). It lives on the root sdk and requires an RPC provider for the vault's chain. See the Transparency Dashboard section for the per-card methods.

No API key needed for vaults whose borrowers are linked sub-accounts: the backend serves those CeFi/OTC reads anonymously. Legacy evm-0 vaults take their borrowers from on-chain loans, so those legs may still need a key.

Fetch DeFi, CeFi, and OTC allocation breakdowns for a vault.

Returns

Object containing defi, cefi, otc, and tokens arrays.

Transparency Dashboard

Every tab and card of the Upshift per-vault Transparency page is available as an individual read method on sdk.apiModule, so you can compose exactly the subset you want — e.g. the Performance tab without the collateral-ratio card. All methods:

  • are public (no API key), one HTTPS request each, zero RPC from the SDK — no providers config needed;

  • are snapshot-backed (positions/oracle refresh hourly; cache ≥ 60 s on your side);

  • throw AugustValidationError on a bad address / chain id / date / limit before any request is made; non-2xx API responses surface as AugustServerError (AugustRateLimitError on 429, AugustTimeoutError on timeout);

  • the chainId-taking methods are EVM-only (Solana/Stellar vaults have no transparency data). getVaultBackingSeries / getVaultSmoothedApy are keyed by vault address alone;

  • date windows (startDate / endDate) are YYYY-MM-DD and both inclusive.

Minimal construction — no RPC provider and no API key are needed for anything in this section:

Dashboard surface
Method
Returns

Overview → strategy breakdown, backing composition, vault buffer, wallets, headline TVL

getVaultPositionSnapshot({ vault, chainId })

ITransparencyPositions

Overview → APY last 30 days · Performance → APY Over Time

getVaultSmoothedApy({ vault, daysAgo?, averagingPeriodDays?, applySmoothing? })

ITransparencyApySeries

Performance → Backing vs Supply · Collateral Ratio · sidebar 7d deltas

getVaultBackingSeries({ vault, startDate?, endDate?, limit? })

ITransparencyRatioPoint[]

Performance → Allocation Over Time

getVaultHistoricalAllocations({ vault, chainId, startDate?, endDate? })

ITransparencyHistoricalAllocations

Performance → fees card

getVaultFeeConfig({ vault, chainId })

ITransparencyFees

Performance → share price / TVL history

sdk.getVaultHistoricalTimeseries(...) (root sdk, existing)

—

NAV Oracle tab

getVaultOracleClassification(vault, chainId) (existing; positional args)

IOracleClassification

Governance → Vault Roles

getVaultGovernanceRoles({ vault, chainId })

ITransparencyGovernanceRoles

Governance → Vault Permissions

getVaultGovernancePermissions({ vault, chainId })

ITransparencyGovernancePermissions

Governance → Pending Timelocks

getVaultGovernanceTimelocks({ vault, chainId, status? })

ITransparencyTimelocks

Governance → Audit Log

getVaultGovernanceAuditLog({ vault, chainId, category?, before?, limit? })

ITransparencyAuditLog

Vault Exposure section (main pool page)

sdk.getVaultAllocations({ vault, chainId }) (root sdk; needs RPC — see above)

IVaultAllocations

Reproducing the Overview headline numbers

Notes:

  • Borrow legs are negative. In ITransparencyTokenExposure, role: 'borrow' rows carry negative usd_value and balance; a protocol group's total_usd is already the net.

  • Pricing follows the published methodology. Hard-pegged stables price at their peg (the same overrides the NAV Oracle tab lists), so total_usd values match the dashboard exactly rather than raw market prices.

  • getVaultBackingSeries returns newest-first, hourly points — sort ascending before charting; adjusted_redeem_ratio * 100 is the collateral-ratio percent.

  • getVaultSmoothedApy is the ONLY way to match the app's APY charts: the backend applies a rolling-median/mean smoothing filter server-side; recomputing APY locally from share ratios will not match. values are decimal fractions (0.0245 = 2.45%), labels are M/D/YYYY.

  • Audit-log pagination: pass before = the last returned entry's timestamp verbatim while has_more is true (exclusive cursor). Audit and timelock timestamps are naive-UTC (no Z); snapshot_at carries one.

  • Units: pct_of_nav / pct_of_subaccount / pct_of_tvl are fractions (0.25 = 25%); the fee *_pct fields are already percents (2 = 2%).

  • Pending Timelocks is often empty — the default filter is scheduled; pass status: 'all' to show history (the Audit Log covers the same events).

  • Governance warnings: Safe / Fordefi enrichment failures degrade rows and append a warning code rather than failing the call — check the array if a role looks incomplete. Codes seen in the wild: safe_api_unavailable, fordefi_api_unavailable, fordefi_partial_coverage (expected — AA subaccounts are never Fordefi keys), timelock_duration_unavailable.

Example — a Performance tab without the collateral-ratio card

Get Vault Annualized APY

Fetch annualized APY metrics for specific vaults.

Supported Vaults: cUSDO, tETH, wstETH, rsETH

Deprecation Notice: The hgETH30dLiquidAPY and hgETH7dLiquidAPY response fields are deprecated and will be removed on 2026-01-01. Use liquidAPY30Day and liquidAPY7Day instead.

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address

Returns

IVaultAnnualizedApy object with liquidity APY and annualized metrics.

Get Vault Historical Timeseries

Fetch comprehensive historical timeseries data for a vault including TVL, APY, PnL, share price, and other metrics.

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address

nDays

number

No

Number of days of historical data (default: 30, min: 1)

Returns

Historical timeseries data object with date string keys containing TVL, APY, PnL, and share price.

Get Vault TVL

Fetch current or historical total value locked (TVL) for a vault.

Returns

Array of TVL data points with timestamps.

Get Vault Positions

Fetch user positions across one or all vaults.

Parameters

Parameter
Type
Required
Description

vault

string

No

Specific vault address (omit for all vaults)

wallet

string

No

EVM wallet address

solanaWallet

string

No

Solana wallet address

stellarWallet

string

No

Stellar wallet address (G…)

chainId

number

No

Filter by specific chain

showAllVaults

boolean

No

Include vaults with no position (default: false)

Returns

Array of vault position objects.

Get Available Redemptions

Fetch claimable redemption requests for a vault and wallet.

Returns

Object with availableRedemptions (ready to claim) and pendingRedemptions (waiting for lag period).

Get Vault Withdrawals

Fetch withdrawal summary and pending withdrawal queue for a vault.

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address

chainId

number

No

Chain ID (uses active network if not provided)

Returns

IVaultWithdrawals object containing total withdrawals and pending queue.

Get Vault PnL

Fetch vault-level profit and loss (not user-specific).

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address

chainId

number

No

Chain ID (uses active network if not provided)

Returns

IVaultPnl object with total PnL in native token and USD.

Get User Lifetime PnL

Calculate lifetime profit and loss for a user in a specific vault.

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address

wallet

string

Yes

User wallet address

chainId

number

No

Chain ID (uses active network if not provided)

Returns

IVaultUserLifetimePnl object with realized and unrealized PnL.

Get Yield Last Realized

Get the timestamp when yield was last realized for a vault.

Parameters

Parameter
Type
Required
Description

vault

string

Yes

Vault contract address

chainId

number

No

Chain ID (uses active network if not provided)

Returns

Unix timestamp (in seconds) when yield was last realized.

Get Borrower Health Factor

No API key needed for borrowers whose sub-account is linked to the vault.

Get the borrower's health factor by vault.

Parameters

Parameter
Type
Required
Description

chainId

number

No

Filter by specific chain ID

Returns

Object mapping vault addresses to their borrower health factors.

IVault Interface

All vault getter methods return the IVault interface:

Key Fields

depositAssets - Array of all supported deposit tokens including:

  • Underlying asset (always first)

  • Adapter tokens (if available)

  • Whitelisted assets (for multi-asset vaults)

version - Determines which deposit/withdrawal functions to use:

  • evm-0, evm-1: 2-param deposit

  • evm-2: 3-param deposit with asset selection

position - User-specific data (when wallet provided):

  • Wallet balance

  • Available redemptions

  • Pending redemptions

  • Redeemable amount

Get User History

Returns user transaction history (deposits, withdrawals, etc.).

Get User Transfers

Returns vault share transfer history for a user.

Get Staking Positions

Returns active reward staking positions.

Examples

Complete Vault Query

Filter Vaults by Criteria

Check Deposit Options

Error Handling

Last updated