从零开始学区块链之初识dapp开发

资讯 2024-07-11 阅读:54 评论:0
app大家熟悉吧。就是我们常用的各种应用。那 d是什么呢&#...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

app大家熟悉吧。就是我们常用的各种应用。那 d是什么呢?区块链的去中心化特性大家应该是熟悉的,那去中心化用英语怎么说?decentralization 就是了。按照惯例,取个首字母加上去,就成了DApp,即去中心化应用

That's what we usually use. That's what d is xff1f; the decentralisation of the block chain is supposed to be familiar xff0c; that's what decentralisation says in English xff1f; decentralization is. As usual xff0c; take a first letter and go xff0c; that's Dappxff0c; decentralize application.

你现在手机上的app能干嘛,从理论上基本都可以。但是对交易速度有要求的就不太合适了,毕竟区块链的一个特性就是速度慢

What can you do with your app on your cell phone?

DApp的整体框架
在这里插入图片描述
整个看来,架构有三大部分

DApp's overall framework
, text_Q1NETIBATWUTmlb1FpbkZlbg= #61; #61; size_20,collor_FFUN, t_70,g_se,x_16#pic_center 'alt'.

1、区块链以及本身提供的能力

1. Block chains and the capabilities they provide

2、三方钱包等提供的能力

2. Capacity provided by the Triangular Wallet, etc.

3、我们要写的DApp部分

Three. We're going to write the Dapp section.

前两部分,不需要我们参与开发,我们能做的,最多就是选择用哪个。但是第三部分就不一样了,这个才是我们的主战场

The first two parts xff0c; we don't need to be involved in the development of xff0c; what we can do xff0c; the most we can do is choose which one. But the third part is different xff0c; this is our main battleground.

从我们开发的Dapp来说,也可以分为三层

From the Dapp we've developed, #xff0c; it can also be divided into three layers.

1、和EVM交互的合约层

1. Contract layer interacting with EVM

2、和合约层、钱包交互的交互库

2. Interactive library with contract layers and wallets

3、做业务的业务层,该层会和用户以及第二层交互

3. Business level & #xff0c; this level interacts with users and second level

技术选型
1、链用的是ETH

Technical choice
1 with ETH in the chain

2、钱包使用了MetaMask,这是一个比较完善的钱包了

2. The wallet uses MetaMask, it's a better wallet.

3、合约层用的是solidity

Three. The contract floor is for solidity.

4、交互库 用的比较多的是web3js

4. The interactive library uses a lot of web3js.

5、业务层框架的话,就看自己喜欢用什么了,vue、react 都是OK的

#xff0c; depends on what you like #xff0c; vue, react are OK

为了做开发,那一定是要有一个开发环境的。

To develop xff0c; that must have a development environment.

到DApp的开发中来说,4、5是前端的知识,这个部分自己去解决,默认大家都懂了;

xff0c for Dapp development; xff0c; xff0c for knowledge at the front end; xff0c for this part itself; xff0c for which everyone understands xff1b;

那我们现在要解决的就是模拟链(毕竟真链上的操作都是要花钱的)、钱包和合约的问题测试环境

So what we're dealing with now is a simulation chain #xff08; after all, the real chain is a cost-effective testing environment #xff09; wallets and contracts.

1、链的模拟的话,我们可以用ganache

1. Simulation of the chain #xff0c; we can use ganache

2、钱包用MetaMask

2. Wallet for MetaMask

3、solidity既然是一个编程语言,并且要跑在EVM上,那就有 编写、编译、测试和调试的地方,这里推荐使用remix

3-Solidity is a programming language & #xff0c; running on EVM & #xff0c; there are places to write, compile, test and debugger & #xff0c; remix is recommended here

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 区块链社区有哪些?区块链社区是什么?

    区块链社区有哪些?区块链社区是什么?
    展开全文...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
  • 2018-5-31币圈简报

    2018-5-31币圈简报
    一、要闻资讯类I. KEY INFORMATION CATEGORY1、央视:数字货币在京揭牌成立!中国或为此突变!1. View: Digital currency is established in Kyoto! China or mutated for it!中国数字货币来了˂a href="https://mp.weixin.qq.com/s/69fxKCf8GKSCscS4lT8WCA" Target="_blank"rel="noformlow"" Chinese...
标签列表