Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: chende on May 10, 2018, 07:39:08 PM



Title: send erc20 token to many ether address in JUST ONE TRANSACTION
Post by: chende on May 10, 2018, 07:39:08 PM
Multisend function can help you send token to many address in a single transaction with extremely low transaction fee
 sample code


contract Sender is Ownable {

    function multisend(address _tokenAddress, address[] userAddr, uint256[] values)
    onlyOwner
    returns (uint256) {
        uint256 i = 0;
        while (i < userAddr.length) {
           ERC20(_tokenAddress).transfer(userAddr, values*10000000);
           i += 1;
        }
        return(i);
    }

as easy as deploying contract on solidity,call function then execute

example
https://i.imgur.com/XD9Lsr7.png

https://ropsten.etherscan.io/tx/0x4c075f3b079f60251f9ef27ca9627e7bb907712da432f71edba6199525d20145

incase of any update
follow me on

https://twitter.com/chende_inc

 ;D ;D


Title: Re: send erc20 token to many ether address in JUST ONE TRANSACTION
Post by: dhemasm on May 10, 2018, 08:23:25 PM
Very interesting, I was learning too about this ethereum coding or algorithm (Sorry if im wrong), maybe this could be a solution for bounty managers who send token to the participants. Btw do you have a github account? and Thanks man!


Title: Re: send erc20 token to many ether address in JUST ONE TRANSACTION
Post by: chende on May 10, 2018, 08:33:46 PM
Very interesting, I was learning too about this ethereum coding or algorithm (Sorry if im wrong), maybe this could be a solution for bounty managers who send token to the participants. Btw do you have a github account? and Thanks man!
yeah i do,but the source code not uploaded but very soon will be.
but anyway your welcome


Title: Re: send erc20 token to many ether address in JUST ONE TRANSACTION
Post by: Idrisu on May 10, 2018, 08:43:11 PM
Some of our campaign and bounty manager can used this in making payments for bounty. We are now seeing some progress and how cryptocurrencies is going to makes transactions easy. We are at the moment of opportunity and learning fast on how all this things work should be a welcome development.


Title: Re: send erc20 token to many ether address in JUST ONE TRANSACTION
Post by: chende on May 10, 2018, 09:17:22 PM
Some of our campaign and bounty manager can used this in making payments for bounty. We are now seeing some progress and how cryptocurrencies is going to makes transactions easy. We are at the moment of opportunity and learning fast on how all this things work should be a welcome development.
yeah, this type of transaction was only possible in bitcoin now ether too has patched it too and i think more coming for eth