Contract deployment - Hardhat
Last updated
Last updated
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
In this section, you'll find everything you need to confidently deploy and interact with smart contracts using Hardhat:
Environment Setup: Quickly get ready with Hardhat. We'll show you how step by step.
Your Network in hardhat.config.js
: Customize for Swisstronik. Learn to use hardhat.config.js
for network setup.
Smart Contracts: Create a contract in Solidity to set and retrieve messages.
Deploy Contracts: Deploy your smart contract into the Swisstronik blockchain
Transactions: Execute a transaction to set a message in the smart contract using sendShieldedTransaction
Calls: Talk to your deployed smart contract. Retrieve the message using sendShieldedQuery