@quantabit/staking-sdk
v1.0.2
Published
QuantaBit Staking SDK - Native token staking, reward calculations and validator interactions
Downloads
458
Maintainers
Readme
@quantabit/staking-sdk
QuantaBit Staking SDK provides comprehensive tools for participating in Proof-of-Stake validator operations, reward monitoring, unbonding scheduling, and native yield simulation in the QuantaBit network.
Features
- Validator Delegation: Delegate and stake native QBT tokens with verified validator nodes.
- Yield Calculation: Simulate APY / APR rewards over custom lockup periods.
- Reward Claiming: Redeem accumulated node staking rewards in a single step.
- Staking hooks: React hooks to monitor real-time node stakes and user deposits.
- Multilingual Support: Fully localized dictionary support for EN, ZH, JA, and KO.
Installation
npm install @quantabit/staking-sdk @quantabit/sdk-configQuick Start
import { stakeTokens, claimStakingRewards, calculateStakingYield } from '@quantabit/staking-sdk';
// Calculate estimated yield
const estimatedInterest = calculateStakingYield(5000, 180, 0.082); // stake 5000 QBT for 180 days at 8.2% APR
// Stake tokens
const record = await stakeTokens('val_node_1', 1000);
// Claim rewards
await claimStakingRewards('val_node_1');Brand & Links
- Official Website: https://quantabit.io
- Documentation: https://docs.quantabit.io
- Explorer: https://explorer.mg.qbitchain.io
- Source Code: https://github.com/quantabit-chain/qbit-sdk
