gm365
gm365|Jun 01, 2025 06:21
💻 If I were to help CoinTool design a webpage After a few days, I need to use CoinTool Mint XEN again. As expected, using the CT official website also failed again (even after changing the only paid RPC and loading 30% of the wallet each time). Grit your teeth and write your own program to scan wallet data. The general idea is as follows: 1. Load all wallet address information for CoinTool XEN (CT page download, XLSX format, converted to CSV), approximately several thousand 2. Read all wallet addresses and check XEN expiration date 3. Read the IDs of all expired wallets (required for the next CT contract claim) 4. Program generates data parameters required for CT XEN contract claim 5. Etherscan fills in four parameters (two default values and two parameters obtained earlier) 6. Successful claim+resubmission The key lies in the second step. If you have thousands of addresses that need to query expiration dates, it may consume RPC resources (I don't know if there is a problem with this step on the CT official website) But there is actually an engineering optimization approach: 🧠 Sampling inquiry Because most addresses belong to different batches, with an average of 128 addresses per batch. So, all you need to do is classify these 128 addresses, and then sample several addresses from the same batch for query and verification. In this way, thousands of addresses are divided into several batches, and only a few dozen RPC queries are needed in the end. Of course, there is also another possibility: There was a problem scanning all XEN addresses created in the current wallet, such as my page showing that approximately 25000 addresses were created. But I think even so, there should still be ideas and methods that can be optimized, such as MyCoinTool, which seems to never have the problem of unable to load addresses. The problem is that there are very few estimates of Mint XEN who are still persevering until now, and those who encounter problems like mine are probably even more rare. Anyway, okay. Let's take a little record of the time spent tinkering yesterday.
+1
Mentioned
Share To

Timeline

HotFlash

APP

X

Telegram

Facebook

Reddit

CopyLink

Hot Reads