1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/app/scripts/lib/auto-faucet.js

10 lines
248 B
JavaScript
Raw Normal View History

var uri = 'https://faucet.metamask.io/'
2016-06-21 22:18:32 +02:00
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)
}