Simulate Multiple Transactions with Bundle Support for Transaction Preview

Blocknative Merge Ethereum

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.

Master the Mempool today.

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

Start for free

Want to keep reading?

Good choice! We have more articles.

get-started-with-mev-boost-&-blocknative-dreamboat
Ethereum

Get Started With MEV-Boost & Blocknative Dreamboat

The Ethereum Merge was about more than moving the network to Proof-of-Stake. The upgrade also..

blocknative-mev-relay-launches-to-provide-trusted-block-transport
Ethereum

Blocknative MEV Relay Launches to Provide Trusted Block Transport

San Francisco, CA; September 14, 2022

will-the-merge-lower-gas-fees?
The Merge

Will The Merge Lower Gas Fees?

The Ethereum Merge is almost upon us. It will usher in the era of Proof-of-Stake, lay the..

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