📦 Parabol SDKInstall SDKs

Getting Started

Learn how to integrate Parabol protocol into your application.

Installation

npm install @parabolfi/core @parabolfi/server

Basic Integration

import { ParabolAccount, SupportedChainIds, ChainId } from "@parabolfi/core";
import { ParabolServer } from "@parabolfi/server";
 
// Initialize Parabol Server
const parabolServer = new ParabolServer({
  apiKey,
});
 
const chainId = SupportedChainIds.ZKSYNC as ChainId;
 
const config = await parabolServer.fetchLendParameters(chainId);
 
// Initialize your Parabol account
const account = await ParabolAccount.fromPrivateKey({
  privateKey: "private-key",
  chainId,
  config,
});
 
// Create a note position
const txHash = await account.lend({
  principal: "1000", // Amount in paraUSD
  maturity: 28, // 28-day note position
});
ℹ️

To get API key, you need to contact with [email protected].