• LOGS
  • TRACE
  • CONTEXT
  • HUMAN

How to debug Near smart contract transactions with your agent

Connect Nearblocks to your AI client to pull raw on-chain data. Once connected, your agent can inspect failed calls and trace account history.

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 use AI to debug Near smart contract transactions?

Your agent uses Nearblocks to pull specific transaction details, block data, and account histories. This lets you ask your agent to find error logs or trace the sequence of events that led to a failed contract call.

Debugging outcomes

Where your technical data lands.

Your agent organizes raw blockchain data into clear answers.

LOGS

Error identification

Your agent pulls specific transaction details to find the exact reason a smart contract call failed. You get the specific error message instead of a generic failure status.

TRACE

Event sequencing

By looking at account transactions, your agent maps out the history of a specific address. This helps you see exactly what happened before a bug occurred.

CONTEXT

Block-level data

Your agent pulls block details to provide the surrounding context of a transaction. This is useful for checking gas usage or block-wide state changes.

HUMAN

Code fixes

Your agent identifies the failure point in the data, but you must write the actual smart contract fix. It provides the evidence, you provide the solution.

The workflow

What your agent does when a transaction fails.

Your agent acts as a bridge between the Near blockchain and your chat interface.

  1. Fetch transaction data

    Your agent pulls the specific payload and receipt for a transaction hash to see the exact input and output.

    get_transaction_details
  2. Audit account history

    Your agent scans the recent activity of a specific account to find related calls or state changes.

    get_account_transactions
  3. Examine block state

    Your agent looks at the block containing the transaction to verify the state of the network at that time.

    get_block_details
  4. Synthesize errors

    Your agent combines the retrieved data to explain why a contract call reverted or failed.

    get_transaction_details

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 Nearblocks 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 investigation.

Starting points

Swap the transaction hashes or account IDs for your actual data.

Nearblocks Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_mOUL1cNTLhJp3GHXcAMiXlep5sQxPYyaaX4igpsB/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, Nearblocks capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "nearblocks-near-blockchain-explorer-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_mOUL1cNTLhJp3GHXcAMiXlep5sQxPYyaaX4igpsB/mcp"
    }
  }
}
Copy into chat04
  • 01

    Look up the details for transaction 0x123... and tell me why the contract call failed.

  • 02

    Get the last 10 transactions for account near-account-name to see if they were successful.

  • 03

    Check the details for block 54321 to see the transaction count.

  • 04

    Analyze the transaction 0xabc... and explain the input data used in the smart contract call.

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

Start here

Connect Nearblocks once, then ask.

One click connects the Nearblocks MCP to your client. Your credentials stay encrypted, and you can start debugging immediately.

Connect Nearblocks to your agent

FAQ

How the debugging process works

  • 01

    Can your agent fix my smart contract bugs?

    No. Your agent can only read the transaction data and explain why it failed. You have to write and deploy the code fix yourself.

  • 02

    Can your agent send transactions on the Near network?

    No. This MCP is read-only. It can only pull data from the blockchain using Nearblocks; it cannot sign or broadcast new transactions.

  • 03

    How does your agent see failed calls?

    It uses the transaction details tool to pull the specific error logs and receipt data from the blockchain.

  • 04

    Does your agent have access to my private keys?

    No. Your agent only accesses public on-chain data through the Nearblocks API. It never needs or touches your private keys.

  • 05

    Can I use this to track a specific user's history?

    Yes. You can ask your agent to pull the transaction history for any specific account address.

  • More questions about Nearblocks? See everything the Nearblocks 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 Nearblocks 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.

    Nearblocks 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 Nearblocks 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.