Skip to main content
Query native SOL staking for a Swig config owned by your API key’s organization. Every route below requires 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, positive principalLamports, and horizonDays from 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 pageSize and pageToken: 50 entries by default, at most 200. Continue with nextPageToken; tokens remain scoped to the original organization, network, and Swig.
  • Positions sort by address; rewards sort oldest first by credit time. Position reads expose lastUpdatedAt so you can identify the age of indexed data.
  • totalPositionLamports already 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 withdrawalLamports when displaying what a prepared withdrawal will return.

Quota

Each admitted call or page consumes one API request, including retries and admitted errors. Yield reads share the API-request allowance with wallet reads and other metered operations; they do not use DEX queries. See pricing and quotas.

Reference and SDK examples