cloudflare/cfweb3
关于
The contract offers 2048 tokens which can be minted via the frontend Svelte application. The entire app runs on the Rinkeby test network.
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文CFWeb3
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.
Demo
A live version of this demo app can be found at cf-web3.pages.dev.
Building locally
- Clone the repo with
git clone [email protected]:cloudflare/cfweb3.git - npm install in
contractandfrontendwith:
cd cfweb3/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
Adding funds to your Metamask test account
- 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).
探索相关项目
加载中…