Ethereum query account status
In Ethereum, all kinds of transfer and other transaction operations need to be completed by accounts. In the transaction platform, such as currency exchange transaction platform, each transaction needs to have a transaction initiation account and a transaction receiving account. Each account corresponds to an address, and the account name is the label of the address. Use a wallet to manage accounts. A wallet can contain multiple accounts. Of course, you can also create multiple wallets

warm tips: the above explanations are for reference only, without any suggestions. There are risks in entering the market, so investment should be cautious. Before making any investment, you should make sure that you fully understand the nature of the investment and the risks involved in the proct. After a detailed understanding and careful evaluation of the proct, you can judge whether to participate in the transaction
response time: December 2, 2020. Please refer to the official website of Ping An Bank for the latest business changes
[Ping An Bank I know] want to know more? Come and see "Ping An Bank I know" ~
https://b.pingan.com.cn/paim/iknow/index.html
Hangzhou Ethereum Information Technology Co., Ltd. is a limited liability company (invested or controlled by natural person) registered in Yuhang District, Hangzhou City, Zhejiang Province on March 20, 2017. Its registered address is room 2003, building 3, Xinyuan jinzuo, Nanyuan street, Yuhang District, Hangzhou City, Zhejiang Province (entrusted by Tianze commercial secretary)
the unified social credit code / registration number of Hangzhou Ethereum Information Technology Co., Ltd. is 91330110ma28n029xm, and the enterprise legal person is Zhang Shoukun
Hangzhou Ethereum Information Technology Co., Ltd. has a general registered capital in the province
view more information and information of Hangzhou Ethereum Information Technology Co., Ltd. through network enterprise credit
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
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!
we will see such states as "waiting for confirmation", "confirming", "transaction failed", "successful", some of which belong to the unique state of blockchain transfer
bank transfer
there are two steps in daily life: payment and settlement
normally we all belong to "payment" through Alipay consumption and bank card transfer, which is essentially a record of information and a credit debt certificate. And this kind of certificate needs to be implemented, that is, liquidation. Its essence is the flow of funds
a common situation:
transfer 200 yuan from my CMB card to your ICBC card
there are two steps in this process:
when I successfully transfer 200 yuan to you, this step is "payment" for you and me, and its essence is information flow; For China Merchants Bank and instrial and Commercial Bank of China, it is to establish the relationship between creditor's rights and debts. It records a debt note: China Merchants Bank owes ICBC 200 yuan
then, the banks regularly implement their complicated creditor's rights relationship in the central bank's clearing system (the first step of "CMB owes ICBC 200 yuan" is one of the inextricable links). At this time, it is through "clearing" that information flows into real capital flow
for us, once the transfer button is confirmed in the first step, you can rest assured and I can rest assured. But actually, it's only the first step. In the future, the real time-consuming operation will be hidden in the cycle operation of the whole financial infrastructure and system. They are not common people, but the cornerstone of our convenient financial life< br />
Photo by Jos é Mart í n Ram í Rez C on unsplash
blockchain transfer
does it have payment and clearing? This concept actually does not exist here. Blockchain transfer integrates these two steps, and each transfer on the chain records the real capital flow
as a public account book, blockchain is open, transparent and tamperable
therefore, the transfer on it is in a more complicated state. This account book can not be wrong and must be recorded carefully
so we can see these states: "waiting for confirmation", "confirming", "transaction failure" and "success"
"waiting for confirmation": waiting for the miner to confirm the transfer information and pack it into the block
"confirming": one block confirmation is not secure enough and needs more confirmation. In this way, we can understand why Ethereum transfer needs 12 block confirmations to be considered successful
"transaction failure": if the fee you give to the miner is not enough for the miner to confirm the transfer information, it will fail (or it may be caused by other reasons)
"success": at this time, your transfer record is on the blockchain ledger, which can not be tampered with and can be checked.
