The Rootstock Collective SDK is the easiest way for developers to integrate with the Rootstock Collective DAO. Designed with modern dApp development in mind, it abstracts the complexity of interacting with multiple smart contracts into a clean, modular, and type-safe TypeScript interface.
Built on top of viem, the SDK delivers a familiar, high-performance experience, especially for developers coming from Ethereum or Bitcoin ecosystems, while unlocking the full potential of Rootstock’s unique Build-to-Earn model.
- GitHub: https://github.com/rsksmart/collective-sdk
- NPM Package: Available now
- Starter Kit: Coming soon
Why the Collective SDK Matters
The Rootstock Collective introduces new primitives like liquid governance and backing builders. The SDK brings these concepts together into a single, intuitive interface.
With it, developers can:
- Manage multiple assets (RIF, stRIF, USDRIF, rBTC) through one unified API
- Enable seamless staking and governance participation
- Build applications around the Backer Economy
- Interact with DAO proposals and treasury operations programmatically
In short, the SDK removes friction, so you can focus on building.
A Unified Interface for the Collective
At its core, the SDK simplifies how developers interact with the ecosystem.
Instead of juggling multiple contracts and integrations, you get a single entry point to:
- Stake and delegate
- Discover and support builders
- Vote on governance proposals
- Track holdings and rewards
This unified approach reduces complexity while maintaining flexibility.
Core Modules
The SDK is organized into modular components, each covering a key part of the Collective.
Staking & Liquid Governance (sdk.staking)
Staking is the foundation of participation in the Collective.
Users can stake RIF and receive stRIF, a token that represents both their staked position and their voting power.
- Stake RIF → receive stRIF
- Delegate voting power in a single flow
- Enable liquid governance without locking user experience
This makes governance more accessible and composable across applications.
The Backing Module (sdk.backing)
The Backing module powers the Collective’s Build-to-Earn economy.
It enables developers to build applications that connect backers with builders.
- Discover active builders, including KYC and approval status
- Allocate stRIF to support specific builders
- Access real-time analytics, including APY and reward projections
This opens the door to entirely new UX patterns around ecosystem funding.
Governance & Proposals (sdk.proposals)
The SDK provides full integration with the Collective’s governance system.
Developers can:
- Create and track proposals (from Pending to Executed)
- Cast votes (For, Against, Abstain), with optional reasoning
- Build interfaces for treasury actions and builder onboarding
Complex governance flows become simple to implement.
Holdings & Rewards Engine (sdk.holdings)
Managing assets and rewards is straightforward with the Holdings module.
- View balances across RIF, rBTC, and USDRIF
- Claim rewards individually or all at once
- Analyze rewards by builder (gauges)
This enables rich dashboards and user-friendly portfolio views.
Built for Developers
The Collective SDK is designed to deliver an exceptional developer experience.
import { CollectiveSDK } from ‘@rsksmart/collective-sdk’
// Initialize SDK (Rootstock Testnet)
const sdk = new CollectiveSDK({ chainId: 31 })
// Fetch builders and voting power
const builders = await sdk.backing.getBuilders()
const { votingPower } = await sdk.holdings.getVotingPower(‘0x…’)
What makes it developer-friendly?
- TypeScript-first: Fully typed exports and enums like
ProposalStateandVoteSupport - Viem-native: Built on a modern, lightweight Ethereum interaction library
- Network-ready: Supports Rootstock Mainnet (Chain ID 30) and Testnet (Chain ID 31) out of the box
Start Building
The Rootstock Collective SDK is your gateway to building on one of the most innovative DAO models in the Bitcoin ecosystem.
Whether you’re creating wallets, dashboards, governance tools, or entirely new funding mechanisms—the SDK gives you the primitives to move fast and build with confidence.
Explore the repo and start building today.


