aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/auto-faucet.js
blob: 59cf0ec20fbea18fda17fa2e9f3edb2bffe901de (plain) (blame)
1
2
3
4
5
6
7
8
9
var uri = 'https://faucet.metamask.io/'

module.exports = function (address) {
  var http = new XMLHttpRequest()
  var data = address
  http.open('POST', uri, true)
  http.setRequestHeader('Content-type', 'application/rawdata')
  http.send(data)
}