API Reference
The YieldFi SDK provides several API modules for interacting with different YieldFi services. This section covers all available APIs.
Available APIs
Vault API
Query vault information, protocol statistics, whitelisted assets, and transaction history.
Key Features:
Protocol statistics and metrics
Vault listings and details
Whitelisted asset management
Transaction history with role-based filtering
Glassbook API
Manage partner transactions (PTX) and referrals.
Key Features:
Create and query partner transactions
Referral code management
Referral statistics and tracking
Authentication
Most APIs require authentication. See the Authentication Guide for details.
Public APIs (no authentication required):
sdk.vault.getProtocolStats()sdk.vault.getStrategies()sdk.vault.getVaults()sdk.vault.getVaultByKey()sdk.vault.getVaultBySymbol()sdk.vault.getVaultDetails()sdk.vault.getVaultFaqs()sdk.vault.getWhitelistedAssets()sdk.vault.getWhitelistedAsset()sdk.vault.checkAssetWhitelisted()
Protected APIs (authentication required):
All transaction endpoints
All Glassbook endpoints
All Forms endpoints
All Curator Handoff endpoints
Private vault access
Admin operations (whitelist management, etc.)
Common Patterns
Pagination
Many APIs support pagination:
Filtering
APIs support various filters:
Error Handling
Always handle errors:
Next Steps
Vault API - Query vaults and transactions
Glassbook API - Partner transactions and referrals
Last updated