• TRACE
  • LOGS
  • REASON
  • HUMAN

How to debug failed smart contract transactions with your agent

Connect Metisscan to your agent to pull execution data from the Metis L2 network. Once connected, your agent can scan logs and trace calls to find exactly where a contract failed.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I debug failed Metis transactions with AI?

Your agent uses Metisscan to pull transaction receipts, internal calls, and event logs. It then analyzes the trace to find the specific revert reason or failed state change. You get a clear breakdown of the execution path and the root cause.

Debugging outcomes.

Where your findings land.

Your agent processes raw blockchain data into specific technical insights.

TRACE

Internal call mapping

Your agent follows the execution path through each nested call. You see exactly which sub-contract triggered the failure.

LOGS

Event log analysis

Your agent pulls all emitted events to check if state changes happened before the crash. This helps identify missing or incorrect events.

REASON

Root cause identification

Your agent compares the transaction receipt against the expected logic. It tells you if the failure was a gas issue, a revert, or a logic error.

HUMAN

Manual fix required

Your agent identifies the bug but cannot rewrite your contract. You must take the findings to your development environment to apply the fix.

The workflow

What your agent does when a transaction fails.

Your agent moves from high-level receipt data to deep execution traces.

  1. Fetch receipt

    Your agent grabs the basic transaction status and gas usage to confirm the failure.

    eth_get_transaction_receipt
  2. Trace internals

    It digs into the nested calls to see which specific contract instruction failed.

    get_transaction_internal_transactions
  3. Inspect logs

    Your agent scans all emitted logs to see the state of the system at the time of failure.

    get_transaction_logs
  4. Simulate state

    It runs a dry run of the call to see how the contract would behave with different inputs.

    eth_call

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Metisscan tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin your debugging session.

Starting points

Swap out the transaction hashes and contract addresses with your actual data.

Metisscan Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_zyQr84ZqWsm75UyKe8SMUHe3tqoUUbpiQAh6jf7t/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Metisscan capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "metisscan-metis-l2-network-explorer-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_zyQr84ZqWsm75UyKe8SMUHe3tqoUUbpiQAh6jf7t/mcp"
    }
  }
}
Copy into chat04
  • 01

    Analyze this Metis transaction hash 0x123... and tell me why it reverted.

  • 02

    Trace the internal calls for transaction 0xabc... to find the failing sub-contract.

  • 03

    Check the event logs for this transaction 0xdef... to see if the transfer event was emitted.

  • 04

    Run a simulation for this contract call 0x789... to see if it succeeds with different parameters.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Metisscan once, then ask.

Link your Metisscan credentials to the MCP. Your agent will immediately have access to the Metis L2 data needed to start debugging.

Connect Metisscan to your agent

FAQ

How the debugging process works

  • 01

    Can your agent fix my smart contract automatically?

    No. Your agent only reads data and identifies the error. You have to write and deploy the fix yourself.

  • 02

    Can your agent execute new transactions on Metis?

    No. This MCP is for reading transaction data and logs. It does not have tools to sign or send transactions.

  • 03

    Does your agent see my private keys?

    No. The connection is read-only for blockchain data. Your keys are never exposed to your agent or the MCP.

  • 04

    What happens if the transaction is very complex?

    Your agent uses internal transaction tracing to follow each step, making it capable of handling deep call stacks.

  • 05

    Can I use this with any AI client?

    Yes, as long as you are using an MCP-compatible client like Claude, Cursor, or Windsurf.

  • More questions about Metisscan? The Connector page answers them. See everything the Metisscan Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Metisscan to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Metisscan plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Metisscan to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.