Getting Started with the SDK

The simplest way to start using the vaults.fyi API is with our SDK.

See below for installation instructions and find additional detailed documentation here: SDK Reference


  1. Start by installing our SDK package:

Using npm

npm install @vaultsfyi/sdk

Using Yarn

yarn add @vaultsfyi/sdk

Using pnpm

pnpm add @vaultsfyi/sdk

Using Bun

bun add @vaultsfyi/sdk

Using jspm

jspm install @vaultsfyi/sdk
  1. Set your API key as an environment variable:

  1. Initialize the SDK:

  1. To take it for a spin, use one of the SDK functions:

    • example: getDepositOptions to get multiple relevant yield opportunities for a specific blockchain address.

    • Find more in SDK Reference

For more detailed example implementation check out our lightning tutorials (<5 mins!)

Last updated