Hardhat for deploying and interacting with ERC-721 contracts (NFT) on the Swisstronik Testnet.
Ensure you have the following installed:
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/frankrichardhall/Swisstronik-ERC721.git cd Swisstronik-ERC721
-
Make the setup script executable and run it:
chmod +x ERC721.sh
./ERC721.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.
- 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.