Skip to main content
Short, self-contained requests for tasks that come up often enough to skip re-deriving them. Each one assumes an enabled yield and a valid x-api-key; see Discover yields and Enter and exit flows for the full walkthroughs these are pulled from.

List USDC yields across networks

Filter GET /v1/yields by inputTokens and a comma-separated networks list, then page through with offset until you’ve collected total items.
Result: every USDC yield enabled for your project across the requested networks, in one array.

Portfolio across networks in one call

Send one query per network in a single POST /v1/yields/balances call instead of one request per network.
cURL
Result: { items, errors }, with items covering both networks’ non-empty balances in one response.

Claim every claimable reward

Fetch the portfolio, then run every CLAIM_REWARDS pending action it offers through POST /v1/actions/manage.
Result: one new manage action per claimable reward found; sign, submit, and poll each the same way as any other action. If a pending action carries its own arguments schema, fill it before calling manage.

Exit a full position with useMaxAmount

Some yields’ exit schema offers useMaxAmount so you redeem the whole position without computing an exact amount. Check mechanics.arguments.exit.fields before relying on it: not every yield exposes it.
Result: an exit action sized to the full position, without a separate balance read to compute the amount first.

Estimate gas before entering

POST /v1/actions/enter/simulate takes the same body as POST /v1/actions/enter and returns a gas estimate without creating or persisting an action.
cURL
Result: gas.amount and gas.token for the aggregate cost, plus a per-transaction breakdown in gas.transactions[]. A 200 here does not guarantee the real action succeeds on-chain.

Next steps

Enter and exit flows

The full sign, submit, and poll loop these recipes call into.

Tracking balances

Read and group balances beyond a single claim or exit call.