Installation
The YieldFi SDK is available as an npm package and can be installed in your project using npm, yarn, or pnpm.
Prerequisites
Node.js: Version 18.0.0 or higher
Package Manager: npm, yarn, or pnpm
TypeScript: Recommended (SDK is written in TypeScript)
Install via npm
npm install yieldfi-sdkInstall via yarn
yarn add yieldfi-sdkInstall via pnpm
pnpm add yieldfi-sdkVerify Installation
After installation, verify that the SDK is properly installed:
import { YieldFiSDK } from "yieldfi-sdk";
console.log(YieldFiSDK.getVersion()); // "0.3.0"TypeScript Support
The SDK is written in TypeScript and includes full type definitions. No additional @types packages are required.
If you're using TypeScript, ensure your tsconfig.json includes:
Next Steps
Quick Start Guide - Get up and running in minutes
Configuration - Learn about SDK configuration options
Last updated