---
description: Simple guide with examples to check methoids from a contract
---

# Find Mempool methodId from network scanners

{% hint style="warning" %}
The transactions for adding or removing liquidity (add Liquidity etc ...) are sent to the Router address.&#x20;

While enable trading transactions (TradingEnabled, EnableTrading etc ...) are sent to the token address.
{% endhint %}

The bot can scan either on the router address or on the token address.

Depending on the transaction you are looking for, you will need to select Trading enabled or addingliquidity. After that you will have to enter the methoids in the corresponding field.

## How to find MethoId for Enable Trading

First of all search for the token in the reference scanner (bscsca, etherscan etc ...)

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FPH6RN4YosNHzUhwsIQVB%2Fbscscan%20insert%20address.png?alt=media&#x26;token=0fa99737-43e2-4368-9ed6-afc73c00dbba" alt=""><figcaption><p>Search a token by token address</p></figcaption></figure>

Than click on Contract -> Write Contract

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FUYgdXRWmoZfgHeTpsWp3%2Fclick%20on%20contract.png?alt=media&#x26;token=614cf6cb-92a2-483d-9f09-949d5ddd1856" alt=""><figcaption><p>Click on Contract, than on Write Contract</p></figcaption></figure>

Now look for the name of the method which appears to be to enable trading (or whatever other method you want to intercept)

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FTPIm4kJWl8rizGrvnTz2%2Fcheck%20functions%20names.png?alt=media&#x26;token=d208c314-51ad-4d8e-89f4-f3e138593455" alt=""><figcaption><p>Search for the method</p></figcaption></figure>



Now go back and click on CODE

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2F0T3xdQM6vNdy9ZAkFwTi%2Fclick%20on%20code.png?alt=media&#x26;token=5394e093-6ffb-45d7-96af-1a086a448b38" alt=""><figcaption><p>Click on code</p></figcaption></figure>

From the Contract source code window, click anywhere within the code. Press CTRL + F (to search) and enter the name of the method you found earlier. In our case, setSwapEnabled

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FlwQVSEFnWqszBFMWFMLe%2FContract%20source%20code.png?alt=media&#x26;token=ba47eed5-619c-4a22-8fa4-64e64f6d14e4" alt=""><figcaption><p>Search the method in the source code</p></figcaption></figure>

Now you have to copy the name of the function in full, taking care not to copy empty spaces before or after the name itself, but in any case also copying the parameters that are in the brackets

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2F0tmeBkwgBQyB0K0id4bA%2FContract%20%20source%20code%20selection.png?alt=media&#x26;token=fbe9b8e2-517d-46b9-abd5-745267feae8f" alt=""><figcaption><p>Copy the function name with its arguments brackets included</p></figcaption></figure>

Now go to this site and paste the function name with the respective parameters and brackets

{% embed url="https://piyolab.github.io/playground/ethereum/getEncodedFunctionSignature/" %}

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FI9LXa2MBOBjQuQOP4XWz%2Fmethodid.png?alt=media&#x26;token=55a90552-1d25-4b04-abbe-0c001862262f" alt=""><figcaption><p>This is your methoId</p></figcaption></figure>

The result will be the methoid you need to use in the bot!
