Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get yield balances for wallet addresses.
Future<YieldXyzGetBalancesResponse> getBalances({ required List<YieldXyzGetBalancesQuery> queries, })
queries
List<YieldXyzGetBalancesQuery>
YieldXyzGetBalancesQuery
address
String
network
yieldId
String?
YieldXyzGetBalancesResponse
items
List<YieldBalance?>
errors
List<String?>?
metadata
YieldXyzGetBalancesMetadata?
error
import 'package:portal_flutter/portal_flutter.dart'; final portal = Portal(); final response = await portal.yieldIntegrations.yieldxyz.getBalances( queries: [ YieldXyzGetBalancesQuery( address: '0x1234...', network: 'ethereum', ), ], ); for (final balance in response.items) { if (balance != null) { print('Balance: ${balance.amount}'); } }
NOT_INITIALIZED
YIELD_FAILED
Was this page helpful?