Apply to Startale Superstars to win 1 free year of Tenderly Pro and funding from the prize pool. Learn how to build Mini Apps with Tenderly!

How to Use Tenderly to Build High-Volume Dapps on Mantle Network

As an optimistic L2 solution, Mantle Network brings you many benefits, including low gas fees, improved efficiency and performance, faster transaction speed, and more. Now, you can use Tenderly to build, debug, monitor, and scale dapps on Mantle with greater control, flexibility, and efficiency.

How to Use Tenderly to Build High-Volume Dapps on Mantle Network

In this post

Mantle Network is a high-performance Ethereum optimistic rollup, deriving security from Ethereum Mainnet. As an L2 solution, it delivers an efficient, low-fee development environment with reduced latency and improved transaction throughputs.

Thanks to its EVM compatibility, Mantle Network gives you a familiar EVM environment with seamless tooling and infrastructure portability. Additionally, by implementing Optimistic Bedrock in its Tectonic upgrade, the chain ensures a great level of interoperability with other chains from the Optimism ecosystem.

As Mantle is one of Tenderly’s supported networks, you can use our full-stack infrastructure for the entire dapp lifecycle on Mantle. With development and production infrastructure under one roof, you can build, test, and scale advanced solutions, supporting the adoption of innovative, token-governed technologies.

The Mantle ecosystem 

Thanks to its Mainnet v2 Tectonic upgrade that entailed implementing Optimistic Bedrock, Mantle introduced several important changes significant for its ecosystem. The network switched its native token from an ERC-20 model to $MNT, using it for gas fee payments and ensuring closer alignment with Ethereum.

The upgrade also reduced the cost of transactions, providing users with a more cost-efficient experience on the chain. The introduction of Mantle DA powered by EigenDA technology reduced gas fees significantly when compared to L1 fees. Mantle v2 Tectonic also implemented Meta Transactions, facilitating transaction fee payments by allowing users to specify sponsors that will cover at least some percentage of their costs. 

These reductions in transaction fees contribute to a user-friendly experience essential for large-scale dapps on Mantle. This is particularly important as an increasing number of projects are joining the Mantle ecosystem, with the chain’s TVL showing an upward trend and currently amounting to $391.68m. 

The Mantle ecosystem boasts diverse applications, including DeFi, gaming, NFTs, and social use cases. Some of the most notable projects on Mantle include Agni Finance ($113.15m TVL), Merchant Moe ($74.55m TVL), and INIT Capital ($74.16m TVL).

Why build on Mantle Network

Thanks to its implementation of optimistic rollups, modular architecture, and a separate data availability layer, Mantle Network brings you different benefits that make it an increasingly popular solution for building and deploying dapps: 

  • Greater efficiency and performance thanks to its modular architecture that separates transaction execution, settlement and consensus, and data availability. While Mantle serves as the execution layer, it employs a separate Mantle data availability layer while using Ethereum for settlement and consensus.
  • Reduced gas fees, greater throughput, and faster transaction speed thanks to the use of optimistic rollups for batched transaction execution, as well as a modular blockchain model. 
  • Improved security and lower transaction fees thanks to the use of EigenLayer's EigenDA technology to power MantleDA for data storage and availability. This system optimizes data management costs and makes transactions accessible to both L1 and L2 verifiers.
  • Mantle Grants intended to support developers building on Mantle. While the Mantle Scouts Program encourages the distribution of $1m in $MNT to high-quality projects, public grants allow early-stage projects to apply for support to get started on Mantle. Plus, Mantle also boasts other initiatives to support developers throughout their on-chain journey.

How to build and scale on Mantle with a full-stack infrastructure

As a tech partner for Web3 teams, Tenderly equips you with essential development and production infrastructure with built-in tools for the entire dapp lifecycle on Mantle. With Tenderly’s full-stack infrastructure, you can accelerate your dapp development and gain more control over dapp performance and usage once it’s live on Mantle.

1. Set up flexible development environments with Mantle’s on-chain data

Build your dapp and test its performance against Mantle’s on-chain data with Tenderly Virtual TestNets. Set up a Virtual TestNet environment to replicate the latest state of Mantle Network and build your dapp under realistic conditions.

