Check portfolio
Read balances with two endpoints:POST /v1/yields/balances for many addresses, networks, and yields in one call, and POST /v1/yields/{yieldId}/balances for one address on one yield.
When to use
- Check a staking or lending balance
- Show a portfolio across networks
- Check earned rewards or claimable funds
- Monitor unstaking progress
- List past actions for an address
Authentication and host
Send the project API key in thex-api-key header.
Step 1: Aggregate balances
POST /v1/yields/balances. The body is { "queries": [ ... ] } with 1 to 25 queries. There is no top-level address.
yieldId makes the query a chain scan. It does not read every yield on the network: it reads the enabled yields the address has already used through Yield.xyz actions on that network, plus a small fixed set for networks that need one. Scan results with no balances are dropped. Duplicate yieldId and address pairs are merged, and an explicit query wins over a scan.
The response is { items, errors }. Each item is { yieldId, balances[], rewardRate? }. errors[] holds { yieldId, error } for yields that failed; a failure on one yield does not fail the call. Report errors and continue with the rest.
Step 2: Balances for one yield
POST /v1/yields/{yieldId}/balances with { "address": "0xYOUR_WALLET_ADDRESS" } and optional arguments. The network comes from the yield.
Step 3: Read the balance entries
Each entry inbalances[] has address, type, amount (human-readable), amountRaw, amountUsd, token, isEarning, pendingActions[], and optionally validator, validators, date, and share fields.
pendingActions[] lists what can be run next. Execute one with manage-position, sending its type as action and its passthrough unchanged.
Step 4: Action history
GET /v1/actions lists actions. Filters: address, yieldId, status or statuses, intent (enter, exit, manage), type, network, yieldTypes, offset, limit.
STALE actions (no progress for 30 minutes) are hidden unless one of their transactions was broadcast or you filter by status. GET /v1/actions/{actionId} returns one action.
Portfolio pattern
- Collect the user’s addresses per network.
- Send up to 25 queries per call; split larger sets.
- Sum
amountUsdwhere present, and group by network, provider, and yield type. - List
claimableandwithdrawablebalances as things to act on, andexitingbalances as in progress.
Errors
Edge cases
- Empty result: No items means no positions were found for the queries. Chain scans only find yields used through Yield.xyz; query a
yieldIdexplicitly to check others. - Address formats: An EVM address works across EVM networks, but send one query per network. Do not reuse an address across different address formats.
- Amounts:
amountis human-readable;amountRawis the smallest unit. - Partial failures: Handle
errors[]per yield.

