mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-19 16:22:25 +01:00
Earn API
Yield XYZ API
- OpenAPI spec is fetched by
scripts/fetchSpec.mjs - Orval generates types and methods to
src/api - A Trezor proxy service is deployed at
YIELD_XYZ_BASE_URL(config/index.ts). So no need to manually provide API key.
Yield opportunities
useGetYieldOpportunities: Fetch all enabled Yield XYZ opportunities.
Enter a yield opportunity
- Let Yield XYZ to generate transaction payloads:
useEnterYieldOpportunity - Sign TX: handled without Yield XYZ
- Broadcast TX: handle without Yield XYZ
- Submit TX hash:
useSubmitTxHash