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

Vetiver 9.0.4: Patch Release

Vetiver 9.0.4: Patch Release

Vetiver 9.0.4 addresses several reported issues, including fixes for the Import Sync feature and the eth_estimateGas RPC method, along with security, performance, and reliability improvements. Although this is not a mandatory release, we recommend that node operators upgrade to this version to benefit from the improvements it introduces. The latest version of the RSKj client […]

Ecosystem Updates
Rootstock Bridge Security 101: Commonly Asked Questions

Rootstock Bridge Security 101: Commonly Asked Questions

Most losses in Bitcoin-adjacent systems do not start on Bitcoin itself. They start at the edges where the Bitcoin network is exposed to other systems. Whether it’s the bridge that moves BTC onto another network and back again, the vendors who handle customer records, the firmware that is supposed to generate unguessable keys or the […]

Fundamentals
Vetiver 9.0.3: Patch Release

Vetiver 9.0.3: Patch Release

This patch release fixes the issue reported in #3543 affecting the JSON-RPC API methods trace_transaction and trace_block. It also includes code readability improvements, minor bug fixes, and enhanced logging. Although this is not a mandatory release, nodes that rely on these tracing methods should be updated to this version to avoid potential issues. The latest […]

Ecosystem Updates