Aside from building on top of Mantle’s real-time data, you can do so privately in a customizable environment. Simply deploy and verify your smart contracts on a Virtual TestNet, keeping your code private while working with your team using: 

  • Complete on-chain data synced with Mantle’s latest on-chain state, testing contract interactions with underlying protocols. 
  • An unlimited faucet for ERC-20 and native tokes so you can fund your team’s accounts, impersonate public accounts, and test any scenario without limitations. 
  • Environment customization RPC methods so you can override the network state with custom values for setting balances, increasing time, or reverting state. 
  • Built-in virtual explorer and debugging tools to quickly analyze contract execution, identify issues, and debug them on the exact line where they happened. 
  • Public explorer to share your Virtual TestNet with external collaborators, bounty hunters, or auditors, or to enable public testing. 

2. Run and scale high-performance dapps with Node RPC

Tenderly’s fast and reliable Node RPC allows you to scale your dapp as its usage increases, providing advanced production infrastructure to ensure its optimal performance.

By integrating Node RPC, you can: 

  • Ensure fast, uninterrupted connection and reduced latency, supporting high usage and traffic spikes thanks to soft rate limits and high scalability.
  • Direct traffic to the most appropriate location to support dapp usage around the globe with a smart routing system.
  • Provide 100% accurate gas estimates to prevent failures caused by out-of-gas errors and save valuable resources. 
  • Create custom RPC methods and deploy a serverless dapp backend to overcome the limitations of general-purpose APIs.

3. Explore and debug Mantle’s on-chain data efficiently

With Tenderly’s powerful exploration and debugging tools, you can interact with on-chain data on Mantle quickly, diving into human-readable insights. You can also shorten your feedback loops and instantly debug failed transactions on Mantle Network.

Here’s how to use Tenderly’s dev tools for development and production debugging: 

  • Get comprehensive transaction information in the Transaction Overview tab. Dive into transaction execution, examine asset and balance changes within a transaction, and inspect it with a granular stack trace.
  • Debug transaction execution using Tenderly Debugger. Jump into Debugger to step through a transaction trace by trace and find the exact line of code where a bug happened. You can even evaluate complex expressions right in the stack trace.
  • Try out a solution right away by resimulating the transaction with Transaction Simulator. Update the contract’s source code to apply your fix and preview the exact effect of your changes. You can also change different transaction parameters and override block headers to test a custom scenario.
  • Analyze the actual gas consumption of your contracts and transactions. Use Gas Profiler for a granular overview of gas usage per individual function call. This way, you can identify those lines of code that consume a lot of gas so you can optimize them before deploying to Mantle Network.

Want to try it out? Check out this example of analyzing SSTORE opcodes:

4. Integrate simulation infrastructure for unique dapp functionalities

Aside from optimizing your development process, you can also integrate Tenderly’s infrastructural components into your dapp. For instance, you can use Tenderly’s simulation infrastructure to protect your users’ assets and provide them with an intuitive, anxiety-free experience. 

Here are a few ways to use simulations within your dapp: 

  • Use Transaction Preview to show transaction outcomes to your users in a human-readable format. By enabling users to see what will happen before actually sending transactions to Mantle, you minimize the risk of errors, unwanted effects, or security issues. This way, you build trust and confidence in your product, ensuring a seamless user experience. 
  • Run your dapp in playground mode to enable frictionless user onboarding. This functionality allows you to run your dapp on top of a Mantle replica with real-time data. By enabling this mode, you allow users to try out your dapp and experiment with DeFi strategies without spending any gas.
🦊
You can use Tenderly TX Preview Snap when approving transactions on Mantle using MetaMask. Set up the Tenderly snap to preview transaction outcomes along with all asset and balance changes to make sure there are no unpleasant surprises once you hit “approve”.

5. Respond to on-chain events without delay

After deploying your dapp to Mantle Network, you should set up an active monitoring system to handle incidents effectively. With Tenderly Alerting and Web3 Actions, you can create an automated incident management system to respond to any potential issue right away.

  • With real-time alerts, you can monitor any event of importance on Mantle Network. After choosing the type of event you want to monitor, it will trigger your alert and send a notification to a channel such as Slack, Telegram, PagerDuty, or even a custom webhook. 
  • With Web3 Actions, you can automatically respond to on-chain events with custom code. You can set up an action as a destination for your alert so it executes your code whenever the set alert is triggered.

Build and scale dapps on Mantle on a full-stack infrastructure

Building on Mantle Network gives you all the benefits of an L2 solution – lower fees, less congestion, and long-term scalability. With Tenderly’s full-stack infrastructure, you can accelerate your development process and go live on Mantle Network faster. 

By using Tenderly’s essential tools and infrastructure, you get more control, flexibility, and insight from development to production. Set up your private Mantle Network replica and start building!