Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计未展示

trx-staking-%26-sr-votingtrx 质押 %26 sr 投票

Agent Skill

trx-staking-%26-sr-voting 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

18,306

周安装

463

GitHub Stars

21

下载量

3,088
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:trx-staking-%26-sr-voting(trx 质押 %26 sr 投票)
来源仓库:https://github.com/bofai/skills
仓库路径:skills/trx-staking-%26-sr-voting
安装命令:
npx skills add https://github.com/bofai/skills --skill 'TRX Staking & SR Voting'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bofai/skills --skill 'TRX Staking & SR Voting'

简介

trx-staking-%26-sr-voting 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更进行整理。
  • 通过 GitHub 安装,需结合原始 README 核验具体用法和权限边界。
  • 安装前建议确认维护状态及是否会触发联网、命令执行或文件读写。
  • 注意该技能当前分类为待分类,功能以实际文档为准。

SKILL.md

TRX Staking & SR Voting

Stake TRX to earn TRON Power, vote for Super Representatives (SRs), and claim voting rewards. TRON uses Delegated Proof of Stake — the top 27 SRs by vote count produce blocks and distribute rewards proportionally to voters every 6 hours.


Quick Start

cd trx-staking-skill && npm install
export TRON_PRIVATE_KEY="<your-private-key>"
export TRON_NETWORK="mainnet"
[!CAUTION] Never display or log the private key.

Available Scripts

1. status.js — Staking Overview

node scripts/status.js
node scripts/status.js TWalletAddress

Output: tron_power, total_frozen_trx, votes[], unused_tron_power, pending_reward_trx

2. sr-list.js — List Super Representatives

node scripts/sr-list.js              # Top 27 (active SRs)
node scripts/sr-list.js --top 50     # Top 50 (includes partners)

Output: super_representatives[] (rank, address, url, vote_count, vote_share, is_active_sr)

3. vote.js — Vote for SRs

# All votes to one SR
node scripts/vote.js TSRAddress --dry-run
node scripts/vote.js TSRAddress

# Split votes across multiple SRs
node scripts/vote.js --split TSR1:60,TSR2:40 --dry-run
[!NOTE] You must have TRON Power (staked TRX) before voting. Use the energy-bandwidth skill to stake TRX.

4. rewards.js — Voting Rewards

node scripts/rewards.js              # Check pending rewards
node scripts/rewards.js --claim --dry-run
node scripts/rewards.js --claim

Usage Patterns

Full Staking Workflow

  1. Stake TRX (via energy-bandwidth skill): node stake.js 1000 ENERGY
  2. Check TRON Power: node scripts/status.js
  3. Browse SRs: node scripts/sr-list.js --top 10
  4. Vote: node scripts/vote.js TSRAddress --dry-run → confirm → execute
  5. Check rewards periodically: node scripts/rewards.js
  6. Claim: node scripts/rewards.js --claim

TRON Stake 2.0 Compliance

This skill is compatible with the TRON Stake 2.0 data model and APIs:

  • Account data: Reads the Stake 2.0 frozenV2[] array to compute TRON Power and vote capacity (status.js, vote.js).
  • Voting: Uses voteWitnessAccount to cast votes with TRON Power obtained from Stake 2.0 frozen balances.
  • Voting rewards: Checks via getReward and claims via withdrawBalance (rewards.js). This is separate from unstake withdrawal.
  • Staking/unstaking TRX is handled by the companion energy-bandwidth skill (which uses freezeBalanceV2, unfreezeBalanceV2, and withdrawExpireUnfreeze).
[!CAUTION] 14-Day Unbonding Period: When TRX is unstaked (via the energy-bandwidth skill), it enters a 14-day cooldown during which it is locked and earns no resources or voting power. The agent must always warn the user about this delay before initiating an unstake. After the 14 days, the TRX does NOT automatically return — withdrawExpireUnfreeze must be called to reclaim it. Unstaking also removes the corresponding TRON Power, which will invalidate any active votes that depend on it.

Key Facts

PropertyValue
1 frozen TRX= 1 TRON Power (TP)
Active SRsTop 27 by votes
SR PartnersRanks 28-127
Vote cycleEvery 6 hours
Block reward128 TRX per cycle, proportional to votes
Unstake cooldown14 days (mandatory, Stake 2.0)
Unstake withdrawalManual — must call withdrawExpireUnfreeze

Security Rules

  1. Never display private keys.
  2. Dry-run before voting. Votes replace previous votes entirely.
  3. Verify SR addresses before voting — confirm via sr-list.js.
  4. Understand that voting replaces all previous votes. Each vote transaction sets the complete vote slate.
  5. Always warn about the 14-day unbonding period before unstaking. When the user wants to unstake (via the energy-bandwidth skill), they must understand that unstaked TRX is locked for 14 days, must be manually withdrawn, and that the lost TRON Power will invalidate votes.

Common Issues

ProblemSolution
No TRON PowerStake TRX first using energy-bandwidth skill
Percentages don't sum to 100%Adjust split percentages
No rewards to claimWait for a vote cycle (6 hours) after voting

*Version 1.0.0 — Created by M2M Agent Registry for Bank of AI*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.63%
按下载量换算1,162

Claude

27.74%
按下载量换算857

Cursor

19.66%
按下载量换算607

Gemini CLI

9.04%
按下载量换算279

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills