---
description: Learn how to use the gas simulation.
---

# Simulation

This is the most advanced gas fee estimation feature, which can be accessed with <mark style="color:purple;">/gas simulation</mark>. It allows you run a simulation of a transaction through any function of any contract on the Ethereum blockchain.

### Select a contract & function

To get started, simply enter any ethereum contract. The bot will return information about the contract's functions, including their number, the notable ones and more. In addition to this, the bot will return a drop-down list of the contract's writable functions. Simply select the functions you would like to simulate.

<figure><img src="https://1616862119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVrXrwbzdXe3320u9fD1%2Fuploads%2F4g4HwognrqeQaIe9GyOX%2Fyy%201.png?alt=media&#x26;token=302c0b0c-c470-4c19-95d8-2d052e83a359" alt="" width="563"><figcaption></figcaption></figure>

### Enter your inputs

Once you select a function, the bot will ask you to enter the required parameters. When done, confirm your inputs. Each field describes the parameter to enter, make sure to fill in the fields according to the bot indications. Once you've completed the form, just confirm.

<figure><img src="https://1616862119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVrXrwbzdXe3320u9fD1%2Fuploads%2Fu508GmoWanWFH0GS2rRs%2Fuu.png?alt=media&#x26;token=3a301742-4eb6-4e60-b755-00de7222cecd" alt="" width="375"><figcaption></figcaption></figure>

_Please note that the bot can only simulate writeable functions with up to five parameters._&#x20;

### Transaction simulation

The bot will return a complete simulation of the function's execution. The result includes the current gas price, the number of gas units used for the transaction and the estimated gas price paid. In addition, the bot returns the encoded date used for the simulated transaction. These data can be used to replicate the exact same transaction.

<figure><img src="https://1616862119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVrXrwbzdXe3320u9fD1%2Fuploads%2FnbodFOVvTs0vm8JhMLH1%2Feeeeee.png?alt=media&#x26;token=bf7dbc82-5624-4c4b-a773-4835e509c246" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Please note that the use of encoded data is reserved for people who have mastered the basics of contract reading. If this is not your case, use apps like Metamask etc.
{% endhint %}
