This project sets up a Hardhat environment to deploy and interact with an ERC-721 (NFT) contract on the Swisstronik testnet. Follow the steps below to get started.
Ensure you have the following installed:
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/rmndkyl/swisstronik-erc-721.git cd swisstronik-erc-721
-
Make the setup script executable and run it:
chmod +x erc721.sh && sed -i 's/\r$//' erc721.sh && ./erc721.sh
-
Follow the prompts to enter your private key and NFT details.
-
After everything is complete, push your files with:
git add . && git commit -m "feat: initiated the project" && git push origin main
The script will:
- Install necessary dependencies.
- Create a Hardhat project.
- Configure the Hardhat environment.
- Create and compile an ERC-721 contract.
- Deploy the contract to the Swisstronik testnet.
- Mint an NFT using the deployed contract.
- The contract address will be saved in
contract.txt
. - The transaction hash for the minting process will be printed in the terminal.
For any issues or inquiries, please reach out via Telegram.