APACHE-2.0 License
CFWeb3 is a Web3 demo application. It uses Hardhat and Solidity to create an Ethereum smart contract. This code is a proof-of-concept showing how to build Web3 applications with Cloudflare, and should not be used as a production example.
The contract offers 2048 tokens which can be minted via the frontend Svelte application. The entire app runs on the Rinkeby test network.
A live version of this demo app can be found at cf-web3.pages.dev.
git clone [email protected]:cloudflare/cfweb3.git
contract
and frontend
with:cd cfweb3/contract
npm install
cd ../frontend
npm install
contract
directory and run:dapk="YOUR_PRIVATE_KEY" npx hardhat node
frontend
directory and run:npm run dev
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).