Skip to main content
POST
Get balances across multiple yields and networks
The body is { "queries": [ ... ] } with 1 to 25 queries. There is no top-level address. Each query takes: When yieldId is omitted, the query is a chain scan. It does not read every yield on the network. It reads the enabled yields that the address has already used through Yield.xyz actions on that network, plus a small fixed set for networks that need one. Chain-scan results with no balances are dropped. Duplicate yieldId and address pairs are merged, and an explicit query wins over a scan. A failure on one yield does not fail the call: the response has items for the successes and errors[] (yieldId, error) for the rest.
Balance types are in Balance types, and claim or withdraw hints in Pending actions. Guide: Track balances.

Authorizations

x-api-key
string
header
required

Body

application/json

Request containing an array of balance queries. Each query contains: yieldId (optional), address (required), network (required), and arguments (optional). When yieldId is omitted, the query covers the yields enabled for your project that the address has interacted with through yield.xyz actions on that network, plus a small fixed set of yields per network; it does not scan every yield. Duplicates are deduplicated, with specific yield queries taking precedence.

queries
object[]
required

Array of balance queries (maximum 25 queries per request)

Required array length: 1 - 25 elements
Example:

Response

Returns balances grouped by yield with detailed error information for failed yields. Only yields with non-zero balances are included in the response.

items
object[]
required

Successful yield balance results

errors
object[]
required

Errors encountered while fetching balances