FAQ
2
3
Last updated
The YieldFi SDK is a TypeScript/JavaScript library for interacting with YieldFi services, smart contracts, and blockchain protocols.
Node.js 18.0.0 or higher is required.
No, but TypeScript is recommended for the best developer experience. The SDK is written in TypeScript and provides full type definitions.
Users authenticate using EVM wallet signatures. See the Wallet Authentication Guide.
The SDK does not store tokens internally. You must manage token storage in your application (localStorage, sessionStorage, HTTP-only cookies, etc.).
Use the refresh() method with a refresh token. See Token Management.
When an access token expires, use the refresh token to get a new one. If the refresh token is also expired, the user needs to login again.
Most transaction endpoints, Glassbook, Forms, and Curator Handoff APIs require authentication. Most vault query endpoints are public. See API Reference Overview.
Regular users automatically see only their own transactions. Admins, moderators, managers, and LPs can see all transactions. See Vault API - Transactions.
Most list endpoints support pagination with page and pageSize parameters. See individual API documentation for details.
Contract ABIs are not included in the SDK. You can get them from:
Official YieldFi documentation
Block explorers (Etherscan, Arbiscan, etc.)
Contract source code repositories
The SDK provides TypeScript types for contract interactions, but you'll need ethers.js (or another compatible library) for actual contract calls.
📖 Documentation
Open an issue on GitHub with:
SDK version
Node.js version
Steps to reproduce
Error messages
Code example (if applicable)
Last updated