Time to read: 1 min
Developer Recipes
Here you will find hands-on code examples ("recipes") to help you integrate Rootstock's core features into your dApps, wallets, and services.
The Yield Engines
Use these recipes to integrate the Bitcoin and USDRIF vaults directly into your application.
USDRIF
Integrate USDRIF
Mint and redeem USDRIF stablecoins or integrate the RIF savings rate.
Learn morerBTC
Integrate rBTC Yield
Learn how to programmatically deposit rBTC and read APY data using the Vaults SDK.
Learn moreGetting Started
Browse our collection of technical guides by category.
Vaults & Yield
- Integrate rBTC Yield Vaults - The core Bitcoin yield integration.
- Querying Vault Data - How to fetch APY, TVL, and user balances via RPC.
- Building a Yield Dashboard - Frontend patterns for displaying Vault stats.
DeFi Primitives
- Swapping Tokens (Uniswap v3) - Interact with the Rootstock v3 router.
- Lending & Borrowing - Integrate with MoneyOnChain or Trov.
- Flash Loans - Execute atomic arbitrage strategies.
Infrastructure & Tooling
- Connect to RPC Nodes - Public and private endpoints for Mainnet/Testnet.
- Indexing with The Graph - Querying on-chain data with subgraphs.
- Oracles & Price Feeds - Using DIA or API3 for price data.
Quick Start
New to Rootstock? Start here to set up your environment.
| Tool | Purpose | Command / Link |
|---|---|---|
| Vaults SDK | Official Yield Integration | Coming Soon |
| Foundry | Smart Contract Dev | Foundry for Rootstock Guide |
| Hardhat | Smart Contract Dev | Hardhat Config Guide |
| Rootstock CLI | Node Management | npm install -g @rsk-cli |