Ethereum java client
Blockchain projects require high efficiency, so most of the core source code development is using C / C + +. However, if you are doing a blockchain project, unless you need to make a lot of adjustments to the source code, you may not choose to use Java. For general DAPP applications, java development should also be a good choice. For example, in the case of Ethereum blockchain, there is a web3j class library for Java, which is very convenient; Bitcoin has bitcoin J class library, which is also easy to use. It still depends on the level of application, what to do, and the situation of the team
share two Java blockchain tutorials:
-
java bitcoin details
-
java Ethereum development
< / OL >
java_ The home value is: the directory where JDK is installed, and mine is C: 92; Program Files\ Java\ jdk1.6.0_ 34
the classpath value is:;% JAVA_ HOME%\ lib\ tools.jar;% JAVA_ HOME%\ lib\ dt.jar;% JAVA_ HOME%\ bin;( Pay attention to the & quot& quot; To add)
Path: append at the beginning.;% JAVA_ HOME%\ bin;% JAVA_ HOME%\ jre\ bin;( Pay attention to the & quot& quot; To add)
after the installation, you can check whether the JDK is installed successfully. Open the CMD window and enter Java – version to view the version information of JDK.
Ruitai coin has not been launched on the third-party platform, but it is rumored that it will also be launched on the third-party platform.
Generally speaking, the steps of deploying smart contract are as follows:
-
start an Ethereum node (such as geth or testrpc)
-
use Solc to compile smart contracts=& gt; Get the binary code
-
deploy the compiled contract to the network This step will consume Ethernet currency, and you need to use the default address or specified address of your node to sign the contract.)=& gt; Get the blockchain address and ABI of the contract (JSON representation of the contract interface, including variables, events and callable methods) The author confused ABI with contract interface here. ABI is the binary representation of the contract interface.)
-
use the JavaScript API provided by web3.js to call the contract Depending on the type of call, it may consume Ethernet currency.)
built in smart contract compilation, linking, deployment and binary file management
automatic contract testing under rapid development
scripted and extensible deployment and publishing framework
the network environment management function deployed to no matter how many public or private networks
uses the package management provided by ethpm & NPM and erc190 standard
a direct interactive console that communicates directly with the contract (after writing the contract, you can verify it on the command line)
the configurable construction process supports tight integration
external scripts can be executed in truffle environment< Truffle is the most popular development framework, whose mission is to make development easier
installation method:
$NPM install - G truffle
environment requirements
nodejs 5.0 +
windows, Linux, or Mac OS X
truffle needs Ethereum client and supports standard JSON RPC API. For development, some are more suitable, which will be introced in the following chapters (for example, testrpc provides real-time feedback ring coding and debugging)
suggestions for Windows users
if you are a Windows user, we recommend that you use PowerShell or git bash to install and use the truffle framework. These two shell environments provide more convenient features than the default
if you have to use the command line, see the discussion here on how to configure truffle.
this bosom friend. JCP mall is a mall that contains JCP operation mode. To understand JCP mall, we must first understand JCP
JCP maintenance specifications include J2ME, J2SE, J2EE, XML, OSS, Jain, etc. Organization members can submit JSR (Java specification requests) and enter the next version of the specification after passing a specific program
Ethereum is an open source public blockchain platform with smart contract function, which provides decentralized Ethereum virtual machine to process point-to-point contract through its special cryptocurrency ether (ETH)
the concept of Ethereum was first proposed by vitalik buterin, a programmer, from 2013 to 2014, inspired by bitcoin, to the effect of "next generation cryptocurrency and decentralized application platform". It began to develop through ICO crowdfunding in 2014
as of February 2018, Ethernet is the second highest cryptocurrency in terms of market value, second only to bitcoin.
