Position: Home page » Ethereum » Ethereum development API

Ethereum development API

Publish: 2021-05-23 05:40:24
1. Go full stack + blockchain course:
a total of 22 weeks, divided into five stages,
the first stage is 4 weeks, go language foundation and network concurrency, learning the introctory go language,
the second stage is 4 weeks, go language practical web development, crawler development, cryptography, consensus algorithm, realizing lightweight public chain, learning the website and crawler that can develop golang, Achieve lightweight blockchain
stage 3, 4-week Ethereum source code analysis and smart contract DAPP development, master Ethereum core and smart contract development, as well as blockchain,
stage 4, 4-week super ledger, bitcoin EOS, source code analysis and smart contract practice, master super ledger development, cat bitcoin, bifurcated EOS after learning, As well as DAPP development of smart contract
phase 5, 6-week project practice, five enterprise level projects, and one year of blockchain project experience after learning
from the characteristics of the language itself, go is a very efficient language, which highly supports concurrency. Go language itself pays more attention to distributed system, and concurrency processing is relatively good, such as advertising and search, That kind of high concurrency server
go language advantages:
excellent performance, can be directly compiled into machine code, does not rely on other libraries, go is extremely fast. Its performance is similar to Java or C + +
concurrency is supported at the language level, which is the biggest feature of go. It is born to support concurrency, and go is the concurrency supported in gene, which can make full use of multi-core and make it easy to use concurrency
the built-in runtime supports garbage collection, which is one of the features of dynamic language. Although GC is not perfect at present, it is enough to cope with most of the situations we can encounter, especially GC after go1.1
it's easy to learn. The authors of go language all have the gene of C, so go naturally has the gene of C. There are 25 go keywords, but the expressive ability is very strong. It almost supports most of the features you've seen in other languages: inheritance, overloading, object, etc
rich standard libraries, go has built a large number of libraries, especially the network library, which is also my favorite part< As like as two peas, br / > built-in powerful tools, Go language is built with many tools chain, the best should be gofmt tools, automatic formatting code, make team review become so simple, code format is exactly the same, it is very difficult to think differently.
cross platform compilation and fast compilation. Compared with the sluggish compilation speed of Java and C + +, the fast compilation time of go is a major efficiency advantage
disadvantages of go language:
package management: package management of go language is absolutely not perfect. By default, it has no way to make a specific version of the dependency library, nor can it create replicable builds. In contrast, python, node and Ruby all have better package management systems. However, with the right tools, the package management of go language can also perform well
lack of development framework: go language does not have a major framework, such as Ruby's rails framework, Python's Django framework or PHP's laravel. This is a heated discussion in the go language community, because many people think that we should not start with using frameworks. This is true in many cases, but if you just want to build a simple crud API, it's much easier to use Django / djrf, rails laravel, or Phoenix
exception handling: go language can help developers deal with compilation errors by simply returning errors (or call stack) through functions and expected calling codes. Although this method is effective, it is easy to lose the scope of the error, so it is difficult to provide meaningful error information to users. Error package can solve this problem by allowing us to add context and stack trace to return error
another problem is that we may forget to handle errors. Static analysis tools such as errcheck and megacheck can avoid these errors. Although these solutions are very effective, they may not be the right way.
2. Eth interface refers to the interface, is the most widely used LAN communication mode, but also a protocol. Ethernet interface is the port of network data connection
each version of Ethernet has a maximum cable length limit (that is, the length without amplification). Signals within this range can propagate normally, and signals beyond this range cannot propagate
in order to allow the construction of a larger network, repeaters can be used to connect multiple cables. Repeater is a physical layer device, which can receive, amplify and retransmit signals in two directions
extended data
several common Ethernet interface types
1. SC optical fiber interface
SC optical fiber interface has been applied in the era of 100base TX Ethernet, so it was called 100base FX at that time (F is the abbreviation of optical fiber). However, at that time, because the performance was not more prominent than twisted pair, but the cost was higher, so it was not popularized. Now the instry vigorously promotes gigabit network, and SC optical fiber interface is re valued
2. RJ-45 interface
this kind of interface is the most common network equipment interface, commonly known as "crystal head", and the professional term is RJ-45 connector, which belongs to the type of twisted pair Ethernet interface. RJ-45 plug can only be inserted along the fixed direction, and a plastic spring piece is set to be stuck with RJ-45 slot to prevent it from falling off
3. FDDI interface
FDDI has the highest transmission rate among the mature LAN technologies. It has the characteristics of timed token protocol, supports a variety of topologies, and its transmission medium is optical fiber. Fiber distributed data interface (FDDI) is a set of protocols developed by American National Organization for Standardization (ANSI) to transmit digital signals on optical cables
reference source: Network Ethernet interface
3. curl方法,file_get_contents,
4.

