JavaScript widgets that sends ERC20 token from browser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.babelrc
.gitignore
.postcssrc
README.md
index.html
index.scss
package.json
yarn.lock

README.md

giveaway

Example: https://takashi.github.io/giveaway (Need to install Metamask or Mist)

the browser widget that can send ERC20 standard token.

this widget requires Metamask or Mist wallet.

image

Usage

note: Currently, this widget only supports ropsten test network

Paste code below to your site location that you'd like to show this widget

<div id="giveawayButton"
  data-contract-address="ERC_20_CONTRACT_ADDRESS"
  data-receiver-address="TOKEN_RECEIVER_ADDRESS"
></div>

And paste below at just before </body>

<script>
  js = document.createElement('script')
  js.src = 'https://rawgit.com/takashi/giveaway/master/dist/index.js';
  js.type = 'text/javascript';
  document.getElementsByTagName('head')[0]
    .appendChild(js)
</script>