/MultiSendEthereum

Send Ethereum to Multiple Addresses in one Function

Primary LanguageJavaScript

MultiSend Smart Contract - Ethereum Solidity Truffle

This allows calling one function with parameters to send multiple amounts to multiple addresses

Installation

  1. Install Truffle globally.

    npm install -g truffle
  2. Install the necessary dependencies.

    npm install
  3. Run the development console.

    truffle develop
  4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.

    compile
    migrate
  5. Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.

    // If inside the development console.
    test
    
    // If outside the development console..
    truffle test

FAQ

  • How do I use this with the EthereumJS TestRPC?

    It's as easy as modifying the config file! Check out our documentation on adding network configurations. Depending on the port you're using, you'll also need to update line 34 of src/util/web3/getWeb3.js.

  • Why is there both a truffle.js file and a truffle-config.js file?

    truffle-config.js is a copy of truffle.js for compatibility with Windows development environments. Feel free to remove it if it's irrelevant to your platform.

  • Where can I find more documentation?

    Check out Truffle

Contributors