I want to distribute tokens to a few thousand addresses at once. I want to know, how can I do this? My token contract is already deployed so I want to make a new contract in solidity that can interact with my deployed contract. Can someone help?
I found this code from another post on this site that I assume I can use in the new contract:
function distributeToken(address[] addresses, uint256 _value) onlyOwner {
for (uint i = 0; i < addresses.length; i++) {
balances[owner] -= _value;
balances[addresses[i]] += _value;
Transfer(owner, addresses[i], _value);
}
}
I am writing this contract in remix so I do not have truffle or any advance coding systems. Hope someone can help.
- What the exact format to send tokens via calling the function in solidity?
- How many addresses can I send to at once and how do I specify the amount of tokens each address should receive?
– RamenCoin Mar 19 '18 at 06:21transact to AirDrop.sendTokensSingleValue errored: Error encoding arguments: Error: Argument is not a number
– RamenCoin Mar 19 '18 at 06:55