- LOGIC
- GAS
- DATA
- HUMAN
Short answer
Why did my blockchain transaction fail?
Your AI pulls the specific execution results and gas usage for a transaction hash to identify the exact cause of a revert. It then explains the error in plain English so you can fix the logic or adjust the gas settings. You'll see exactly where the execution hit a wall.
The outcomes.
Where your debugging results land.
The AI processes the raw data and sorts the findings into these categories.
LOGIC
Smart contract errors
The AI identifies failed requirements or invalid state changes. You get a clear explanation of why the contract logic rejected the call.
GAS
Gas limit issues
The AI checks if the transaction ran out of gas. It compares the gas used against the limit to show if you need to increase the cap.
DATA
Raw execution logs
The AI pulls the specific event logs and traces. You get the raw technical evidence needed to verify the failure.
HUMAN
Manual fixes needed
The AI flags issues that require you to change your code or wallet settings. It won't touch your private keys or contract code directly.
The workflow
What your AI does when a transaction fails.
The AI acts as a technical investigator, digging through the chain to find the root cause.
Fetch transaction data
The AI pulls the full execution details for a specific hash to see what actually happened on-chain.
query_transactionAnalyze execution results
It looks at the status and error messages returned by the node to find the specific revert reason.
query_transactionInspect gas consumption
The AI compares the gas used to the gas limit to determine if the transaction failed due to insufficient funds or complexity.
query_transactionSummarize the failure
The AI translates the technical trace into a simple explanation of what went wrong and how to prevent it next time.
query_transaction
Try it
Copy these to start.
Use these prompts to begin your investigation.
Starting points
Replace the transaction hashes and contract addresses with your own data.
AntChain Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_6s3jj4KRHYuyTSr9cONKYRLgKRYV9CmkvAeWBQSz/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — AntChain capabilities are ready to use.
{
"mcpServers": {
"antchain-mcp": {
"url": "https://edge.vinkius.com/vk_preview_6s3jj4KRHYuyTSr9cONKYRLgKRYV9CmkvAeWBQSz/mcp"
}
}
}Analyze this failed transaction hash: 0xabc123...
Why did this transaction fail? Check the gas usage for 0xdef456...
Look at the execution results for 0x789ghi and tell me why the contract reverted.
Compare the gas limit and gas used for transaction 0xjkl012 to see if I ran out of gas.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect AntChain once, then ask.
Just link the MCP to your preferred client. Your credentials stay encrypted, and you can start debugging immediately.
Connect AntChain to your AIFAQ
How the debugging works
- 01
Can the AI fix my smart contract?
No. The AI only analyzes the data and explains the error. You have to write and deploy the actual code fixes yourself.
- 02
Can the AI resend the transaction for me?
No. The AI has no permission to sign or broadcast transactions. It only reads data from the blockchain.
- 03
Does the AI need my private keys?
No. The AI only needs the transaction hash to query the network. It never touches your wallet or private keys.
- 04
What kind of errors can it find?
It can identify revert reasons, out-of-gas errors, and issues within the execution traces.
- 05
Can it analyze transactions on any chain?
It can analyze any transaction that the AntChain MCP is configured to query.
More questions about AntChain? The Connector page answers them. See everything the AntChain Connector can do
Connect AntChain to Claude, Cursor, ChatGPT & more
