← 返回
数据分析 中文

trongrid-transaction-info

Query and decode TRON transactions including status, confirmation, sender/receiver, resource costs, internal transactions, event logs, and failure analysis....
查询并解码TRON交易,包括状态、确认数、发送方/接收方、资源消耗、内部交易、事件日志及失败分析。
greason
数据分析 clawhub v1.0.2 2 版本 99820.8 Key: 无需
★ 1
Stars
📥 537
下载
💾 10
安装
2
版本
#latest

概述

Transaction Info

Query and intelligently decode TRON transactions — result status, confirmation, resource consumption, decoded method calls, internal transactions, event logs, and failure diagnosis.

MCP Server

Instructions

Step 1: Fetch Transaction Data

Run two complementary calls in parallel:

  1. getTransactionById — Type, raw data, sender/receiver, contract parameters, signatures, timestamp, expiration
  2. getTransactionInfoById — Result (SUCCESS/FAILED/REVERT), block number/timestamp, fee, energy/bandwidth usage, contract return value, internal txs, event logs

Step 2: Check Confirmation Status

  1. getBlock (no params) — Get current block height
  2. Compare transaction's block number with latest block
  3. solidityGetTransactionById — Check if confirmed by solidity node (irreversible)

Classification:

  • Confirmed (Irreversible): Found on solidity node
  • Confirmed (Not yet irreversible): In recent block, not solidified
  • Pending: Use getTransactionFromPending if needed
  • Not Found: Invalid hash or expired

Step 3: Decode Transaction Type

Contract TypeDescriptionKey Fields
---------------------------------------
TransferContractTRX transferfrom, to, amount
TransferAssetContractTRC-10 transferfrom, to, asset, amount
TriggerSmartContractContract callcontract, data (method + params)
FreezeBalanceV2ContractStake 2.0 freezeowner, amount, resource
UnfreezeBalanceV2ContractStake 2.0 unfreezeowner, amount, resource
DelegateResourceContractResource delegationfrom, to, resource, amount
VoteWitnessContractSR votingowner, votes list
CreateSmartContractContract deploymentowner, bytecode, ABI

Step 4: Decode Smart Contract Calls

For TriggerSmartContract:

  1. Extract method signature (first 4 bytes of data)
  2. Common signatures:
    • a9059cbb = transfer(address,uint256)
    • 095ea7b3 = approve(address,uint256)
    • 23b872dd = transferFrom(address,address,uint256)
  3. If ABI available (via getContract), fully decode method name, parameters, and return value
  4. Decode event logs for what actually happened

Step 5: Analyze Resource Consumption

From receipt, break down:

  • Energy: Used amount, from staking vs. burned TRX
  • Bandwidth: Used amount, free vs. staked
  • Fee: Total TRX paid (divide by 1,000,000 for TRX)
  • Energy Penalty: Over-usage penalty if applicable

Step 6: Internal Transactions

Call getInternalTransactionsByTxId for:

  • TRX transfers between contracts
  • Contract-to-contract calls
  • Token distributions in complex transactions

Step 7: Parse Event Logs

Decode to human-readable descriptions:

  • Transfer → "[amount] [token] from [A] to [B]"
  • Approval → "[A] approved [B] to spend [amount]"
  • Swap → "[A] swapped [X] tokenA for [Y] tokenB"

Step 8: Compile Transaction Report

## Transaction: [txid]

### Status
- Result: [SUCCESS / FAILED / REVERT]
- Confirmation: [Irreversible / Confirmed / Pending]
- Block: #[number] ([timestamp])

### Participants
- From: [address]
- To: [address / contract]
- Value: [amount] TRX / [token]

### Decoded Action
[Human-readable description]
e.g., "Transferred 1,000 USDT from TXxx... to TYyy..."
e.g., "Staked 10,000 TRX for Energy (Stake 2.0)"

### Resource Costs
- Energy: [amount] (staked: [X], burned: [Y])
- Bandwidth: [amount]
- Total Fee: [amount] TRX

### Internal Transactions
| From | To | Value | Note |
|------|----|-------|------|

### Events
[Decoded event logs]

### Failure Analysis (if failed)
- Revert Reason: [decoded]
- Likely Cause: [analysis]
- Suggestion: [actionable fix]

Error Handling

ErrorCauseResolution
--------------------------
Transaction not foundInvalid hash, too old, or not yet broadcastVerify hash format (64 hex chars); check pending pool with getTransactionFromPending
No receipt dataTransaction still pendingNote "Transaction pending, receipt not yet available"
Cannot decode methodNo ABI available for contractShow raw data hex, identify common method signatures manually
REVERT without reasonContract reverted without error messageCheck energy limit, parameter validity, and contract state

Examples

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-03-29 22:40 安全 安全
  • v1.0.1
    2026-03-19 09:35

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,106
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 59,998
developer-tools

trongrid-contract-analysis

greason
分析TRON智能合约,涵盖部署信息、ABI方法、交易模式、主要调用者、能量消耗及安全评估。当用户...
★ 0 📥 599