How to claim XEL and XEN through Etherscan

Mint Your CryptoBum Now for a 40% Fee Share on Marketplace Transactions!

XEL is a token that you can mint on top of XEN. Through its disinflationary tokenomics and the staking rewards, it’s a major amplifier for XEN minters. It was launched on April 4, and the first mints came out only 50 days later due to the minimum mint period. People started claiming their first XEL and XEN rewards, and here we show you how you can claim XEL and XEN directly from the smart contract just in case the main front end suffers some downtime.

How to interact with smart contracts through Etherscan

Etherscan does offer a built-in contract interaction feature that allows you to call read functions and send transactions to write functions of a verified smart contract. These options are available on the contract and token pages. These pages are where all data and information related to an Ethereum contract are displayed. 

The public can audit and read the smart contract by verifying it on Etherscan, which verifies that the contract code is exactly what is being released onto the blockchain. Source code verification entails looking for discrepancies between a smart contract’s source code and the compiled bytecode used to create the contract. Because the stated contract code could differ from the code that executes on the blockchain, verifying smart contracts is important.

Not all smart contracts are verified, though, and it’s important to do so to give users more confidence in the protocol they’re interacting with. 

You need an Etherscan API key to prove that you are the rightful owner of the smart contract you are attempting to publish. On your Etherscan account, you can create an API key. Once you have an API key, it’s quite easy to use HardHat to publish your contract to Etherescan.  Finally, you can verify your smart contract on Etherscan and check it out there.

etherscan read write
XEL contract Read and Write functions Source:

How to claim XEL and XEN on Etherscan

Here’s how you can interact with the XEL and XEN smart contract on Etherscan:

  • Go to the Etherscan website ( and search for the XEL contracts:XEN Wallet Manager: ERC20 Token:
  • On the contract’s page, you will see a “Contract” tab. Click on it to access the contract’s information.
  • In the “Contract” tab, you will find a list of functions defined in the contract. You can click on a function to expand it and view more details.
  • For read functions (functions that do not modify the contract’s state), you can directly input the required parameters (if any) and click the “Query” button to execute the function and retrieve the result. In the case of our XEL mints, we want to use the getWalletCount method to get the number of total created wallets for your XEL master wallet. You’ll see that after pasting your address and pressing “Query,” you will get a number. This is the number of your wallets.
  • Next, use the following method to get a list of all wallets:- startId = 0
    – endId = getWalletCount number – 1):What you do here is insert your master wallet once again, then input 0 in the startID field, and in the endID field, you need to insert the result of your previous query minus 1. So if your previous query was 128, you need to subtract 1 and insert 127 in the endID field.
  • You will get a list of addresses. Copy and paste it into a text editor. Add commas after each bracket “]”, except for the latest one:
  • Next, you need to open the console with the right click of the mouse. You will see a window pop out, and down this window there will be the option Inspect.
  • Once you’re in the console tab, you paste the copied array like this:
    const addresses = *copied array*And press enter.
  • Then you paste the following formula and press enter:

const ids = [];

  • Next, paste this code in and press enter:
    for(let i = 0; i < addresses.length; i++){
    const address = addresses[i];




if(address[0] !== 0) {




  • After this, type “ids” and press enter. This way, you’ll see the IDs of newly created wallets that have currently active mints.
  • If you are sure that those mints are ready, you can go directly to the “Write contract” tab and claim your rewards. For write functions (functions that modify the contract’s state), you need to connect to a web3 provider to interact with the contract. In the Etherscan UI, you will find a “Write Contract” button. Clicking on it will prompt you to connect your wallet (e.g., MetaMask) to sign the transaction.
  • After connecting your wallet, you can provide the required parameters for the write function batchClaimAndTransferMintReward, startID and endID of the wallets to claim, and click “Write” to send the transaction.
  • And voila, you have successfully claimed the XEL and XEN rewards:

Add the two tokens to your MetaMask to view your balance or simply check it on etherscan.