Simulate Multiple Transactions with Bundle Support for Transaction Preview

Blocknative Ethereum Web3

Blocknative Transaction Preview now supports bundling for simulating transactions on Ethereum Mainnet. Using Blocknative’s Transaction Preview API, users can simulate the outcome of two or more bundled transactions based on the current state of the blockchain. 

Simulation bundles enhance the ability of wallets, protocols, and traders to:

  • see net-balance changes and smart contract calls before authorizing transactions
  • reduce failed transactions
  • optimize arbitrage opportunities

Enable endless ways to simulate ETH transactions

In the DeFi space, transactions are seldom simple or straightforward. Sometimes to accurately simulate a user’s desired intent, multiple transactions must be simulated together. For this reason, Blocknative has introduced bundle support to give Dapps, wallets, and traders new ways to fully utilize our pre-chain infrastructure. 

Blocknative’s simulation bundles enable users to reduce failed transactions and get on-chain with confidence. 

The following are just a few ways users can use bundles to simulate multiple transactions on Ethereum. For a technical breakdown of these different use cases, check out our blog Understanding ETH Simulation Bundles and When to Use Them.

 

Token swap on a DEX: approve and swap

One of the biggest limitations with single transaction simulations is that they typically do not work well to simulate token swaps on decentralized exchanges (DEX). This is because these token swaps often require an approval transaction before they can execute. Not doing so first will result in the single transaction simulation failing.

Using simulation bundles, users are now able to approve and swap in a single simulation.

 

Arbitrage between DEXs: approve, swap, approve, swap

Profiting from arbitrage and liquidation opportunities can be tricky without first simulating the transaction to see if it will execute as expected. MEV searchers will often need to conduct multiple approvals and swaps to accomplish an arbitrage opportunity, introducing several points of risk to their potential profit. 

High-frequency bundles can contain multiple variants of a transaction so MEV searchers can optimize their simulations until they have the confidence they need to successfully engage in cross-DEX arbitrage.

Searchers can also use simulation bundles to assist with more advanced forms of arbitrage, such as oracle arbitrage, rebate arbitrage, or JIT arbitrage. We may discuss using simulations for advanced arbitrage in a future post.

 

How to Leverage Bundles in Transaction Preview Today

Web3 developers and traders can now go hands-on with bundled simulations using our Transaction Preview API to: 

  • Show accurate slippage, net balance changes, and contract calls across several transactions — to ensure you always get on-chain with confidence.
  • Enable better trade execution by varying inputs like gas limit, gas price, and transaction input to see how it changes the outputs. 
  • Get insights from the mempool to optimize development. 
  • And much more!

You can begin prototyping today by creating a free account and reviewing the Transaction Preview API docs. Once you are ready to push to production, simply sign up for a commercial plan

Create an account today

As always, please join our Discord Community if you have questions, concerns, or recommendations.

Observe Ethereum

Blocknative's proven & powerful enterprise-grade infrastructure makes it easy for builders and traders to work with mempool data.

Visit ethernow.xyz

Want to keep reading?

Good choice! We have more articles.

eip-4844,-blobs,-and-blob-gas:-what-you-need-to-know
Ethereum

EIP-4844, Blobs, and Blob Gas: What you need to know

With the upcoming Dencun upgrade, Ethereum will adopt EIP-4844, commonly called proto-danksharding...

introducing-ethernow:-real-time-observability-for-ethereum
Ethereum

Introducing Ethernow: Real-Time Observability for Ethereum

On-chain data tells you what has happened. Pre-chain data tells you why it is happening. For anyone..

mempool-archive-quickstart:-how-to-use-blocknative's-historical-ethereum-mempool-data-to-analyze-private-transactions,-mev,-and-ofas
Blog Nav Post

Mempool Archive Quickstart: How to use Blocknative's historical Ethereum mempool data to analyze private transactions, MEV, and OFAs

Blocknative offers the most exhaustive historical archive of Ethereum's mempool transaction events,..

Connect with us. Build with us.

We love to connect with teams who are building with Blocknative. Tell us about your team and what you would like to learn.

"After first building our own infrastructure, we appreciate that mempool management is a difficult, expensive problem to solve at scale. That's why we partner with Blocknative to power the transaction notifications in our next-generation wallet."

Schedule a demo