Blocknative
Blocknative provides real-time mempool monitoring and transaction management tools for public blockchains.
Verdict
Common use cases
- Monitor pending transactions before confirmation
- Estimate optimal gas prices for user transactions
- Track transaction state changes across multiple chains
- Analyze mempool gas price distribution trends
- Discover supported chains for gas estimation
Integration
- Vendor
- Blocknative
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 10
- Composio slug
blocknative
Tools
- Configure Mempool Filters
Tool to configure filters and abi decoding for ethereum mempool transactions. use after establishing a blocknative websocket connection to set up event filters and decoding.
- Get Base Fee Estimates
Tool to get real-time predictions for base fee and blob base fee for the next 5 blocks. use when you need both 99% and 50% confidence estimates for upcoming blocks.
- Get Gas Oracles
Tool to retrieve metadata on supported gas oracles per chain. use when you need to dynamically discover all available on-chain gas estimation oracles across networks.
- Get Gas Price Distribution
Tool to retrieve the current mempool gas price distribution breakdown. use when analyzing gas price trends or preparing fee strategies.
- Get Gas Prices
Tool to fetch gas price estimates for specific inclusion probabilities. use when you need gas price ranges for the next block or next ~10 seconds.
- Get Supported Chains
Tool to retrieve supported chains metadata. use when discovering available networks for blocknative gas services.
- Subscribe Multichain
Tool to generate websocket subscription details for events across multiple chains. use when preparing to track a transaction hash or account address across chains via blocknative multichain sdk.
- Subscribe Transaction Hash
Tool to subscribe to transaction state change events of an ethereum transaction hash. use after establishing a blocknative websocket connection to prepare the subscription message.
- Unsubscribe Multichain
Tool to unsubscribe from events across multiple chains using the multichain sdk. use after stopping monitoring of an address or transaction to clean up resources, e.g., call: blocknative.unsubscribe({ id: '0x..', chainid: '0x1' }).
- Unsubscribe Transaction Hash
Tool to unsubscribe from transaction state change events for an ethereum transaction hash. use after establishing a blocknative websocket connection to prepare the unsubscription message.
Setup
Setup guide
- 11. In Switchy, navigate to Settings > Integrations and click Add MCP Integration. 2. Select Blocknative from the developer tools category. 3. You'll be prompted to enter your Blocknative API key — generate one from your Blocknative dashboard under API Keys if you don't have it yet. 4. Paste the key into Switchy and click Connect. 5. Switchy will verify the key by calling Get Supported Chains to confirm access. 6. Open any Space and type '@Blocknative get gas prices for 90% inclusion probability' to test the connection. 7. If you see current gas estimates returned, the integration is live. 8. For streaming tools like Subscribe Transaction Hash, you'll need to establish a WebSocket connection first — use Configure Mempool Filters after connecting to set up event filters and ABI decoding for your use case.
What teammates see: by default, memories from Blocknative are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Current Gas Estimates
@Blocknative get gas prices for 95% inclusion probability for the next blockOpen in a Space →
Base Fee Forecast
@Blocknative get base fee estimates for the next 5 blocks with 99% and 50% confidence intervalsOpen in a Space →
Mempool Price Breakdown
@Blocknative get the current mempool gas price distribution breakdownOpen in a Space →
Track Transaction Status
@Blocknative subscribe to transaction hash 0xYOUR_TX_HASH and notify me of state changesOpen in a Space →
List Supported Networks
@Blocknative get supported chains metadata for gas estimation servicesOpen in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@Blocknative what are the current gas price estimates for Ethereum mainnet with 90% inclusion probability in the next block?
Based on current mempool conditions, for 90% inclusion probability in the next block on Ethereum mainnet: Base fee is estimated at 28.3 Gwei (99% confidence: 32.1 Gwei), with a priority fee of 0.8 Gwei recommended. Total estimated cost would be approximately 29.1 Gwei per gas unit. These estimates reflect mempool activity sampled within the last 15 seconds and account for typical block builder behavior.
This example demonstrates read-only gas estimation — a core use case for transaction timing decisions. Requires a valid API key with access to Ethereum mainnet. Estimates refresh every few seconds; stale data can lead to underpayment and delayed inclusion during volatile periods.
@Blocknative set up a websocket subscription to monitor transaction 0xabc123... and notify me when it confirms or drops from the mempool.
Websocket subscription configured for transaction hash 0xabc123... on Ethereum mainnet. You'll receive real-time events for: pending (mempool entry), confirmed (block inclusion), speedup (replacement detected), cancel (user-initiated drop), and dropped (evicted from mempool). Connection established at wss://api.blocknative.com/v0 with your API key. Events will stream until the transaction reaches a terminal state or the connection closes.
This example shows Blocknative's event-driven monitoring capability, useful for tracking user transactions or detecting MEV activity. Requires maintaining an active websocket connection; dropped connections lose in-flight events. Subscription scope is per-transaction — monitoring multiple hashes requires separate subscriptions or the multichain tool.
@Blocknative compare the next 5 blocks' base fee predictions across Ethereum, Polygon, and Base, then recommend the cheapest window for deploying a contract.
Analyzing base fee trajectories for the next 5 blocks: Ethereum shows a declining trend from 30 Gwei (block +1) to 26 Gwei (block +5), with 99% confidence bounds tightening after block +3. Polygon remains stable at 80-85 Gwei throughout. Base exhibits the lowest and most predictable fees at 0.02-0.03 Gwei across all blocks. Recommendation: Deploy on Base immediately for ~$0.15 total cost, or wait 3 blocks on Ethereum if mainnet deployment is required (estimated $8-9 at block +4 vs. $11 now).
This synthesis example pairs Blocknative's multi-chain gas data with reasoning about cost optimization. Demonstrates cross-chain comparison and temporal analysis. Accuracy depends on mempool volatility — sudden demand spikes (NFT mints, airdrops) can invalidate predictions within seconds. Requires API access to all three chains.
Use-case deep-dives
When Blocknative wins for transaction timing at protocol scale
A 6-person DeFi team building an automated market maker needs to submit transactions at optimal gas prices without overpaying or getting stuck. Blocknative's mempool filters and gas price distribution tools let them monitor pending transactions in real-time and calculate the 99% confidence base fee for the next block. The Get Gas Prices tool returns inclusion probabilities for specific time windows—critical when arbitrage opportunities close in seconds. This MCP is the right call if your protocol submits 50+ transactions daily and gas costs materially affect unit economics. If you're building a consumer app that batches transactions weekly, the complexity isn't worth it—use a simpler gas oracle. For teams optimizing MEV strategies or managing liquidation bots, Blocknative's mempool visibility justifies the API key setup and websocket handling.
Blocknative handles cross-chain monitoring for wallet teams
A 4-person wallet startup needs to show users transaction status across Ethereum, Polygon, and Arbitrum without building separate monitoring infrastructure for each chain. Blocknative's Subscribe Multichain tool generates websocket subscriptions that track a single transaction hash or address across networks with one connection. The Get Supported Chains tool dynamically discovers available networks, so adding Base or Optimism support doesn't require code changes. This MCP is ideal if your product tracks 1,000+ transactions daily across three or more chains. The threshold: if you're only monitoring Ethereum mainnet, a simple Etherscan API call is cheaper and simpler. For teams building portfolio trackers or aggregators where users expect real-time updates across L2s, Blocknative's multichain SDK eliminates the polling overhead and chain-specific quirks that slow down small teams.
When base fee estimates matter for deployment budgets
A 3-person infrastructure team at a blockchain studio deploys 15-20 smart contracts monthly for client projects and needs accurate cost forecasts before mainnet deployment. Blocknative's Get Base Fee Estimates tool returns 99% and 50% confidence predictions for the next 5 blocks, letting them schedule deployments during low-fee windows and quote clients realistic gas budgets. The Get Gas Oracles tool shows which on-chain estimators are available per network, useful when clients deploy to unfamiliar L2s. This MCP is the right call if deployment costs exceed $500 per contract and timing flexibility exists. If you're deploying once per quarter or gas is under $100, checking Etherscan manually is faster. For studios managing continuous deployment pipelines or advising clients on launch timing, Blocknative's confidence intervals turn gas estimation from guesswork into budgetable line items.
Frequently asked
What does the Blocknative MCP do in Switchy?
It gives your AI agents real-time access to Ethereum mempool data and gas price predictions. Agents can monitor pending transactions, estimate optimal gas fees across multiple confidence levels, and track transaction states across chains. Useful for teams building trading bots, DeFi dashboards, or any workflow that needs to react to on-chain activity before blocks confirm.
Do I need a paid Blocknative account to use this MCP?
Yes. You need an active Blocknative API key, which requires signing up at blocknative.com. Free tier exists but has rate limits. The MCP uses API_KEY auth, so whoever connects it in Switchy must paste their key into the integration settings. No OAuth flow—just copy the key from your Blocknative dashboard.
Can this MCP submit transactions or change wallet state?
No. It's read-only. The MCP monitors mempool activity, fetches gas estimates, and subscribes to transaction events via WebSocket. It cannot sign transactions, move funds, or interact with smart contracts. If your agent needs to execute on-chain actions, you'll need a separate wallet integration or custom tooling outside Switchy.
How is this different from just calling Blocknative's API directly?
The MCP wraps Blocknative's REST and WebSocket APIs into natural-language tools your AI agents can invoke. Instead of writing code to parse JSON responses or manage WebSocket connections, agents ask questions like 'what's the current gas price for 99% confidence' and get structured answers. Faster prototyping, no boilerplate.
Who on my team should connect this integration?
Whoever owns your Blocknative account and has the API key. Typically a backend engineer or DevOps lead. Once connected, any Switchy workspace member can build agents that use the mempool and gas tools. The API key's rate limits apply workspace-wide, so coordinate with your team if you're on a shared Blocknative plan.