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.
Discover yield opportunities.
Future<YieldXyzGetYieldsResponse> discover({ YieldXyzGetYieldsRequest? request, })
request
YieldXyzGetYieldsRequest?
YieldXyzGetYieldsRequest
offset
int?
limit
network
String?
yieldId
type
YieldXyzMechanicsType?
staking
restaking
lending
vault
fixedYield
realWorldAsset
hasCooldownPeriod
bool?
hasWarmupPeriod
token
inputToken
provider
search
sort
YieldXyzGetYieldsSort?
statusEnterAsc
statusEnterDesc
statusExitAsc
statusExitDesc
YieldXyzGetYieldsResponse
items
List<YieldOpportunity?>
total
int
import 'package:portal_flutter/portal_flutter.dart'; final portal = Portal(); final response = await portal.yieldIntegrations.yieldxyz.discover( request: YieldXyzGetYieldsRequest( network: 'ethereum', token: 'USDC', type: YieldXyzMechanicsType.lending, limit: 10, ), ); for (final opportunity in response.items) { print('Yield: ${opportunity?.id}'); }
NOT_INITIALIZED
YIELD_FAILED
Was this page helpful?