Skip to main content

Get yield info

Read one yield’s metadata, mechanics, and status before showing it to a user or building an action.

When to use

  • Details about a specific yield (for example, “Tell me about Lido ETH staking”)
  • Current APY or APR, and where the rate comes from
  • Validators available for a staking yield
  • The arguments needed to enter, exit, or manage a yield
  • Cooldown or warmup periods, entry limits, or KYC requirements
  • Reward-rate or TVL history

Authentication and host

Send the project API key in the x-api-key header.

Step 1: Get the yield

GET /v1/yields/{yieldId}
The yield must be enabled for the project. A yield that is not enabled or does not exist returns 400. Use find-yields to see the IDs the project can call. Key fields: Read reward and incentive tokens from rewardRate.components[].token. Do not look for a rewardTokens field.

Step 2: Get validators (validator yields only)

GET /v1/yields/{yieldId}/validators
Each validator has address, name, commission, votingPower, status, preferred, and a rewardRate. Pass the chosen address as validatorAddress in the enter action.

Step 3: Optional lookups

  • GET /v1/providers/{providerId} for provider details.
  • GET /v1/yields/{yieldId}/risk for provider risk ratings.
  • GET /v1/yields/{yieldId}/reward-rate/history and GET /v1/yields/{yieldId}/tvl/history for history. Both take period (1d, 7d, 30d, 90d, 1y, all), interval (day, week, month), from, to, offset, and limit.
  • GET /v1/yields/{yieldId}/campaigns for incentive campaigns.
  • GET /v1/yields/{yieldId}/kyc/status?address=... for KYC. kycStatus is one of not_required, not_started, pending, approved, rejected. authorizeUrl is optional and present only when the issuer provides one, typically for not_started or rejected.

Presenting a yield

  1. Name and type
  2. Current rate with rateType, and the top components
  3. Token and network
  4. Whether deposits and exits are open
  5. Cooldown or warmup, if any
  6. Validators, for validator yields

Errors

Edge cases

  • No validators: Lending and vault yields have none. requiresValidatorSelection says whether a validator is needed.
  • Maintenance or deprecation: Check metadata.underMaintenance and metadata.deprecated before recommending a yield.
  • Rates move: Present rates as current.