一键导入
trx-staking-sr-voting
Stake TRX, vote for Super Representatives, and claim voting rewards on TRON.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Stake TRX, vote for Super Representatives, and claim voting rewards on TRON.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Execute token swaps, manage liquidity, and query market data on SunSwap DEX via the sun-cli.
Create meme tokens on SunPump (`sun sunpump launch`), trade them — both pre-launch (bonding curve via `sun sunpump buy/sell`) and post-launch (SunSwap via `sun swap`) — and query token info, rankings, holders, portfolios, and trade history.
Pay for x402-enabled Agent endpoints using ERC20 tokens (USDT/USDC) on EVM or TRC20 tokens (USDT/USDD) on TRON.
Use when the user asks to generate an X/Twitter daily digest or says phrases such as "生成X日报", "生成 x 日报", "X日报", "推特日报", "Twitter digest", or wants an agent to analyze their own X/Twitter mentions, home timeline, reply opportunities, and daily social-media summaries. This skill is API-only.
Use when the user wants to install or authorize xurl for X/Twitter, generate "生成X日报", "X日报", "推特日报", or "Twitter digest" from the local xurl CLI, or optionally register/troubleshoot the hosted X MCP bridge.
BANK OF AI account query and recharge skill. Use for requests like 'recharge 1 usdt', '给 BANK OF AI 充值 1 USDT', or to query BANK OF AI balance/orders. Recharge uses the remote MCP endpoint https://recharge.bankofai.io/mcp with the single `recharge` tool.
| name | TRX Staking & SR Voting |
| description | Stake TRX, vote for Super Representatives, and claim voting rewards on TRON. |
| version | 1.0.0 |
| dependencies | ["node >= 18.0.0","tronweb"] |
| tags | ["tron","staking","voting","governance","super-representative"] |
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.
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.
status.js — Staking Overviewnode scripts/status.js
node scripts/status.js TWalletAddress
Output: tron_power, total_frozen_trx, votes[], unused_tron_power, pending_reward_trx
sr-list.js — List Super Representativesnode 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)
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.
rewards.js — Voting Rewardsnode scripts/rewards.js # Check pending rewards
node scripts/rewards.js --claim --dry-run
node scripts/rewards.js --claim
node stake.js 1000 ENERGYnode scripts/status.jsnode scripts/sr-list.js --top 10node scripts/vote.js TSRAddress --dry-run → confirm → executenode scripts/rewards.jsnode scripts/rewards.js --claimThis skill is compatible with the TRON Stake 2.0 data model and APIs:
frozenV2[] array to compute TRON Power and vote capacity (status.js, vote.js).voteWitnessAccount to cast votes with TRON Power obtained from Stake 2.0 frozen balances.getReward and claims via withdrawBalance (rewards.js). This is separate from unstake withdrawal.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 —
withdrawExpireUnfreezemust be called to reclaim it. Unstaking also removes the corresponding TRON Power, which will invalidate any active votes that depend on it.
| Property | Value |
|---|---|
| 1 frozen TRX | = 1 TRON Power (TP) |
| Active SRs | Top 27 by votes |
| SR Partners | Ranks 28-127 |
| Vote cycle | Every 6 hours |
| Block reward | 128 TRX per cycle, proportional to votes |
| Unstake cooldown | 14 days (mandatory, Stake 2.0) |
| Unstake withdrawal | Manual — must call withdrawExpireUnfreeze |
sr-list.js.| Problem | Solution |
|---|---|
No TRON Power | Stake TRX first using energy-bandwidth skill |
Percentages don't sum to 100% | Adjust split percentages |
No rewards to claim | Wait for a vote cycle (6 hours) after voting |
Version 1.0.0 — Created by M2M Agent Registry for Bank of AI