Skip to main content

Yield Infrastructure for Everyone

The RebelFi SDK enables platforms to generate yield on stablecoin balances. You keep full custody of funds while earning competitive returns from DeFi protocols.
import { RebelfiClient } from '@rebelfi/sdk';
import { ethers } from 'ethers';

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

// Discover yield opportunities
const { venues } = await client.venues.list({ blockchain: 'ethereum', token: 'USDC' });
const strategy = venues[0].strategies[0];

// Plan a supply operation
const operation = await client.operations.supply({
  walletAddress: userWallet,
  strategyId: strategy.strategyId,
  amount: '1000000', // 1 USDC (6 decimals)
  tokenAddress: strategy.tokenAddress
});

// Sign and submit each transaction (EVM may have approve + supply steps)
for (const tx of operation.transactions) {
  const unsignedTx = JSON.parse(Buffer.from(tx.unsignedTransaction, 'hex').toString());
  const signedTx = await wallet.signTransaction(unsignedTx);
  const txResponse = await wallet.sendTransaction(signedTx);
  const receipt = await txResponse.wait();

  await client.transactions.submitHash({
    operationId: operation.operationId,
    txHash: receipt.hash
  });
}

How It Works

1

Discover Venues

Query available yield venues and strategies with current APYs
2

Plan Operations

Request supply or unwind operations to get unsigned transactions
3

Sign

Transactions are signed via your custody solution or wallet
4

Submit & Track

Submit the signed transaction and track confirmation status

Key Benefits

Non-Custodial

You retain full custody. We generate transactions; you sign and broadcast.

Simple Integration

TypeScript SDK with full type safety. One API key, four endpoints.

Real Yields

Access institutional DeFi strategies with competitive APYs.

Instant Liquidity

Unwind positions anytime. No lock-up periods.

Get Started

Quickstart

Install the SDK and make your first supply operation

Integration Tutorial

Full walkthrough: supply, track, and unwind

API Reference

Complete endpoint documentation

GitHub

View source, report issues, contribute
Supporting Solana, Ethereum, and Polygon. USDC, USDT, and other stablecoins supported.

Looking for Platform Documentation?

For deeper dives into platform capabilities, architecture, and advanced use cases, see the Guides section:

Platform Overview

Full platform documentation for all use cases

Why RebelFi

The business case for yield infrastructure