Time to read: 1 min
Developer Recipes
Welcome to the Developer Kitchen. Here you will find hands-on code examples ("recipes") to help you integrate Rootstock's core features into your dApps, wallets, and services.
Getting 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 | npm install @rootstocklabs/vaults-sdk |
| Foundry | Smart Contract Dev | Foundry for Rootstock Guide |
| Hardhat | Smart Contract Dev | Hardhat Config Guide |
| Rootstock CLI | Node Management | npm install -g @rootstock/cli |