This quickstart walks you through the end-to-end Yield.xyz integration loop:Documentation Index
Fetch the complete documentation index at: https://yieldxyz.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Get an API key
- Enable yields for your project
- Discover an opportunity
- Request an action (enter/exit/manage)
- Sign + submit the ordered transactions in your stack
- Track balances and follow-up actions
Prerequisites
- A Yield.xyz dashboard account and a project/environment
- A signing + broadcast path (EOA wallet, smart account, MPC, or institutional custody)
- A way to store secrets securely (API key, environment config)
End-to-end flow
Get access + create an API key
Create an API key for your environment in the dashboard.
- Use a separate key per environment (sandbox/staging/production).
- Treat API keys as secrets (never ship them to frontend clients).
Enable yields for your project
Yield availability is project-scoped. In the dashboard, enable the yield categories and individual opportunities you want to expose (staking, lending, vaults, etc.). Once saved, enabled yields become available via your API key.Learn more about Projects & environments.
Discover opportunities
Use the discovery endpoint to list yields and filter by network, input token, provider, or yield type. This powers your “yield feed” and selection UX.See Discover opportunities for filtering patterns.
Inspect a specific yield (schema-first)
Fetch yield metadata for the chosen
yieldId to understand:- Supported intents (
enter/exit/manage) - Required arguments and their schemas
- Mechanics (validator selection, cooldown/withdraw windows, etc.)
Request an action (enter/exit/manage)
Call the appropriate Actions endpoint with:
yieldIdaddress(the user/wallet address)arguments(schema-compliant)
Sign + submit the returned transactions
Execute transactions in the order returned. Each step includes an
unsignedTransaction payload you can route to:- EOA signing (ethers / web3)
- Smart accounts
- MPC / institutional custody (e.g., Fireblocks)
For higher assurance, validate unsigned payloads with Shield before presenting them for signing.
Track balances and pending actions
After confirmation, fetch balances to power portfolio UX and operational reporting. Balances are lifecycle-aware (active, exiting, claimable, etc.) and may include
pendingActions (claim, restake, redelegate, withdraw).See Balances & positions for lifecycle states.Minimal API walkthrough (with examples)
- Native staking (validator-based)
- ERC-4626 vault (multi-step)
This example shows a typical validator flow with schema-driven arguments and an ordered transaction sequence.Step 1: Get yield metadataStep 2: Request enter actionThe response includes an ordered list of transactions:
- Step 0: approval (if required)
- Step 1: stake / delegate
Signing & submission patterns
- Wallet / EOA signing
- Institutional custody (e.g., Fireblocks)
Use your standard chain SDK (e.g., ethers, web3, cosmjs, solana/web3.js) to sign and broadcast the returned
unsignedTransaction object.The API returns transactions that are already constructed — you should not re-encode calldata client-side.
Example with ethers.js
Tracking lifecycle + follow-up actions
Balances are lifecycle-aware and may include pending actions (e.g., claim, restake, redelegate, withdraw). Use balances to:- Show active vs exiting vs claimable states
- Drive UX buttons (“Claim”, “Withdraw”, “Redelegate”)
- Call
managewith the providedpassthrough(when applicable)
If you need “manage” actions (claim/restake/redelegate), always start from balances — the response may include a required
passthrough blob and an argument schema for the follow-up.Example: handling pending actions
Production readiness checklist
Before going live, ensure you have addressed:Environment separation
Environment separation
Use separate API keys for sandbox, staging, and production environments. Never share keys across environments.
Rate limit handling
Rate limit handling
Implement exponential backoff for 429 responses. See Rate limits for tier-specific limits.
Transaction ordering
Transaction ordering
Enforce transaction ordering in your signing flow. Multi-step actions must be executed sequentially.
Observability
Observability
Log request IDs, action IDs, transaction hashes, and timestamps for debugging and audit trails.
Shield validation
Shield validation
Enable Shield validation for institutional flows to verify unsigned payloads before signing.
Incident runbooks
Incident runbooks
Prepare internal runbooks for incident response, protocol disablement, and error handling.
Integration complexity & timeline
Yield.xyz is designed for rapid integration with minimal engineering overhead.| Integration Type | Effort Level | Estimated Timeline | Notes |
|---|---|---|---|
| Widget (no-code) | Low | 1–2 days | Embed the Yield.xyz Widget. Handles all yield flows and signing automatically. |
| API Integration (EVM networks) | Medium | 3–7 days | Straightforward setup using /yields, /actions, and /balances. Works seamlessly with most wallet SDKs and custody solutions. |
| API Integration (non-EVM networks) | Medium–High | 7–14 days | Requires additional setup for signing flows (e.g., Solana, Cosmos, Tron). |
Most partners go live within one week for EVM-based integrations, extending slightly for multi-network coverage.
Where to go next
Core Concepts
Understand Actions, Balances, and Fees
API Reference
Explore endpoint specs and schemas
Coverage
Browse supported networks and yields
Shield & Security
Learn about transaction validation
Integration Patterns
See detailed flow guides
Recipes
Copy-paste code examples
Need help?
- Email: hello@yield.xyz
- Partner support: use your dedicated Slack/Telegram channel (if provisioned)

