Overview
Decodes revert reasons from failed Cronos transactions and provides human-readable explanations. Tool Name:decode_transaction_error
Parameters
Transaction hash (0x… with 64 hex characters)
Chain to queryOptions:
"evm", "zkEvm"Response
Supported Error Types
- STANDARD_ERROR
- PANIC
- CUSTOM_ERROR
- OUT_OF_GAS
- UNKNOWN
Error(string) - Standard Solidity error with decoded messageCommon causes:
- Insufficient balance
- Slippage exceeded
- Unauthorized access
- Invalid parameters
Example Usage
Python (MCP Client)
Natural Language Query
Response Fields
Transaction Object
| Field | Type | Description |
|---|---|---|
hash | string | Transaction hash |
chain | string | Chain name |
status | string | Transaction status |
from | string | Sender address |
to | string | Recipient address |
protocol | string | Detected protocol |
timestamp | string | Transaction timestamp |
block_number | number | Block number |
Error Object
| Field | Type | Description |
|---|---|---|
type | string | Error type |
signature | string | Error signature |
name | string | Error name |
raw_message | string | Raw error data |
decoded_message | string | Human-readable message |
explanation | string | Plain English explanation |
suggested_fix | string | How to fix the issue |
protocol_docs | string | Relevant documentation |
Gas Analysis Object
| Field | Type | Description |
|---|---|---|
gas_used | number | Gas consumed |
gas_limit | number | Gas limit set |
gas_price_gwei | string | Gas price in Gwei |
wasted_cro | string | CRO wasted on failed tx |
utilization_percent | number | Gas utilization % |
Common Errors & Solutions
Insufficient output amount
Insufficient output amount
Cause: Slippage tolerance too low for market conditionsSolution:
- Increase slippage tolerance in DEX settings
- Split large trades into smaller amounts
- Wait for better market conditions
Transfer amount exceeds balance
Transfer amount exceeds balance
Cause: Trying to send more tokens than you haveSolution:
- Check token balance
- Account for existing approvals
- Verify token decimals
ERC20: insufficient allowance
ERC20: insufficient allowance
Cause: Contract not approved to spend tokensSolution:
- Call
approve()on token contract - Set allowance to desired amount
- Use max approval for convenience
Out of gas
Out of gas
Cause: Gas limit set too lowSolution:
- Increase gas limit by 20-30%
- Use gas estimation tools
- Check for infinite loops in contract
Transaction underpriced
Transaction underpriced
Cause: Gas price below network minimumSolution:
- Use current network gas price
- Check gas price oracle
- Wait for lower network congestion
Gas Analysis Features
Cost Calculation
Calculate exact CRO wasted on failed transaction
Utilization %
See how much of gas limit was used
Price Tracking
Record gas price at transaction time
Optimization Tips
Get suggestions for better gas usage
Protocol Detection
The tool automatically identifies the protocol you’re interacting with:- Tectonic - Lending protocol
- VVS Finance - DEX
- Fulcrom - Perpetuals
- Token Contracts - ERC-20 transfers
- NFT Contracts - ERC-721/1155
- Custom Contracts - Generic smart contracts
Protocol-specific errors include links to relevant documentation for troubleshooting.
Use Cases
- Development
- User Support
- Analytics
- Learning
Debug smart contract interactions during development and testing.
Error Handling
Transaction Not Found
RPC Timeout
If RPC times out (>5s), you’ll receive a timeout error with retry suggestion.Best Practices
Related Tools
query_cronos_sdk_docs
Find code examples for proper implementation
Transaction History
View all transactions for an address