network=NETWORK_MAINNET or network=NETWORK_DEVNET.
What you can query
All routes start with/api/yield/{swig_config_address}.
Filters and freshness
- Estimates take
validatorVoteAddress, positiveprincipalLamports, andhorizonDaysfrom 1 to 365. The rate is an estimate, not a guaranteed return. - A validator’s rate may be absent when current network data cannot produce it.
- Positions and rewards accept
pageSizeandpageToken: 50 entries by default, at most 200. Continue withnextPageToken; tokens remain scoped to the original organization, network, and Swig. - Positions sort by address; rewards sort oldest first by credit time. Position
reads expose
lastUpdatedAtso you can identify the age of indexed data. totalPositionLamportsalready includes compounded rewards. Do not add the recorded reward total to it when calculating the current position value.- Indexed withdrawable amounts can include rent. The separate withdrawal
preparation currently keeps the rent reserve; use its
withdrawalLamportswhen displaying what a prepared withdrawal will return.

