LogoLogo
  • TruFin Protocol
  • Overview
    • TruFin
  • TruStake Vaults
    • TruStake (MATIC) Staker
    • TruStake (Aptos) Staker
    • TruStake (NEAR) Staker
    • TruStake (Injective) Staker
    • TruStake (Solana) Staker
    • How the TruStake Vaults work
    • User Interface
    • Allocating Rewards
      • Starting a New Allocation
      • Keeping track of your Allocations
      • Changing an existing Allocation
      • Distributing Allocated Rewards
      • Seeing your Allocation History
    • Calculating Vault Performance
    • Validators
    • Fees
  • TruStake Staker Examples
  • Tokens
    • TruMATIC Token
      • Contract Addresses
      • Wallets
      • Transferring
      • Staking & Unstaking
      • Bridging
        • Add TruMATIC to your Token List
        • Bridge TruMATIC from Ethereum to Polygon
        • Bridge TruMATIC from Polygon to Ethereum
    • TruAPT Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
    • TruNEAR Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
    • TruINJ Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
    • TruSOL Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
  • Getting Access
    • Accessing the Protocol
    • Jurisdictions
  • Resources
    • Website
    • App
  • Developers
    • Security & Audits
  • Integrated Third Parties
    • Elliptic
  • Polices
    • Polices and Terms
    • Digital Asset Warning
Powered by GitBook
On this page

Was this helpful?

TruStake Staker Examples

PreviousFeesNextTruMATIC Token

Last updated 21 days ago

Was this helpful?

We’ve launched a dedicated repo with working examples to help you stake programmatically using our TruStake Stakers.

Currently, the repository includes support for:

Solana

The Solana example demonstrates how to:

  • Connect to the TruStake staking vault on Solana

  • Stake SOL programmatically into the vault

  • Monitor stake balance and calculate share value

  • Unstake and withdraw SOL via the stake pool

Explore the Solana example here:


More networks and examples will be added soon!

Trufin-io/examples
https://github.com/trufin-io/examples/tree/main/packages/solana-staking