# GetBlock MCP for AI Agents AI Agent Connect

> GetBlock Web3 RPC Provider connects your AI agent to 50+ blockchain networks including Ethereum, Solana, and Bitcoin. Use it to query real-time balances, fetch block data, and inspect transactions directly through your chat interface. It removes the need to switch between different blockchain explorers or manual RPC endpoints.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_fKBRnyAOTfW2kcEEsmaTPlQbbeSL20kULVFH9xwE/ai-agent-connect
- **Tags:** rpc-nodes, web3, blockchain-infrastructure, ethereum, solana, crypto-data, api-integration

## Description

Imagine you're deep in a debugging session and need to know exactly why a smart contract call failed on a specific block. Instead of opening five different tabs, jumping between block explorers, and manually copying hex codes, you just ask your AI agent. This Connector lets your agent talk directly to GetBlock's infrastructure to pull that data instantly. It handles the heavy lifting of multi-chain connectivity, so you can stay in your flow whether you're looking for a Bitcoin transaction hash or an Ethereum balance. It's about getting the raw data you need without the friction of manual querying. By adding this to your setup via the Vinkius catalog, you turn your AI into a real-time blockchain oracle that can navigate dozens of protocols on command. You get a unified way to interact with the decentralized web, making it way easier to build, analyze, and monitor on-chain activity without the headache of managing individual node connections.

## Tools

### btc_createpsbt
Create a transaction in the Partially Signed Bitcoin Transaction format. Use this to generate transactions that need multiple signatures.

### btc_getbestblockhash
Get the hash of the latest block on the Bitcoin network. This is useful for verifying the current tip of the chain.

### btc_getblockcount
Retrieve the total number of blocks in the longest Bitcoin blockchain. It provides a quick way to see the chain's scale.

### btc_getblockchaininfo
Get a summary of the current state of the Bitcoin blockchain. This includes processing info and network stats.

### btc_sendrawtransaction
Submit a raw, hex-encoded transaction to the network. It allows for direct submission of serialized data.

### debug_trace_block_by_number
Get traces for every transaction within a specific block. This is perfect for auditing all activity in a single block.

### debug_trace_call
Run an eth_call within a specific block's execution context. It helps you see what happens during a specific call.

### debug_trace_transaction
Get all traces for a specific transaction. Use this to see every step of a smart contract execution.

### eth_accounts
List all addresses owned by the connected client. This helps you see which accounts you have access to.

### eth_block_number
Get the current block number for the Ethereum network. It's a fast way to check the latest chain height.

### eth_call
Execute a new message call without creating a transaction. This lets you test contract behavior instantly.

### eth_estimate_gas
Estimate the gas required for a transaction to finish. Use this to avoid out-of-gas errors before sending.

### eth_get_block_by_number
Get information about a block using its number. Use this when you know the height but not the hash.

### eth_get_code
Get the code at a specific address on the Ethereum network. This lets you inspect smart contract bytecode.

### eth_get_transaction_by_hash
Get details about a specific transaction using its hash. Use this to check status or data of a past transaction.

### eth_get_transaction_receipt
Get the receipt for a transaction by its hash. This confirms if a transaction succeeded or failed.

### rpc_call
Execute any generic JSON-RPC method supported by GetBlock. This gives you access to any tool not listed individually.

### sol_get_account_info
Get all info for a specific Solana Pubkey. This provides details on the account's state.

### sol_get_balance
Get the balance of a specific Solana Pubkey. It's the primary way to check SOL or token balances.

### sol_get_latest_blockhash
Get the latest blockhash from the Solana ledger. Use this to start new transactions on Solana.

### sol_get_token_account_balance
Get the balance of an SPL Token account on Solana. This is how you check specific token holdings.

### sol_get_transaction
Get details for a confirmed Solana transaction signature. Use this to audit specific on-chain actions.

### sol_send_transaction
Submit a signed transaction to the Solana cluster. This allows your agent to interact with the Solana network.

### btc_analyzepsbt
Analyze details of a Partially Signed Bitcoin Transaction. It helps you understand the contents of a pending transaction.

### eth_get_balance
Get the current balance of an Ethereum account. It's the standard way to check a wallet's holdings.

### eth_get_block_by_hash
Get full details about a block using its hash. This is useful for deep inspection of specific blocks.

## Prompt Examples

**Prompt:** 
```
What's the current status of this Ethereum transaction? [Hash]
```

**Response:** 
```
I've checked the status for that transaction. Here are the details:

- **Status:** Success
- **Block Number:** 19283746
- **Gas Used:** 45,200
- **Transaction Receipt:**
  - **From:** 0x742d...
  - **To:** 0x9a3b...
  - **Value:** 1.25 ETH

Everything went through as expected.
```

