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.