Transaction records of Ethereum private chain search
Publish: 2021-05-15 15:35:58
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. This needs to be recharged, but we must pay attention to the risk. This chain is not particularly mainstream. It may be the capital disk or counterfeit currency.
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.
Both aoex and E-app can view real-time dynamic transaction
data
5. With the blockchain browser, bitcoin has its own browser. Ethereum and bitcoin are both used. The token based on Ethereum can also be queried on Ethereum's blockchain browser, and usdt can be queried on bitcoin's blockchain browser
6. Search Ethereum blockchain browser or bitcoin blockchain browser. If it is based on other chains, search other browsers to view
7. Wait, Ethereum is a public chain. Do you mean the token issued above? You can set the total amount
8. The withdrawal of digital currency generally only occurs on the digital currency trading platform. Where to withdraw cash? It is suggested to check the account number of the accounting platform carefully. It is generally in the personal center. The specific situation still needs to consult the official personnel, and the answer given by the official shall prevail. However, when choosing a digital currency trading platform, it is better to choose a big platform such as Xigu digital asset trading platform and bitcoin China.
9. Introction: the company is a subsidiary of China Galaxy Securities Co., Ltd. in Hong Kong.
Hot content