Skip to main content
SOS-SDK provides read helpers for loading all active markets, resolving PDAs for a single Option Series, and fetching user positions or OMLP vaults. Every reader takes your @solana/kit rpc client.

Listing All Option Pools

Use fetchAllOptionPools to load every initialized OptionPool on the program:

Resolving an Option Series

When you know an Option Identity, call resolveOptionAccounts to derive its PDAs. Pass rpc to also fetch the live OptionAccount, OptionPool, and CollateralPool state along with their vault token accounts:
Without rpc, resolveOptionAccounts returns only the derived PDAs (optionAccount, longMint, shortMint, optionPool, marketData, collateralPool, mintAuthority).

Reading Positions, Vaults, and Loans

Use the list fetchers to query accounts by wallet or pool, or load single accounts directly by address:

Single-Account Fetchers

When you already have an account address, fetch it directly without a program scan: