Usage – 用法区块链源码资料下载

本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Usage – 用法区块链源码资料下载 是一篇很好的国外资料

Usage

  • Go to https://datahighway.herokuapp.com
  • Choose faucet:
    • Ropsten Testnet ETH
    • MXC ERC-20 tokens
  • Enter Ethereum Address to receive
  • Click Submit

Note: Faucet only works when:

  • Requestor’s Ropsten ETH balance < 1 MXC
  • Requestor’s Ropsten MXC ERC-20 token balance < 1 MXC
  • Faucet’s Ropsten ETH balance > 0.01 ETH
  • Faucet’s Ropsten MXC ERC-20 token balance > 0.01 MXC
  • Requestor’s Ethereum address that is not a smart contract, otherwise out of gas error may occur, since only a limited gas price has been catered for.

Development

  • Install dependencies and run server and front-end.
nvm use; yarn global add nodemon; DEBUG=app yarn dev; 
  • Go to http://localhost:3000
  • Enter your Ethereum address to receive either Ropsten Testnet ETH or MXC ERC-20 tokens

Maintenance

Deploy (Heroku)

heroku login heroku apps:create datahighway git push -f heroku master 

Set Heroku Environment Variables to match the contents of the .env file. Replace missing values below:

heroku config:set    ETHEREUM_ADDRESS=0x    MNENOMIC=""    INFURA_API_PROJECT_ID=""    CONTRACT_ADDRESS_MXC_TESTNET=0x7d3037fa9f8f253e4e7fc930f0a299cbd6eac349    MNENOMIC_DATAHIGHWAY="bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice"    HARBOUR_DHX_CUSTOM_TYPES_UR=https://raw.githubusercontent.com/DataHighway-DHX/node/master/custom_types.json 

Open the production website

heroku open 

Debug

heroku ps:scale web=1:free heroku ps:scale web=2:standard-2x heroku ps heroku open heroku logs --tail heroku restart heroku ps:stop web 

References

  • https://www.freecodecamp.org/news/how-to-make-create-react-app-work-with-a-node-backend-api-7c5c48acb1b0/
  • https://github.com/w3f/faucet-bot
  • https://zellwk.com/blog/async-await-express/

点我下载区块链相关代码


用法

  • 转到https://datahighway.herokuapp.com网站
  • 选择水龙头:Ropsten Testnet ETH MXC ERC-20令牌ETH
  • 单击提交
  • 请求者的Ropsten ETH余额&lt;1 MXC

注意:水龙头仅在以下情况下工作:

  • 请求者的Ropsten MXC ERC-20令牌余额&lt;1 MXC
  • 水龙头的Ropsten ETH余额&gt;0.01 ETH
  • 水龙头的Ropsten MXC ERC-20令牌余额&gt;0.01 MXC
  • 请求方的以太坊eth地址,该地址不是智能合约,否则可能会发生缺气错误,因为只满足了有限的天然气价格。
  • 安装依赖项并运行服务器和前端。

开发

  • 转到http://localhost/本地主机:3000
nvm use; yarn global add nodemon; DEBUG=app yarn dev; 
  • 输入以太坊eth地址以接收Ropsten Testnet ETH或MXC ERC-20令牌
  • https://www.freecodecamp.org/news/how-to-make-create-react-app-work-with-a-node-backend-api-7c5c48acb1b0/

维护

部署(Heroku)

heroku login heroku apps:create datahighway git push -f heroku master 

设置Heroku环境变量以匹配.env文件的内容。替换下面缺少的值:

heroku config:set    ETHEREUM_ADDRESS=0x    MNENOMIC=""    INFURA_API_PROJECT_ID=""    CONTRACT_ADDRESS_MXC_TESTNET=0x7d3037fa9f8f253e4e7fc930f0a299cbd6eac349    MNENOMIC_DATAHIGHWAY="bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice"    HARBOUR_DHX_CUSTOM_TYPES_UR=https://raw.githubusercontent.com/DataHighway-DHX/node/master/custom_types.json 

打开生产网站

heroku open 

调试

heroku ps:scale web=1:free heroku ps:scale web=2:standard-2x heroku ps heroku open heroku logs --tail heroku restart heroku ps:stop web 

参考

  • https://github.com/w3f/faucet-bot
  • https://zellwk.com/blog/async-await-express/在
  • https://zellwk.com/blog/async-await-express/

点我下载区块链相关代码

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Usage – 用法区块链源码资料下载

提供最优质的资源集合

立即查看 了解详情