Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rebelfi.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Installation

npm install @rebelfi/sdk

RebelfiClient

The main SDK client class.

Constructor

import { RebelfiClient } from '@rebelfi/sdk';

const client = new RebelfiClient(config: RebelfiSDKConfig);

RebelfiSDKConfig

interface RebelfiSDKConfig {
  /** Your RebelFi API key (required) */
  apiKey: string;

  /** Set to true to use sandbox environment (sandbox-api.rebelfi.io) */
  sandbox?: boolean;

  /** Optional: Override base URL (e.g., for proxying) */
  baseUrl?: string;

  /** Request timeout in milliseconds (default: 60000) */
  timeout?: number;
}

Properties

PropertyTypeDescription
venuesVenuesAPIVenue and strategy operations
walletsWalletsAPIWallet registration and management
allocationsAllocationsAPIAllocation queries and org overview
operationsOperationsAPISupply and unwind operations
transactionsTransactionsAPITransaction submission
walletProfilesWalletProfilesAPIWallet profile listing

Example

// Production
const client = new RebelfiClient({
  apiKey: process.env.REBELFI_API_KEY
});

// Sandbox
const sandbox = new RebelfiClient({
  apiKey: process.env.REBELFI_SANDBOX_API_KEY,
  sandbox: true
});