This project sets up a Hardhat environment to deploy and interact with an ERC-721 (NFT) contract and makes it private, 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/dante4rt/swisstronik-private-erc721.git cd swisstronik-private-erc721
-
Make the setup script executable and run it:
chmod +x private.sh ./private.sh
-
Follow the prompts to enter your private key and NFT details.
The script will:
- Install necessary dependencies.
- Create a Hardhat project.
- Configure the Hardhat environment.
- Create and compile an ERC-721 contract, and its private.
- 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.