Go to file
2023-05-07 19:15:00 +08:00
docs transfer ERC-20 token 2023-05-07 19:15:00 +08:00
public transfer ERC-20 token 2023-05-07 19:15:00 +08:00
src transfer ERC-20 token 2023-05-07 19:15:00 +08:00
index.html transfer ERC-20 token 2023-05-07 19:15:00 +08:00
package-lock.json transfer ERC-20 token 2023-05-07 19:15:00 +08:00
package.json transfer ERC-20 token 2023-05-07 19:15:00 +08:00
README.md transfer ERC-20 token 2023-05-07 19:15:00 +08:00
vite.config.js transfer ERC-20 token 2023-05-07 19:15:00 +08:00

Faucet Webpage

A simple webpage for Sepolia Testnet's faucet.

It's HW1 for 1112 NCNU CSIE "Principles and Practice of Blockchains"

link to Metamask and create a transaction to the smart contract to get SepoliaETH.

Project Setup

npm install

fill in your smart contract's address

cp .env.example .env
vim .env
'''
VITE_BANK_ADDR = "YOUR BANK ADDRESS"
'''

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Notice

Now, I am not sure of difference between window.ethereum & web3

I use window.ethereum to send transaction, check accounts, check network and use web3 to encode ABI.

I am not sure whether it's a suitable implementation