mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
d6dee7e748
When first creating a vault, the first account is submitted to our `rawtestrpc` faucet, receiving `1.337` ether within 15-30 seconds.
12 lines
249 B
JavaScript
12 lines
249 B
JavaScript
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)
|
|
|
|
}
|