对于入门开发者来讲,etherscan 还是一个查阅、学习以太坊上合约的利器。
For an entry developer, etherscan is also a powerful tool for accessing and learning
以太坊是当前除了比特币以外,最知名的公链,其生态极其丰富,被称为区块链2.0的代表。 It is the most well-known public chain in the world, except for Bitcoin, which is ecologically rich and is known as the block chain 2.0 representative. 那么,对于这样一个公链,我们除了阅读其白皮书、黄皮书外,还有哪些了解其的方式呢? What, then, do we know about such a public chain in addition to reading its white and yellow books? 这里,我就为大家介绍一下etherscan这款工具,etherscan是以太坊官方支持的区块链浏览器。通过它,我们不但可以查询以太坊本身的一些数据,还可以查看所有基于以太坊发行的代币的转移路线、持有者、交易量和合同等。 Here, I would like to introduce this tool, ethscan, which is . Through it, we can not only look at some of the data from Taishu itself, but also at all the transfer routes, holders, transactions, contracts, etc. based on the proxies issued in Tails. 因此,对于以太坊爱好者来讲,etherscan是一款必备的查询工具,同时也是小白了解以太坊的入门途径之一。 Thus, for Ethercan fans, it is a necessary search tool, as well as one of the first ways to learn about Ether. etherscan网址:https://cn.etherscan.com 查看以太坊网络 views Etheria Network 进入到etherscan后,首页显示的就是我们当前的以太坊网络的概览,通过这些数据我们可以了解到当前以太坊网络的大致运行情况。 When we enter the etherscan, the front page shows an overview of our current Etherms network, which provides us with an overview of the current operation of the etherms network. ETHER PRICE是当前以太坊的价格,目前是396.92美元,后面的0.03352 BTC 则代表的是当前一个以太可以兑换成多少比特币。 ETHER PRICE is currently available at a cost of US$ 396.92, while the latter 0.03352 BTC represents the current amount of bitcoins that can be converted into bitcoins. TRANSACTIONS指的是全网一共产生的交易笔数,15.3TPS则代表目前以太坊网络每秒可以处理15.3笔交易,SAFE GAS PRICE是目前以太坊网络的转账手续费。 TRANSACTIONS refers to the total number of transactions generated across the network, while 15.3 TPS represents the 15.3 transactions that can be processed every second in the current Taiye network, and SAFE GAS PRICE is the transfer fee for the current Taiye network. MARKET CAP是指目前以太坊的总市值,DIFFICULTY则是目前的平均挖矿难度。当然,随着后续eth2.0的到来,POW挖矿将会变迁为POS挖矿,届时挖矿难度就不再存在了。 MARKET CAP refers to the current overall market value of the Taiku, and DIFFICILTY is the current average difficulty of mining. Of course, with the arrival of the follow-on Eth 2.0, Pow mining will be converted to POS mining, and the difficulty of mining will no longer exist. MARKET CAP旁边的HASH RATE指的则是全网算力,点开它,我们还可以看到以太坊网络全网算力的历史情况。 The HASH RATE next to MARKET CAP refers to the full web count, and we can see the history of the full web count of the e-Taiwan network. Blocks与Transactions查询 Blocks and Transactions> 再往下的两块Latest Blocks与Lastes Transactions则分别是最近刚刚生成的区块与交易。 The next two Latest Blocks and Lastes Transports are, respectively, recently created blocks and transactions. Blocks这边,10611985这些数字代表的是区块高度,Miner 后面的则是挖出这个区块的人。 On the Blocks side, the numbers 10611985 represent the height of the block, followed by the people who dug it out. 当然,目前参与挖矿已经全是矿池了,很难再有个人挖出新区块,这里的则是Spark这个矿池挖出的10611985区块,2.94472eth则代表挖这个区块所获得区块奖励。 It is, of course, very difficult for a person to dig out a new block of 1061 1985, which was dug out by the Spark pond, and 2.94472eth, which represents a block incentive to dig it. 除此之外,我们还可以点进去查看这个区块的详情。 In addition to that, we can go in and see the details of the block. 从详情里我们可以看到例如时间戳(Timestamp)、详细的区块链奖励数据(Block Reward与Uncles Reward)、Size、Gas Used、Gas Limit等额外数据。 From the details, we can see, for example, Timestamp, detailed block chain incentive data (Block Reward and Uncles Reward), Size, GasUsed, Gas Limited, etc. 这其中的概念都不算难理解,看不懂的也可以点击文字左边的问号,etherscan提供了详细的解释。 None of these concepts is difficult to understand, either by clicking on the question mark on the left side of the text, or by providing a detailed explanation. 同样,对于Transaction这边,我们也可以去查看每笔交易详细的数据。 Similarly, for Transaction, we can also look at the details of each transaction. 例如上图这笔交易,就显示了交易哈希、Status(Succes表示交易已确认成功)、所属的Block、转入地址和转出地址以及时间戳等信息。 The above figure, for example, shows such information as the transactions Hashi, Status (Succes indicating that the transaction was confirmed to have been successful), the belonging Block, the transfer address and the outlet address, and the time stamp. 最后,如果我们想要查询具体的某交易、某区块、某地址的详细信息,也可以直接通过首页的搜索栏进行搜索。 Finally, we can also search directly through the search field on the front page if we want details about a particular transaction, a block, an address. 基于以太坊发行的TOKEN based on Token released by Ethio 除了通过etherscan查询以太坊网络的当前数据外,查询基于以太坊发行的代币信息也是我们常用的功能。 In addition to searching for the current data from the Ethercan network, searching for information based on money released by Ethercan is also a common feature. 在以太坊网络上发行的代币,主要是有两种,一种是ERC—20 Tokens,一种是ERC-721 Tokens。 There are two main tokens issued on the Ethernonet: ERC-20 Tokens and ERC-721 Tokens. ERC-20 Token是同质化代币,与我们平时接触的比特币、莱特币这些一样,每一枚Token都一样,没有什么区别。 ERC-20 Token is a homogenous token, which, like the bitcoin and the Lightcoin that we usually touch, is the same as every Token. ERC-721 Token则是非同质化代币(NFT),例如此前爆火的加密猫就是这类,他们的特点是每一个Token都是独一无二的。 ERC-721 Token is a non-homogenous monetic (NFT), as in the case of previously-fired cryptocats, which are unique to every Token. 下面我们就来通过etherscan看看目前以太坊网络上都有哪些ERC-20 Token与ERC-721 Token。 Let's look at what Etherscan has on the current Etheria network. 在首页我们点击Tokens,就可以看到ERC-20 与ERC-721 ,我们以ERC20 Top Tokens为例。 On the front page, we click on Tokens, and we see ERC-20 and ERC-721, for example, ERC20 Top Tokens. 从排行里,相信大家看到了很多知名的代币,比如最近特别火爆的LINK,再比如国人常用的USDT,还有币安发行的BNB。 From the ranks, it is believed that there are many well-known tokens, such as the recent particularly hot LINK, the USDT commonly used by the nation, and the BNB issued by the currency. 然后点开某个Token后就可以看到这个Token当前的详情了,这里我们以USDT为例。 And then you can see the current details of Token when you click on one of the Tokens, and here we use the USDT, for example. 从页面里,我们可以看到基于以太坊发行的usdt的概览信息,例如当前的价格、市值、总发行量、持有者数量、部署的合约地址以及其官网等数据。 From the page, we can see overview information based on usdt, which is distributed in the Taiku, such as current prices, market value, total circulation, number of holders, the location of the contract where it is deployed, and its network of officers. 下方的几大功能区则可以方便我们查询usdt的交易数据、持有者数据、该智能合约提供的功能等信息。 Some of the main functional areas below provide us with easy access to the transactional data of usdt, the owner's data, the functionality provided by the smart contract, etc. 查阅部署在以太坊上的合约 consults the contract deployed at Etheria 对于入门开发者来讲,etherscan 还是一个查阅、学习以太坊上合约的利器。 For an entry developer, estherscan is also a tool to access and study the contracts of the Etherms. 简单的,例如 Token 合约的查询,可以直接在 Token 的页面里,点击 Contract 后的合约地址就可以直接跳转到该 Token 的合约详情页面里。 Simple, such as a Token contract query, can go directly to the Token page and click on the post-contract contract address to jump directly to the Token contract details page. 这里我们是以目前非常火爆的预言机项目 ChainLink 为例,进入合约详情页面后,我们可以看到该合约的基本信息,如部署者、交易信息等。 Here, for example, we can see the basic information about the contract, such as deployments, transactions, etc., after entering the details page of the contract. 而在下方的 Contract 里,我们则是可以看到合约的名字、使用的 solidity 版本以及代码内容等,并且,点击 Read Contract ,我们还可以在线使用合约中的功能。 At the bottom of the Contractor, we can see the name of the contract, the version of the contract used and the code content, and, by clicking on Read Contractor, we can also use the functions in the contract online. 此外,在合约源码的下方,我们还可以查阅到该合约的 abi 。 In addition, we have access to the contract abe below the contract source code. 不过,Token 的合约内容基本都大相径庭,合约的内容主要是定义 Token 、实现转账功能、实现查询账户功能等常见的交易相关内容。 However, the contract content of Token is substantially different, with the contract content mainly defining the transaction-related elements that are common, such as the Token function, the transfer function and the query account function. 而如果我们想去查看更多、更多样复杂的合约,就需要我们手动搜素了。搜索的方式也非常的简单,在搜索框中输入合约地址即可查询到该合约的详情。 And if we want to see more and more complex contracts, we need to search them manually. 这里也为大家附上一些经典的合约的库地址,方便大家学习。 Here you can also attach some of the classic contracts' library addresses to make it easier for you to learn. 预言机类: Prophecy type: - ChainLink:https://github.com/smartcontractkit/chainlink 稳定币类: Stable currency class: - Dai:https://github.com/makerdao/dss 借贷类: Loan type: - Compound:https://github.com/compound-finance/compound-protocol 其他功能 Other functions 最后,etherscan 还提供给了我们一些直观的可视化数据统计。 Finally, etherscan also provides us some visualized statistics. 在 Charts & Statistics 页面里我们看到市值曲线、以太价格曲线、交易量曲线、地址数量曲线等等。 On the Charts & #038; Statistics page, we see market value curves, too-price curves, trade volume curves, number of addresses, etc. 在 Top Statistics 里我们还可以看到不同的排行榜数据,比如矿工排名、Gas 使用排名等等。 We can also see different ranking data in Top Statistics, such as miners' rankings, Gas' use of rankings, etc. 总体来说,通过etherscan这款工具,我们可以简单的了解到以太坊网络以及基于其发行的代币的基本情况,其不仅是用户用于查询的利器,同时也是小白入门以太坊的最佳了解途径。 In general, through this tool, ethscan, we can simply understand the basics of the Ethernonet and the money it issues, not only as a sharp tool for users to access, but also as the best way to get to know the Tails. 来源:星球日报 Source: Daily Planet.
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论