This is a Web3 application. It uses Svelte as web frontend. It uses Hardhat and Solidity to create an Ethereum smart contract.
The contract offers tokens which can be minted via the frontend Svelte application. The entire app runs on Ethereum main network as well as the Rinkeby test network.
Frontend app can be found at erc1155.online.
- Clone the repo
- npm install in
contractandfrontendwith:
cd contract
npm install
cd ../frontend
npm install- Install Metamask, switch to the testnet and add funds (instructions below)
- Click on Metamask and then on the hamburger icon in the top right
- Click on "Account details"
- Click on "Export Private Key"
- Enter Metamask password
- Copy your private key
- In one terminal window, move into the
contractdirectory and run:
dapk="YOUR_PRIVATE_KEY" npx hardhat node- In a different terminal window, move into the
frontenddirectory and run:
npm run dev- Install Metamask
- Switch Metamask to the Rinkeby test network
-
Copy your Rinkeby account wallet address.
-
Go to the Rinkeby faucet
-
Post a Tweet or a Facebook status with your Rinkeby wallet address.
-
Enter the URL of your Tweet or Facebook post on the faucet website.
-
Claim the amount you want.
-
Delete the social media post (optional).
