基于区块链的毕业设计? ETH Basic Typescript Starter – ? ETH基本类型脚本启动程序

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计? ETH Basic Typescript Starter – ? ETH基本类型脚本启动程序 是一篇很好的国外资料

? ETH Basic Typescript Starter

This monorepo should allow you to get started with a simple Greeter smart contract on localhost and Rinkeby in record time with this basic react stack using

  • Typescript
  • NextJS
  • ? Hardhat
  • ? useDapp
  • Tailwind CSS
  • Redux Toolkit
  • Yarn Workspace

Heavily influenced by Scaffold-Eth and the existing Typescript branch. Go ? check it out ? if you haven’t !

Get Started

Clone the project and install dependencies,

git clone https://github.com/nezz0746/typescript-eth-starter.git cd eth-starter yarn install 

Then open 3 separate terminals and run

  1. Start your local node
yarn chain 
  1. Deploy your Greeter contract to your local node with
yarn deploy 
  1. Then start your frontend !
yarn dev 

Finnally, open http://localhost:3000 to see the app.

You frontend should be live on localhost and ready to submit and new setGreeting transaction to the local chain !

Here is what it should look like when launched !

? ETH Basic Typescript Starter - ? ETH基本类型脚本启动程序

Deploy on Rinkeby

To deploy your app on Rinkeby, you’ll first need to populate two environment variables in your .env file, that are used in packages/hardhat/hardhat.config.ts. Checkout Infura it is a suite of tools that make it easy for developpers to deploy things on Ethereum and IPFS. Create a project there, go to Settings and copy the Project ID.

For your private key make sure you use an account you do not have any real funds on and export the private key. As a good practive, never share any ETH account’s private key in your repository. Metamask > (switch to dev accound) > Account details > Export private key

const INFURA_ID = process.env.INFURA_ID; const RINKEBY_PRIVATE_KEY = process.env.RINKEBY_PRIVATE_KEY 

Now after you deploy,

yarn deploy:rinbeky 

your smart contracts should be live on Rinkeby !


? ETH Basic Typescript Starter

This monorepo should allow you to get started with a simple Greeter smart contract on localhost and Rinkeby in record time with this basic react stack using

  • Typescript
  • NextJS
  • ? Hardhat
  • ? useDapp
  • Tailwind CSS
  • Redux Toolkit
  • Yarn Workspace

Heavily influenced by Scaffold-Eth and the existing Typescript branch. Go ? check it out ? if you haven’t !

Get Started

Clone the project and install dependencies,

git clone https://github.com/nezz0746/typescript-eth-starter.git cd eth-starter yarn install 

Then open 3 separate terminals and run

  1. Start your local node
yarn chain 
  1. Deploy your Greeter contract to your local node with
yarn deploy 
  1. Then start your frontend !
yarn dev 

Finnally, open http://localhost:3000 to see the app.

You frontend should be live on localhost and ready to submit and new setGreeting transaction to the local chain !

Here is what it should look like when launched !

? ETH Basic Typescript Starter - ? ETH基本类型脚本启动程序

Deploy on Rinkeby

To deploy your app on Rinkeby, you’ll first need to populate two environment variables in your .env file, that are used in packages/hardhat/hardhat.config.ts. Checkout Infura it is a suite of tools that make it easy for developpers to deploy things on Ethereum and IPFS. Create a project there, go to Settings and copy the Project ID.

For your private key make sure you use an account you do not have any real funds on and export the private key. As a good practive, never share any ETH account’s private key in your repository. Metamask > (switch to dev accound) > Account details > Export private key

const INFURA_ID = process.env.INFURA_ID; const RINKEBY_PRIVATE_KEY = process.env.RINKEBY_PRIVATE_KEY 

Now after you deploy,

yarn deploy:rinbeky 

your smart contracts should be live on Rinkeby !

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23678.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计? ETH Basic Typescript Starter – ? ETH基本类型脚本启动程序

提供最优质的资源集合

立即查看 了解详情