Solidity ERC-20 – Handling Multiple Transfers

erc-20etherremixtokenstransactions

First of all, hello. we will write a token for a project we have developed. We are creating new tokens, we want to write a simple contract on remix ethereum. We will distribute a large portion of the coin for free (airdrop), and we will divide a small portion of the remainder into pre-sales and teams. Distribute tokens to thousands of people is costly and time consuming. I have tried to solve this problem and found that by doing the same thing with this contract I have transferred 200 different adrese (see: https://etherscan.io/tx/0x71781f6300a7ab0869fc32710e5a1af43d0721e7a4d416208648e31a98d1801e) a contract. I can write the same on this remix.ethereum. assuming that we have formed a contract; can I make multiple transfers in this way? how can i do it and how can i do it? Which wallet should I use? please help me.

Best Answer

As i understand, you guys want to distribute tokens to thousand of addresses in a single transaction. This code you are using is totaly fine i.e

function distributeToken(address[] recipients, uint256[] values){
//Mint a token and transfer to each each beneficiary
}

In this way you guys can mint a tokens to multiple address, but you should not use this snippet to transfer tokens, transfer must be happen by token owner only on their own will. You can use "MetaMask" wallet to sign transaction.

Related Topic