Ethereum's RPC package
Publish: 2021-04-26 07:18:35
1. At the top of Ethereum is DAPP. It exchanges with the smart contract layer through Web3. JS. All smart contracts run on EVM (Ethereum virtual machine) and use RPC calls. Below EVM and RPC are the four core contents of Ethereum, including: blockchain, consensus algorithm, mining and network layer. Except DAPP, all other parts are in the Ethereum client. The most popular Ethereum client is geth (go Ethereum)
2. How to run Ethereum source code go Ethereum
install MIPS based Linux header file
$CD $prjroot / kernel
$tar - xjvf linux-2.6.38. Tar. Bz2
$CD linux-2.6.38
create an include folder under the specified path to store related header files< br />$ mkdir -p $TARGET_ Prefix / include
ensures that the Linux source code is clean
$make mrproper
generates the required header file< br />$ make ARCH=mips headers_ check
$ make ARCH=mips INSTALL_ HDR_ PATH=dest headers_ Install
all the files in dest folder to the specified include folder< br />$ cp -rv dest/include/* $TARGET_ Prefix / include
delete dest folder at last
$RM - RF dest
$LS - L $target_ PREFIX/include
install MIPS based Linux header file
$CD $prjroot / kernel
$tar - xjvf linux-2.6.38. Tar. Bz2
$CD linux-2.6.38
create an include folder under the specified path to store related header files< br />$ mkdir -p $TARGET_ Prefix / include
ensures that the Linux source code is clean
$make mrproper
generates the required header file< br />$ make ARCH=mips headers_ check
$ make ARCH=mips INSTALL_ HDR_ PATH=dest headers_ Install
all the files in dest folder to the specified include folder< br />$ cp -rv dest/include/* $TARGET_ Prefix / include
delete dest folder at last
$RM - RF dest
$LS - L $target_ PREFIX/include
3.
transactions.forEach(function(tx){
vartxInfo=web3.eth.getTransaction(tx.transactionHash);
/ / at this time, the transaction information txinfo can be stored in the database
})< br />}); Pre >
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 />}); Pre >
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
4. Because blockchain technology has natural advantages in realizing smart contracts. bitcoin, Ruitai, Laite, Ethereum and other digital cryptocurrencies all use blockchain technology. Blockchain is an important concept of bitcoin. In essence, it is a decentralized database and the underlying technology of bitcoin. Blockchain is a chain of uses
5. The development is OK. I think it is more stable than other platforms.
6. Prich prich is a combination of Pride & rich, which means self-respect, pride, wealth in Chinese. Based on the lifestyle of Harvard and Yale, the brand style popularizes the classic American style. The brand's customers are mainly for women who pursue fashion, high-end and simple style
the Chinese name is usually referred to as Pulitzer
the Chinese name is usually referred to as Pulitzer
7. Server side installation of NFS: Yum install NFS utils protmap NFS utils package provides NFS server program and corresponding management tools.
8. Thrift is an RPC framework open source by Facebook, which is now linked to Apache. Org. The main advantages are as follows:
1. It supports many languages, including PHP which is commonly used in web development, C + + / Python / Java which is the most important back-end language of web, and, of course, ruby and Erlang which are cool
2. Complete RPC framework implementation, using script to generate communication related framework code, developers only need to focus on the business logic. For example, it only takes a few minutes to build a hello world service
3. It has the performance and usability verified by many large-scale Internet applications such as Facebook and last.fm
Hessian is an RPC framework based on HTTP protocol, which adopts binary RPC Protocol, which is very lightweight and fast
and, of course, Hetty, a high-performance RPC framework based on netty and Hessian.
1. It supports many languages, including PHP which is commonly used in web development, C + + / Python / Java which is the most important back-end language of web, and, of course, ruby and Erlang which are cool
2. Complete RPC framework implementation, using script to generate communication related framework code, developers only need to focus on the business logic. For example, it only takes a few minutes to build a hello world service
3. It has the performance and usability verified by many large-scale Internet applications such as Facebook and last.fm
Hessian is an RPC framework based on HTTP protocol, which adopts binary RPC Protocol, which is very lightweight and fast
and, of course, Hetty, a high-performance RPC framework based on netty and Hessian.
9. RPCServiceClient 需要的Jar包是axis2-adb-1.6.1.jar
axis2 webservice client端需要的jar包有:
axis2-kernel-1.6.1.jar
axis2-adb-1.6.1.jar
axiom-api-1.2.12.jar
commons-logging-1.1.1.jar
wsdl4j-1.6.2.jar
XmlSchema-1.4.7.jar
axiom-impl-1.2.12.jar
neethi-3.0.1.jar
axis2-transport-local-1.6.1.jar
axis2-transport-http-1.6.1.jar
commons-httpclient-3.1.jar
httpcore-4.0.jar
commons-codec-1.3.jar
axis2 webservice client端需要的jar包有:
axis2-kernel-1.6.1.jar
axis2-adb-1.6.1.jar
axiom-api-1.2.12.jar
commons-logging-1.1.1.jar
wsdl4j-1.6.2.jar
XmlSchema-1.4.7.jar
axiom-impl-1.2.12.jar
neethi-3.0.1.jar
axis2-transport-local-1.6.1.jar
axis2-transport-http-1.6.1.jar
commons-httpclient-3.1.jar
httpcore-4.0.jar
commons-codec-1.3.jar
Hot content
