Function Signature
Description
Retrieve current balances across different yield positions for one or more wallet addresses.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
queries | List<YieldXyzGetBalancesQuery> | Yes | List of balance queries |
YieldXyzGetBalancesQuery fields:
| Field | Type | Description |
|---|---|---|
address | String | Wallet address to check |
network | String | Blockchain network |
yieldId | String? | Optional specific yield opportunity ID |
Returns
YieldXyzGetBalancesResponse - An object containing:
| Property | Type | Description |
|---|---|---|
items | List<YieldBalance?> | List of yield balances by yield opportunity |
errors | List<String?>? | Any errors encountered during balance queries |
metadata | YieldXyzGetBalancesMetadata? | Response metadata |
error | String? | Top-level error message, if any |
Example
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
YIELD_FAILED | Failed to get yield balances |