Skip to content

JavaScript widgets that sends ERC20 token from browser

Notifications You must be signed in to change notification settings

takashi/giveaway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

JavaScript widgets that sends ERC20 token from browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published