Time to read: 1 min
Build BTCFi dApps
Here you will find hands-on code examples ("recipes") to help you build BTCFi (Bitcoin Finance) applications. Whether you are building a lending protocol, a DEX, or a Yield Dashboard, these guides will get you started.
Vault Integration (BTCFi)
Use the Vaults SDK to build yield-bearing applications on the Bitcoin and Dollar engines.
USDRIF Yield Vault
Integrate USDRIF Yield
Mint and redeem USDRIF stablecoins or integrate the RIF savings rate into your dApp.
View ReciperBTC Yield Vault
Integrate rBTC Yield
Use the Vaults SDK to programmatically deposit rBTC and display yield data in your UI.
SDK GuideGetting Started
Browse our collection of technical guides by category.
Vaults & Yield
Technical resources for the Rootstock Vaults SDK.
- Vaults SDK Reference - Installation, initialization, and core methods.
- Querying Vault Data - How to fetch APY, TVL, and user balances via RPC.
DeFi Primitives
- Swapping Tokens (Uniswap v3) - Interact with the Rootstock v3 router.
- Lending & Borrowing - Integrate with MoneyOnChain or Trov.
Quick Start
New to Rootstock? Start here to set up your environment.
| Tool | Purpose | Command / Link |
|---|---|---|
| Vaults SDK | 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 @rsk-cli |