SR / Witness (Super Representative)
Overview
| Tool | Function | Use Case |
|---|
| getWitnessList | Witness/SR list | SRs, partners, candidates by type |
| getAccountVotes |
Account vote record | Which SRs an address voted for and amounts |
| getChainParameters | Chain parameters | Tx fees, energy/bandwidth price, config |
| getProposals | Governance proposals | Proposal content, votes, participants |
| getWitnessVoteInfo | SR vote metrics | Vote count, ranking history for a witness |
| getWitnessGeneralInfo | Network aggregate | Total votes, block stats, witness count |
Workflow: SR & Voting Queries
User: "Who are the top SRs? What are the chain parameters?"
- 1. tronscan-sr-governance —
getWitnessList → SR/partner/candidate list; optionally filter by type. - tronscan-sr-governance —
getWitnessGeneralInfo → total votes, block stats, witness count. - For chain config (fees, energy/bandwidth price):
getChainParameters.
User: "Which SRs did this address vote for?"
- 1. tronscan-sr-governance —
getAccountVotes with address → vote targets and amounts.
User: "What is the vote/ranking history of SR X?"
- 1. tronscan-sr-governance —
getWitnessVoteInfo with witness address → vote metrics and history.
User: "Who voted for SR X?" or "List voters of SR X"
- 1. tronscan-account-profiler —
getVoteList (Account API) with SR address → voter list.
MCP Server
Tools
getWitnessList
- - API:
getWitnessList — Get Super Representative list - Input: Supports type filter (SR / partner / candidate)
- Use when: User asks for "SR list", "super representatives", or "candidates".
- Response: SR list with vote count, ranking, etc.
getAccountVotes
- - API:
getAccountVotes — Get account vote record - Input: Account address
- Use when: User asks "who did this address vote for", "my votes", or "vote destination of an address".
- Response: SRs voted for and vote amounts.
getChainParameters
- - API:
getChainParameters — Get current TRON blockchain configuration parameters - Use when: User asks for "chain parameters", "transaction fees", "energy price", "bandwidth price", or "network config".
- Response: All chain parameters including tx fees, energy/bandwidth price.
getProposals
- - API:
getProposals — Get governance proposal list - Use when: User asks for "governance proposals", "proposal list", or "voting proposals".
- Response: Proposal content, vote info, participant details.
getWitnessVoteInfo
- - API:
getWitnessVoteInfo — Get vote metrics and history for a specific witness - Input: Witness address
- Use when: User asks for "SR X's votes", "SR ranking change", or "witness historical data".
- Response: Vote count, ranking change, and other metrics.
getWitnessGeneralInfo
- - API:
getWitnessGeneralInfo — Get witness aggregate statistics - Use when: User asks for "total votes", "block stats", "witness count", or "network vote overview".
- Response: Total vote count, block stats, witness count, etc.
Troubleshooting
- - MCP connection failed: If you see "Connection refused", verify TronScan MCP is connected in Settings > Extensions.
- API rate limit / 429: TronScan API has call count and frequency limits when no API key is used. If you encounter rate limiting or 429 errors, go to TronScan Developer API to apply for an API key, then add it to your MCP configuration and retry.
Invalid witness address
Ensure the address is a valid TRON base58 format (starts with T). For voter list of an SR, use
getVoteList (Account API) with the SR address.
SR / 超级代表(Super Representative)
概览
| 工具 | 功能 | 使用场景 |
|---|
| getWitnessList | 超级代表列表 | 按类型查询SR、合伙人、候选人 |
| getAccountVotes |
账户投票记录 | 查询某个地址投票给了哪些SR及投票数量 |
| getChainParameters | 链参数 | 交易手续费、能量/带宽价格、配置信息 |
| getProposals | 治理提案 | 提案内容、投票情况、参与方信息 |
| getWitnessVoteInfo | SR投票指标 | 某个见证人的得票数、排名历史 |
| getWitnessGeneralInfo | 网络聚合数据 | 总投票数、区块统计、见证人数量 |
工作流程:SR与投票查询
用户:谁是排名靠前的SR?链参数是什么?
- 1. tronscan-sr-governance — getWitnessList → 获取SR/合伙人/候选人列表;可按类型筛选。
- tronscan-sr-governance — getWitnessGeneralInfo → 获取总投票数、区块统计、见证人数量。
- 查询链配置(手续费、能量/带宽价格):使用getChainParameters。
用户:这个地址投票给了哪些SR?
- 1. tronscan-sr-governance — 传入地址调用getAccountVotes → 获取投票目标和投票数量。
用户:SR X的投票/排名历史是什么?
- 1. tronscan-sr-governance — 传入见证人地址调用getWitnessVoteInfo → 获取投票指标和历史数据。
用户:谁投票给了SR X?或列出SR X的投票者
- 1. tronscan-account-profiler — 传入SR地址调用getVoteList(账户API)→ 获取投票者列表。
MCP服务器
工具
getWitnessList
- - API:getWitnessList — 获取超级代表列表
- 输入:支持类型筛选(SR / 合伙人 / 候选人)
- 使用时机:用户询问SR列表、超级代表或候选人时。
- 响应:包含投票数、排名等信息的SR列表。
getAccountVotes
- - API:getAccountVotes — 获取账户投票记录
- 输入:账户地址
- 使用时机:用户询问这个地址投票给了谁、我的投票或某个地址的投票去向时。
- 响应:被投票的SR及投票数量。
getChainParameters
- - API:getChainParameters — 获取当前TRON区块链配置参数
- 使用时机:用户询问链参数、交易手续费、能量价格、带宽价格或网络配置时。
- 响应:所有链参数,包括交易手续费、能量/带宽价格。
getProposals
- - API:getProposals — 获取治理提案列表
- 使用时机:用户询问治理提案、提案列表或投票提案时。
- 响应:提案内容、投票信息、参与方详情。
getWitnessVoteInfo
- - API:getWitnessVoteInfo — 获取特定见证人的投票指标和历史数据
- 输入:见证人地址
- 使用时机:用户询问SR X的得票数、SR排名变化或见证人历史数据时。
- 响应:得票数、排名变化及其他指标。
getWitnessGeneralInfo
- - API:getWitnessGeneralInfo — 获取见证人聚合统计数据
- 使用时机:用户询问总投票数、区块统计、见证人数量或网络投票概览时。
- 响应:总投票数、区块统计、见证人数量等。
故障排除
- - MCP连接失败:如果看到连接被拒绝,请在设置 > 扩展中确认TronScan MCP已连接。
- API速率限制/429错误:未使用API密钥时,TronScan API有调用次数和频率限制。如果遇到速率限制或429错误,请前往TronScan开发者API申请API密钥,然后将其添加到MCP配置中重试。
无效的见证人地址
请确保地址是有效的TRON base58格式(以T开头)。要查询SR的投票者列表,请使用getVoteList(账户API)并传入SR地址。