**Prompt:** 
```
Can you check my balances on both Ethereum and Solana?
```

**Response:** 
```
I've pulled your current balances from both networks:

| Network | Balance |
| :--- | :--- |
| **Ethereum** | 1.25 ETH |
| **Solana** | 12.45 SOL |

Would you like me to check your token holdings on Solana as well?
```

**Prompt:** 
```
Give me a summary of the Bitcoin network right now.
```

**Response:** 
```
Here is the current state of the Bitcoin blockchain:

- **Current Blocks:** 832,104
- **Network Difficulty:** 75.73T
- **Network Hashrate:** 580.21 EH/s

The network is processing blocks normally.
```

## Capabilities

### Query balances across multiple chains
Get native balances and token holdings for wallets on Ethereum, Solana, and other networks.

### Fetch real-time block data
Retrieve current block heights, hashes, and network metadata instantly.

### Retrieve transaction receipts
Check the status and details of past transactions to confirm successful execution.

### Run deep transaction traces
Analyze smart contract behavior by pulling every step of a transaction's execution.

### Execute custom JSON-RPC methods
Use the rpc_call tool to run any standard method supported by the GetBlock node.

### Analyze and create Bitcoin PSBTs
Create and inspect Partially Signed Bitcoin Transactions for complex multi-sig workflows.

## Use Cases

### Debugging a failed swap
A developer asks why a transaction failed. The agent uses debug_trace_transaction to find the exact line of code that reverted.

### Portfolio monitoring
A user wants to see their total holdings. The agent calls eth_get_balance and sol_get_token_account_balance to sum up assets.

### Chain research
An analyst wants to know the current Bitcoin stats. The agent uses btc_getblockchaininfo to pull hashrate and block data.

### Gas optimization
A user is about to send a large transfer. The agent runs eth_estimate_gas to ensure they have enough for the transaction.

## Benefits

- Stop switching tabs by querying Ethereum, Solana, and Bitcoin data in one place.
- Debug smart contracts faster using debug_trace_transaction to see every execution step.
- Save time on manual research with btc_getblockchaininfo for instant network stats.
- Prevent failed transactions by using eth_estimate_gas to check costs before sending.
- Monitor your portfolio across multiple chains with sol_get_balance and eth_get_balance.
- Access any custom blockchain method using the flexible rpc_call tool.

## How It Works

The bottom line is you get a direct line to 50+ blockchains without managing a single node.

1. Subscribe to this Connector on Vinkius and copy your unique connection details.
2. Input your GetBlock Access Token into your AI client's configuration.
3. Ask your agent to check balances or pull block data from any supported chain.

## Frequently Asked Questions

**Can the GetBlock MCP access more than just Ethereum?**
Yes, it connects to over 50 different blockchain networks. You can query data from Bitcoin, Solana, and many other popular chains using a single connection.

**How does the GetBlock MCP help with smart contract debugging?**
It allows your AI agent to pull deep execution traces for specific transactions. This helps you see exactly where a contract call failed instead of just seeing a generic error message.

**Is the GetBlock MCP good for tracking my crypto portfolio?**
It's a great way to do that. Your agent can pull balances for multiple wallets across different chains, giving you a consolidated view of your assets in one conversation.

**Do I need to run my own node to use the GetBlock MCP?**
No, you don't. This Connector connects to GetBlock's high-performance infrastructure, so you get instant access to blockchain data without the cost or complexity of maintaining your own node.

**Can I use the GetBlock MCP to send transactions?**
Yes, the Connector includes tools to submit signed transactions to various networks. This means your agent can help you interact with protocols directly on the chain.

**What happens if I need a specific blockchain method not listed?**
The Connector includes a generic call tool. If a standard method isn't explicitly listed, your agent can often still execute it as long as the GetBlock node supports that JSON-RPC command.

**Can I query blockchains other than Ethereum?**
Yes! This server includes specific tools for multiple networks, such as `sol_get_balance` for Solana and `btc_get_blockchain_info` for Bitcoin, leveraging GetBlock's multi-chain infrastructure.

**How do I execute a custom RPC method not listed in the tools?**
Use the `rpc_call` tool. You can provide the method name (e.g., 'eth_chainId') and a JSON string of parameters to interact with any available endpoint feature.

**Is it possible to debug failed smart contract transactions?**
Yes. Use the `debug_trace_transaction` tool with the transaction hash. It will return the execution traces, helping you identify exactly where a call reverted or failed.