Ethereum node query
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
you can't retrieve your assets through Ethereum block query
think too much
if you want to check the real estate,
you can go to the real estate transaction registration center.
A: generally, there is only one account address, otherwise there will be an error! Blockchain itself is unique. If there are multiple account addresses on one node, it violates the fundamental principle of blockchain!
try to set your TCP / IP protocol to automatic acquisition state. Method: right click Network Neighborhood - properties - right click & quot; Local connection & quot; Properties - double click & quot; Internet Protocol TCP / IP & quot- IPX is the bottom layer protocol of NetWare. It is only responsible for the movement of data in the network. It does not guarantee the success of data transmission, nor does it provide error correction
