# Setup Hardhat on Swisstronik Network

After successfully setting up your Hardhat project, the next step is to configure the hardhat.config.js file. This will be the essential configuration file where you can customize the networks, plugins, compiler settings, and more.&#x20;

1. Open the `hardhat.config.js` file

<figure><img src="/files/xYusrwiQ3sHNZ7gqSNzA" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For the scope of this tutorial, we will only configure the **networks**, leaving the solidity compiler at its default version 0.8.19.
{% endhint %}

2. Setup the Swisstronik's network

```
require("@nomicfoundation/hardhat-toolbox");

module.exports = {
  solidity: "0.8.19",
  networks: {
    swisstronik: {
      url: "https://json-rpc.testnet.swisstronik.com/", //URL of the RPC node for Swisstronik.
      accounts: ["0xd5..."], //Your private key starting with "0x" 
      //Make sure you have enough funds in this wallet to deploy the smart contract
    },
  },
};
```

{% hint style="warning" %}
Make sure you have enough funds in this wallet to deploy/interact with the smart contract. otherwise, you can [get SWTR test tokens here](broken://pages/CncfQNTEeNhjLT843y9B)
{% endhint %}


---

# 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.logosnodos.online/solidity-compiler/hardhat/setup-hardhat-on-swisstronik-network.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.
