# Ankr (Web3 Node API) MCP for AI Agents AI Agent Connect

> Ankr (Web3 Node API) MCP. Access high-performance Web3 RPC nodes to query block data, check wallet balances, and interact with smart contracts across EVM chains. It lets your AI agent handle the heavy lifting of blockchain data fetching without you needing to manage complex node infrastructure or manually craft JSON-RPC requests.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ovDNKkD1boVWkgwgjN7iwXmwbTY2XG9BpJ0FYRBc/ai-agent-connect
- **Tags:** web3, ethereum, rpc-node, evm, blockchain-api

## Description

You're tired of jumping between block explorers and terminal windows just to see if a transaction landed or how much gas a contract call will cost. This Connector connects your AI agent directly to Ankr's global node infrastructure, turning your chat interface into a live blockchain terminal. Instead of manually crafting JSON-RPC requests or wrestling with Postman, you can just ask your agent to pull the latest block data or check a specific wallet's balance. It handles the heavy lifting of interacting with Ethereum and other EVM-compatible chains, giving you a direct line to on-chain data. Whether you're auditing smart contracts or tracking NFT ownership, you get the data you need in plain English. It's one of the reasons Vinkius is the go-to place for these kinds of specialized connections because it makes high-performance Web3 data actually usable for your daily workflow. You can move from asking about a token price to simulating a complex multi-transaction scenario without ever leaving your workspace. This connection removes the friction of raw data retrieval and replaces it with a conversational way to interact with the blockchain.

## Tools

### ankr_getTokenPrice
Get the current USD price of a token. This helps you quickly see the real-time market value of a specific asset.

### getTransaction
Get details for a confirmed transaction. Use this to pull the data of a transaction that has already landed.

### ankr_getAccountBalance
Get all token balances for a specific wallet. This helps you quickly see a user's holdings across different tokens.

### ankr_getBlocks
Fetch full details for a range of blocks. Use this to see what happened on the chain during a specific timeframe.

### ankr_getInteractions
List all blockchains a wallet has interacted with. This is useful for mapping out a user's multi-chain history.

### ankr_getNFTHolders
List all holders of a specific NFT collection. Use this to analyze the distribution of a specific project.

### ankr_getNFTMetadata
Retrieve metadata for a specific NFT. This lets you see the image, name, and other details of a unique asset.

### ankr_getNFTsByOwner
Find all NFTs owned by an address across multiple chains. This provides a complete view of a user's digital assets.

### ankr_getTokenTransfers
Retrieve historical token transfer data. Use this to track the movement of assets over time.

### eth_blockNumber
Get the most recent block number on the network. This is the quickest way to see the current chain head.

### eth_call
Execute a call without creating a transaction. Use this to read contract states or test logic without spending gas.

### eth_estimateGas
Estimate the gas needed for a transaction. Use this to prevent your transactions from getting stuck due to low gas.

### eth_getBalance
Get the balance of a specific address. This returns the amount of native currency held by an account.

### eth_getBlockByHash
Get block information by hash. This is perfect for looking up details of a specific historical block.

### eth_getBlockByNumber
Get block information by number. Use this to fetch the data for a specific point in the blockchain history.

### eth_getCode
Get the code at a given address. This lets you inspect the bytecode of a deployed smart contract.

### eth_getLogs
Get logs matching specific filter criteria. Use this to find specific events that occurred on the blockchain.

### eth_getStorageAt
Get the value from a specific storage position. This is useful for deep analysis of smart contract internal states.

### eth_getTransactionByHash
Get details for a specific transaction. Use this to see the inputs, outputs, and status of a past event.

### eth_getTransactionCount
Get the number of transactions sent from an address. This is the standard way to retrieve a wallet's nonce.

### eth_getTransactionReceipt
Get the receipt of a transaction. Use this to confirm if a transaction succeeded and how much gas it used.

### eth_sendRawTransaction
Submit a signed transaction to the network. This allows your agent to broadcast raw data to the blockchain.

### eth_simulateV1
Simulate multiple blocks or transactions. Use this to predict the outcome of complex operations before you run them.

### getAccountInfo
Get all info associated with a Pubkey. This provides a comprehensive view of a public key's identity.

### getBalance
Get the lamport balance of an account. Use this for specific balance checks on the Solana network.

### getBlockHeight
Get the current block height of the network. This tells you how far along the chain has progressed.

### getBlock
Get identity and transaction info for a confirmed block. Use this to see the contents of a specific block.

### getEpochInfo
Get information about the current epoch. This is useful for understanding the current network state.

### getLatestBlockhash
Get the latest blockhash for transaction building. Use this to prepare for sending new transactions.

### getProgramAccounts
Get all accounts owned by a program. This helps you see the state of specific on-chain programs.

### sendTransaction
Submit a signed transaction to the network. Use this to perform actions like sending tokens or calling contracts.

### simulateTransaction
Simulate a transaction to check for errors. Use this to verify that your logic works before you spend real gas.

## Prompt Examples

**Prompt:** 
```
What's the current block number on Ethereum?
```

**Response:** 
```
I've checked the Ethereum network for you. 

**Current Block Number:** 19,245,812

Let me know if you need details on a specific block or transaction.
```

