• DEPLOY
  • QUERY
  • INVOKE
  • HUMAN

How to execute smart contract methods with your AI

Connect AntChain to your AI client to manage blockchain interactions through conversation. You stop writing boilerplate code and start using plain English to drive contract logic.

Ask AI about this page

Short answer

Can I run smart contract functions using natural language?

Yes. Your AI uses AntChain to translate your text commands into direct blockchain actions like deploying new contracts or calling existing functions. You get immediate execution and data retrieval without touching a code editor.

Direct blockchain outcomes.

What you can do.

Your AI handles the technical heavy lifting, leaving you with the results.

DEPLOY

New contract deployment

The AI sets up new smart contracts based on your requirements. You get a deployed contract ready for use.

QUERY

Real-time data retrieval

Ask for specific state information or balances. The AI pulls live data directly from the chain.

INVOKE

Function execution

Trigger specific logic or state changes within a contract. The AI sends the transaction for you.

HUMAN

Manual oversight

You review the transaction details or contract logic before final confirmation. The AI prepares everything, but you hold the keys.

The workflow

What your AI does when <the thing arrives>.

The AI acts as the bridge between your intent and the blockchain.

  1. Contract Setup

    The AI prepares the necessary bytecode and parameters to launch a new contract on the network.

    deploy_contract
  2. Data Fetching

    Your AI looks up specific values, balances, or contract states to answer your questions.

    query_contract
  3. Action Triggering

    The AI sends the specific arguments needed to run a function within an existing contract.

    invoke_contract
  4. Verification

    The AI checks the results of a query or the status of a deployment to confirm success.

    query_contract

Try it

Copy these to start.

Use these prompts to begin interacting with the blockchain.

Starting points

Replace the bracketed text with your specific contract addresses or function names.

AntChain Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_6s3jj4KRHYuyTSr9cONKYRLgKRYV9CmkvAeWBQSz/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 — AntChain capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "antchain-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_6s3jj4KRHYuyTSr9cONKYRLgKRYV9CmkvAeWBQSz/mcp"
    }
  }
}
Copy into chat04
  • Deploy a new smart contract for a basic token swap.

  • Query the current balance of the contract at 0x1234567890abcdef.

  • Invoke the transfer function on my contract to send 50 tokens to 0xABCDEF.

  • Check the status of the contract deployment I just requested.

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

Start here

Connect AntChain once, then ask.

One connection gives your AI client access to the AntChain tools. Your credentials stay encrypted and secure on our end.

Connect AntChain to your AI

FAQ

How the connector behaves

  • 01

    Can the AI sign transactions by itself?

    No. The AI prepares the transaction and the parameters, but you must provide the final authorization through your client.

  • 02

    Can I use this to write new Solidity code?

    No. This connector is for executing and querying existing contract logic, not for writing or compiling new source code files.

  • 03

    Does the AI handle gas fees?

    The AI includes the necessary gas parameters in the transaction, but the actual fee is paid from your connected wallet.

  • 04

    Can the AI delete a contract?

    No. There is no tool provided to delete or remove a contract once it is deployed.

  • 05

    How does the AI know which contract to use?

    You tell the AI the contract address or name in your prompt, and it uses that information to target the right function.

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

Connect AntChain to Claude, Cursor, ChatGPT & more