# Testing with Remix

{% hint style="warning" %}
Please note that this guide is meant to serve as a simple way of testing against your newly deployed private EVM or EVM-compatible test network. It is not a detailed integration guide.&#x20;
{% endhint %}

#### Before you begin, please make sure to [add your private network and wallet](https://docs.stealthtest.com/stealthtest-guides/connecting-to-stealthtest-networks/metamask) to Metamask.

#### Quick Smart Contract Deploy & Test

{% hint style="info" %}
**Click** [**this link**](https://remix.ethereum.org/?#code=Ly9TUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogVW5saWNlbnNlCnByYWdtYSBzb2xpZGl0eSBeMC44LjA7Cgpjb250cmFjdCBHcmVldGVyIHsKICAgIHN0cmluZyBwcml2YXRlIGdyZWV0aW5nOwoKICAgIGNvbnN0cnVjdG9yKHN0cmluZyBtZW1vcnkgX2dyZWV0aW5nKSB7CiAgICAgICAgZ3JlZXRpbmcgPSBfZ3JlZXRpbmc7CiAgICB9CgogICAgZnVuY3Rpb24gZ3JlZXQoKSBwdWJsaWMgdmlldyByZXR1cm5zIChzdHJpbmcgbWVtb3J5KSB7CiAgICAgICAgcmV0dXJuIGdyZWV0aW5nOwogICAgfQoKICAgIGZ1bmN0aW9uIHNldEdyZWV0aW5nKHN0cmluZyBtZW1vcnkgX2dyZWV0aW5nKSBwdWJsaWMgewogICAgICAgIGdyZWV0aW5nID0gX2dyZWV0aW5nOwogICAgfQp9Cg\&optimize=false\&runs=200\&evmVersion=null\&version=soljson-v0.8.7+commit.e28d00a7.js) which takes you to Remix with a boilerplate contract loaded up. You do not need to be familiar with Remix but if you want to learn more about it, read [here](https://remix-ide.readthedocs.io/en/latest/).
{% endhint %}

1. Click the button titled **Solidity Compiler** on the side navigation bar
2. Click **Compile**
3. Navigate to the **Deploy and Run Transactions** on the side navigation bar
4. Open the **Environment** dropdown and select `Injected Provider - Metamask`. Directly below that field, you should see `Custom ##### network` where the number is replaced with the chain ID for your private network
5. Verify that the wallet address you are using for testing shows up under the **Account** dropdown
6. Verify that the **Contract** dropdown is displaying the `Greeter` contract
7. Navigate to the `string_greeting` text box and enter a message of your choice (Ex: Hello!) then click **Deploy.** The Metamask extension should open up with a prompt to confirm the transaction.&#x20;
8. Once your contract is deployed, you should see the new contract and address under **Deployed Contracts.** Then expand the contract to reveal the supported functions.&#x20;
9. Click `greet` and you should see your custom message appear directly below

{% hint style="success" %}
Congratulations! You have successfully deployed a simple smart contract to your own private EVM or EVM compatible test network on StealthTest!
{% endhint %}

![](https://2391062109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftln9hCx1JKXPoGd1FusM%2Fuploads%2FS5yus5Kf2d79PasMmeZu%2FETH%20guide%201.png?alt=media\&token=4b6cabf2-a0ec-49a0-b18c-fbf202f5dabd)

![](https://2391062109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftln9hCx1JKXPoGd1FusM%2Fuploads%2FcbhIOHDIRPfbpkHly2hA%2FETH%20docs%202.png?alt=media\&token=da2ae79d-7c97-498e-ba0e-265268ded586)

![](https://2391062109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftln9hCx1JKXPoGd1FusM%2Fuploads%2FF31Zx3PWjQpnCm2Ttvge%2FETH%20guide%203.png?alt=media\&token=d8fe4087-41cc-4cd3-be9f-8eb5781af506)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stealthtest.com/stealthtest-guides/testing-with-remix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
