# Contract deployment - Hardhat

In this comprehensive guide, we'll walk you through the process of deploying your very first smart contract using Hardhat and mastering the art of interaction through SwisstronikJS scripts `sendShieldedQuery` and `sendShieldedTransaction`

{% hint style="info" %}
The full repository for this tutorial can be found here <https://github.com/SigmaGmbH/swisstronik-tutorials/tree/main/Contract_deployment%20_hardhat>
{% endhint %}

### 📜 **Overview: What's Inside?**

In this section, you'll find everything you need to confidently deploy and interact with smart contracts using Hardhat:

1. **Environment Setup**: Quickly get ready with Hardhat. We'll show you how step by step.
2. **Your Network in `hardhat.config.js`**: Customize for Swisstronik. Learn to use `hardhat.config.js` for network setup.
3. **Smart Contracts**: Create a contract in Solidity to set and retrieve messages.
4. **Deploy Contracts**: Deploy your smart contract into the Swisstronik blockchain
5. **Transactions**: Execute a transaction to set a message in the smart contract using `sendShieldedTransaction`
6. **Calls**: Talk to your deployed smart contract. Retrieve the message using `sendShieldedQuery`


---

# 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.swisstronik.com/swisstronik-docs/development/guides/contract-deployment-hardhat.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.
