trongrid-transaction-info

v1.0.2

Query and decode TRON transactions including status, confirmation, sender/receiver, resource costs, internal transactions, event logs, and failure analysis....

1· 247·0 current·0 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description match the SKILL.md: all steps describe calling TronGrid MCP methods (getTransactionById, getTransactionInfoById, solidityGetTransactionById, getContract, getEventsByTransactionId, etc.) and decoding receipts, events, and internal txs. Nothing requested is unrelated to querying/decoding transactions.
Instruction Scope
The runtime instructions stay within the stated purpose: they describe specific API calls, decoding steps (method sigs, ABI use), resource accounting, and producing a report. The instructions do not ask to read unrelated files, environment variables, or to transmit data to unexpected endpoints.
Install Mechanism
There is no install spec and no code files — the skill is instruction-only, which minimizes surface area. Nothing is downloaded or written to disk.
Credentials
The skill declares no required environment variables or credentials, which is reasonable for an instruction-only guide. Minor caveat: real-world use of TronGrid/MCP endpoints may require API keys, rate-limiting considerations, or platform network access — the SKILL.md does not mention credentials or auth, so callers should verify whether their platform or the chosen MCP endpoint needs an API key or auth headers before relying on it.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system privileges. It is user-invocable and allows autonomous invocation by default (the platform default) which is expected for skills; there is no indication it modifies other skills or system-wide settings.
Assessment
This skill appears coherent and instruction-only — it tells the agent how to call TronGrid MCP methods and how to decode the results. Before installing or using it, verify: (1) your agent/platform has network access to the TronGrid/MCP endpoints you intend to use; (2) whether the chosen MCP provider requires an API key or authentication (the skill does not declare any credentials); and (3) avoid sending any private keys or secrets to the skill — transaction hashes and public on-chain data are safe to query, but do not paste wallet private keys or other secrets into prompts. If you prefer, route requests through a trusted node or your own RPC provider to avoid exposing usage to third-party services.

Like a lobster shell, security has layers — review code before you run it.

latestvk975qevj9kwy6kz3fpfkspm8ms837b8d
247downloads
1stars
3versions
Updated 1mo ago
v1.0.2
MIT-0

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

Comments

Loading comments...