Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 884 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 884 Bytes

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>