Skip to main content
Zero-Commission Validator: Stake with the Helius validator and keep 100% of your staking rewards with our 0% commission rate.

Quick Overview

The Helius SDK provides simple methods to handle the complete SOL staking lifecycle programmatically. Perfect for building staking interfaces, DeFi protocols, or automated staking strategies.

Create & Delegate

Set up new stake accounts and delegate to validators in one transaction

Monitor & Manage

Track rewards, check status, and manage existing stake accounts

Withdraw & Redeem

Deactivate stakes and withdraw SOL after cooldown periods

Installation & Setup

Staking Basics

Stake Account: A special account that locks SOL and delegates it to a validator. Each stake account points to exactly one validator.Rewards: Validators earn rewards for securing the network. These rewards are distributed to all stake accounts delegated to that validator.Lifecycle: Create → Delegate → Earn Rewards → Deactivate → Withdraw
  • 0% Commission: Keep 100% of your staking rewards
  • High Performance: Reliable block production and minimal downtime
  • Easy Integration: Optimized for the Helius SDK with built-in helpers
  • Activation: Stakes become active at the start of the next epoch (~2 days)
  • Deactivation: Takes effect at the end of the current epoch
  • Cooldown: Deactivated stakes can be withdrawn immediately after epoch end

Getting Started

Stake SOL in just 3 lines of code:
The SDK automatically handles rent calculation and stake account creation. The 1.5 parameter is the amount in SOL you want to stake.

SDK Methods Reference

Creates a complete staking transaction that can be signed and sent.Parameters:
  • owner (PublicKey): The wallet that will own the stake account
  • amount (number): Amount of SOL to stake
Returns:
Example:
Returns just the instructions for staking (useful for custom transaction building).Returns:
Example:
Retrieves all stake accounts delegated to the Helius validator for a wallet.Example:
Creates a transaction to deactivate (begin unstaking) a stake account.Example:
Check how much SOL can be withdrawn from a deactivated stake account.Parameters:
  • includeRent (boolean): Whether to include rent-exempt amount
Example:
Creates a transaction to withdraw SOL from a deactivated stake account.Example:

Complete Staking Workflow

1

Create and Delegate

2

Monitor Your Stakes

3

Deactivate (Start Unstaking)

4

Withdraw SOL

Advanced Patterns

For browser applications using wallet adapters:

Important Notes

Epoch Timing: Solana epochs last ~2 days. Stakes activate at the next epoch start, and deactivation takes effect at the current epoch end.
Rent Considerations: Stake accounts need rent-exempt reserves (~0.00228 SOL). Withdrawing the full balance closes the account.
Hardware Wallets: Users will see two signature prompts - one for the stake account (pre-signed) and one for the fee payer. Design your UX accordingly.

Quick Reference

Need a quick reminder? Here are the essential methods:

Next Steps

Helius SDK Documentation

Complete SDK reference with all available methods

Smart Transactions

Optimize your transactions with priority fees and retry logic

Join Discord

Get help from our developer community

Validator Dashboard

Monitor Helius validator performance and rewards