- PREDICTION
- SIMULATION
- SAFETY
- HUMAN
Short answer
How can I predict gas costs and transaction success?
Your AI uses Ankr's Web3 Node API to calculate gas limits and simulate how a transaction will behave on-chain. This prevents failed transactions and unexpected costs. You get precise data for every call.
The results of your request.
Where your data lands.
Your AI turns raw blockchain data into actionable predictions.
PREDICTION
Accurate gas estimates
The AI calculates the exact gas needed for a specific call. You get a clear number to avoid out-of-gas errors.
SIMULATION
Dry run outcomes
The AI runs a simulation of the transaction. You see if the call succeeds or fails without spending any real gas.
SAFETY
Error prevention
By checking the state before execution, the AI identifies potential reverts. You avoid wasting funds on failed attempts.
HUMAN
Manual verification
The AI provides the raw simulation data. You decide whether to proceed with the actual on-chain execution.
The workflow
What your AI does when <the thing arrives>.
The AI acts as a bridge between your prompt and the Ankr node infrastructure.
Calculate gas needs
The AI determines the gas required for your specific function call. This ensures your transaction has enough fuel to finish.
eth_estimateGasRun a dry run
The AI executes the transaction in a virtual environment. This reveals if the logic will actually work on the current state.
eth_simulateV1Identify failure points
If the simulation fails, the AI analyzes why. It looks for reverts or insufficient balances before you commit.
eth_simulateV1Finalize estimates
The AI combines the gas limit and the simulation results. It gives you a complete picture of the expected cost.
eth_estimateGaseth_simulateV1
Try it
Copy these to start.
Use these prompts to begin interacting with the Ankr MCP.
Starting points
Replace the bracketed text with your specific contract address or function details.
Ankr Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_ovDNKkD1boVWkgwgjN7iwXmwbTY2XG9BpJ0FYRBc/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 — Ankr capabilities are ready to use.
{
"mcpServers": {
"ankr-web3-node-api-mcp": {
"url": "https://edge.vinkius.com/vk_preview_ovDNKkD1boVWkgwgjN7iwXmwbTY2XG9BpJ0FYRBc/mcp"
}
}
}Estimate the gas required for a transfer from 0x123... to 0x456...
Simulate this swap on Uniswap to see if it will revert: [paste transaction data]
How much gas will it cost to call the mint function on this contract: 0xabc...
Run a simulation for this transaction to check if I have enough liquidity.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Ankr once, then ask.
Just link Ankr to your AI client. Your credentials stay encrypted, and you can start running estimates immediately.
Connect Ankr to your AIFAQ
How this task behaves.
- 01
Does the AI actually send the transaction?
No. The AI only estimates and simulates. You must manually trigger the actual transaction in your wallet.
- 02
Can the AI change my gas settings?
No. The AI provides the estimates, but it cannot modify your wallet settings or your transaction parameters.
- 03
Will I lose money if the simulation fails?
No. Simulations are performed against a local state and do not cost any real gas or funds.
- 04
How accurate are the gas estimates?
The estimates are as accurate as the current network state provided by the Ankr node.
- 05
Can the AI check my wallet balance?
The AI can check balances if you provide the address, but it cannot move funds for you.
More questions about Ankr? The Connector page answers them. See everything the Ankr Connector can do
Connect Ankr to Claude, Cursor, ChatGPT & more