If you want to query the transaction records on the main network, you can use Etherscan. However, if you build your own private chain, how should you query the transaction records

the answer is that you need to listen to the logs on the chain, save them in the database, and then query them in the database. For example:

< pre t = "code" L = "Java" > varaddr = & quot& quot;< br />varfilter=web3.eth.filter({fromB lock:0 ,toBlock:' latest', address:addr });< br />filter.get(function(err,transactions){
transactions.forEach(function(tx){
vartxInfo=web3.eth.getTransaction(tx.transactionHash);
/ / at this time, the transaction information txinfo can be stored in the database
})< br />});

Web3. Eth. Filter() is used to monitor the log on the chain, and Web3. Eth. Gettransaction() is used to extract the information of the specified transaction. Once the transaction information is obtained, it can be stored in the database for query

recommend a practical introction, you can see: Ethereum tutorial

5. Through curl to simulate, and then get the data, and use it in JSON format
6.

Take a blockchain API tool that I am currently using as an example

previously, I occasionally found bctools , which can quickly and conveniently test and verify BTC and EOS blockchain API. At the same time, these API interface test network and main network can be verified on bctools ; If you are interested, you can go http://bctools.io Use it

at present, Apis on bctools seem to have the following types:

7.

Ethereum specifies the JSON RPC API application development interface that each node needs to implement. This interface is transport independent. Applications can use this interface protocol to operate Ethereum nodes through HTTP, websocket or IPC and other communication mechanisms:

8. No, these three are not compatible with each other and each has its own purpose
choose your own direction
the cost of developing an interface is not so high. Except for EOS, there is not much data to be chained, which is basically completed locally. As a top blockchain technology developer in China, weisanyun is still a good technology developer.
9.

After reading the answers of other respondents, I really want to laugh. It's not terrible to pretend that I don't understand. What's terrible is to answer blindly. There's something wrong with this question. The burst of 5.7 billion yuan has nothing to do with a drop of 10 cents. It can even be said that its disappearance is e to the sharp rise. So where is the decline? If bitcoin really falls, it will not be 5.7 billion capital washed away, it will be tens of billions, hundreds of billions of capital evaporated, those who talk about trends and development, please study the capital and stock market well, and by the way, please search for the meaning of the word "burst", no culture is too terrible

in addition, I would like to make a digression. Recently, a hot topic is fund. In 2021, the annual meeting is more or less a national fund. In 2020, the fund manager is still a good active fund. Even if the position is not changed, the annual yield will reach at least 40%, but this does not mean that this year is still OK, It's not that everyone can make money playing with funds. it's similar to the nature of stocks. Index funds, stock funds and even active funds are risky. I think many people say that they should get on the bus quickly. They are really worried about your funds

of course, 2021 may be a bull market. It is estimated that the whole network has spread, many people are rubbing their hands to make a lot of money, but I can't do much. I just advise you not to go with the flow too much, don't be greedy, and don't think you are. That's all. Good luck

10. No, the road printing protocol needs to be supported by a token API mechanism similar to erc20 and a blockchain smart contract to operate normally.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750