Ethereum command line transaction
Publish: 2021-04-17 08:12:39
1. You can choose to trade in the digital currency exchange. At present, the mainstream digital currency exchanges in the market are coin security, fire currency and bitnet.
2. Ethereum also uses blockchain technology, but it is more convenient to use than bitcoin's blockchain Turing, which is complete and open source. Anyone can create their own application on the basis of Ethereum
3. China bitcoin chbtc is the largest eth trading platform in China. Eth / BTC trading was launched on March 14, 2016, and it developed rapidly in just over a month. On April 30, the trading volume of eth / BTC had exceeded one million.
4.
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
5. With bitpie wallet, this is the largest bitcoin wallet in China. It can buy and sell bitcoin with one click, which is much more convenient than the exchange.
6. Note that Ethereum is 2.0 now. As of 13:57 on the 4th, the current deposit contract address of Ethereum 2.0 has received 1000098eth, and 31252 addresses have completed the mortgage of 32eth. With the increasing number of mortgage, the annual yield of mortgage will graally decrease. After the mortgage amount reaches 1 million eth, the current annualized yield is about 15.7%. Zhongyuan, a well-known exchange, has taken the lead in opening the mining channel of eth2.0 verification node, and then launched qeth. Users can invest their own eth in verification node mining and exchange qeth to obtain liquidity, and then participate in mining. Compared with the disadvantages of eth2.0, qeth has too many things: the liquidity is guaranteed, the user does not have to bear the technical cost, the threshold of participation does not need 32 eth as low as 0.1eth, the nodes are maintained by the platform, and the income is distributed according to eth2.0.
7. Generally speaking, buy eth on the exchange, then wait for the price to rise and sell to earn the difference. Virtual currency prices, including eth, are difficult to predict. There is no limit to the range of rise and fall. Once the loss is huge. However, in the domain Kingdom, the initial investment is only US $5, so we only need to judge the rise and fall direction of eth price. If it is correct, we will make profits, if it is wrong, we will lose us $5 of the transaction, and the loss can be controlled.
8. Gas & gt; ethestimateGas({ from:ethaccounts [1], to: ethaccounts[2], value:50000000000000 }) 21001 > Ethgasprice 2000000000, as shown above, shows this account [1] = & gt; The transaction of account [2] needs 21001 gas, and the current gasprice is 2000000000. How many gas does it take to send transaction / call contract method in Ethereum
9. Todefi platform, recommend formal, safe projects. More data and high reference value
Hot content