**Prompt:** 
```
Check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e on the 'eth' chain.
```

**Response:** 
```
I've retrieved the balance for that address:

*   **Network:** Ethereum
*   **Balance:** 1.5 ETH (1,500,000,000,000,000,000 Wei)

Would you like me to check the transaction count for this wallet as well?
```

**Prompt:** 
```
Get the transaction receipt for hash 0x5c504ed432cb511db3b32169e5444570f9d0cad662f6e19df34ad57d57ad5 on eth.
```

**Response:** 
```
I've pulled the receipt for that transaction:

| Status | Block | Gas Used |
| :--- | :--- | :--- |
| **Success** | 18,450,210 | 21,000 |

Everything looks good. The transaction was confirmed successfully.
```

## Capabilities

### Fetch real-time block data
Your agent pulls the latest block numbers and detailed information for specific hashes.

### Audit wallet balances
Get a full list of token balances and transaction counts for any given address.

### Query NFT ownership
Find all NFTs owned by an address or list holders for a specific collection.

### Simulate on-chain actions
Run simulations to check for errors and estimate gas costs before sending transactions.

### Read smart contract states
Access raw storage slots and execute calls to read contract data without spending gas.

### Track historical transfers
Retrieve historical token transfer data and transaction receipts for deep analysis.

## Use Cases

### Debugging a failed transaction
A developer asks their agent to find out why a transaction failed. The agent uses `eth_getTransactionReceipt` and `eth_getTransactionByHash` to identify the error code and gas usage.

### Analyzing whale movements
A DeFi researcher asks the agent to list all NFTs and token balances for a specific address. The agent uses `ankr_getNFTsByOwner` and `ankr_getAccountBalance` to compile a report.

### Simulating complex contract calls
A dev wants to know the result of a multi-step swap. The agent uses `eth_simulateV1` to run the simulation and reports the expected state change back to the user.

### Monitoring NFT collection growth
A collector asks the agent to find the top holders of a new NFT drop. The agent uses `ankr_getNFTHolders` to pull the list and summarize the distribution.

## Benefits

- Get real-time wallet balances instantly using `ankr_getAccountBalance` without switching to a block explorer.
- Verify smart contract logic safely by using `eth_simulateV1` to predict outcomes before you commit.
- Analyze NFT trends by pulling holder lists with `ankr_getNFTHolders` and `ankr_getNFTMetadata` in seconds.
- Automate gas cost checks using `eth_estimateGas` to ensure your transactions always land on time.
- Audit historical data by fetching transaction receipts with `eth_getTransactionReceipt` for any given hash.
- Track token movements across the ecosystem using `ankr_getTokenTransfers` for deep on-chain research.

## How It Works

The bottom line is you get a direct conversational bridge to EVM blockchain data without managing your own node infrastructure.

1. Subscribe to the Ankr (Web3 Node API) MCP on Vinkius.
2. Provide your Ankr JWT Token in the configuration settings.
3. Ask your AI client to fetch block data, check balances, or simulate transactions.

## Frequently Asked Questions

**Can Ankr (Web3 Node API) help me check my wallet balance?**
Yes, it allows your AI agent to instantly pull the balance of any wallet on Ethereum and other EVM chains. You can ask for the balance of a specific address in plain English and get the result immediately.

**How does Ankr (Web3 Node API) work with my AI agent?**
It acts as a bridge. Once connected, your AI agent can use the tools provided by this Connector to fetch real-time blockchain data, query smart contracts, and simulate transactions on your behalf.

**Can I use Ankr (Web3 Node API) to see NFT ownership?**
Yes, you can ask your agent to list all NFTs owned by a specific address or to find all holders of a specific collection. It pulls this data directly from the blockchain for you.

**Does Ankr (Web3 Node API) support multiple EVM chains?**
It supports Ethereum and other EVM-compatible chains. This means you can query data across a wide range of networks using the same connection.

**Can Ankr (Web3 Node API) estimate gas for me?**
Yes, it can. Your agent can use the estimation tool to tell you exactly how much gas a transaction will cost before you send it, helping you avoid stuck transactions.

**How do I use Ankr (Web3 Node API) to debug a smart contract?**
You can ask your agent to execute calls to read contract states or to simulate complex transactions. This lets you see how a contract will behave without spending any gas.

**Is Ankr (Web3 Node API) good for DeFi research?**
It's excellent for research. It allows you to quickly pull historical transfer data, token prices, and whale interactions, making it much faster to gather on-chain data for analysis.

**How can I check the current block height on a specific network?**
Use the `eth_blockNumber` tool and provide the `chain_alias` (e.g., 'eth' for Ethereum). The agent will return the most recent block number recorded on that chain.

**Is it possible to simulate a transaction before sending it to the mainnet?**
Yes! You can use the `eth_simulateV1` tool. By providing a simulation payload, you can see the potential outcome and state changes of transactions without actually broadcasting them.

**How do I retrieve the balance of a specific wallet address?**
Simply use the `eth_getBalance` tool with the target `address` and `chain_alias`. The agent will fetch the current balance in Wei for that account.