Skip to content
Back to Blog
Developer Resources

Simplifying DAODevelopment with theRootstock Collective SDK

Read Time: 3 mins
Simplifying DAO Development with the Rootstock Collective SDK

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.

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 ProposalState and VoteSupport
  • 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.

Recommended articles

Token Bridge Sunset: How to Move Your Assets and Bridge to Rootstock via Stargate

Token Bridge Sunset: How to Move Your Assets and Bridge to Rootstock via Stargate

Rootstock is deprecating the Token Bridge (Ethereum ↔ Rootstock). Bridging via the Token Bridge will no longer be supported after the end of March 2026. For bridging into Rootstock going forward, we recommend using Stargate. What’s changing Token Bridge bridging between Ethereum and Rootstock will no longer be supported after the end of March 2026. […]

Ecosystem Updates
Introducing Atlas: The easiest way in to BTCFi

Introducing Atlas: The easiest way in to BTCFi

Most Bitcoin today is held, not actively used. Not because there’s no demand, but because using Bitcoin beyond holding is complex, costly, and dependent on intermediaries where tradeoffs around trust, cost, and control aren’t always clear. Borrowing against BTC or generating yield has traditionally required navigating fragmented infrastructure, comparing bridges, and making routing and security […]

Ecosystem Updates
Vetiver 9.0.1: Patch Release

Vetiver 9.0.1: Patch Release

This patch release builds on the Vetiver 9.0.0 upgrade, which introduced multiple consensus improvements to enhance scalability, security, and performance across the network. Vetiver 9.0.1 introduces a fix for the debug_traceTransaction method, following issues reported by users after upgrading to Vetiver 9.0.0. Although Vetiver 9.0.1 is not a mandatory release, nodes that use the debug_traceTransaction […]

Ecosystem Updates