diff options
Add auto-fauceting
When first creating a vault, the first account is submitted to our `rawtestrpc` faucet, receiving `1.337` ether within 15-30 seconds.
Diffstat (limited to 'app/scripts/lib/auto-faucet.js')
-rw-r--r-- | app/scripts/lib/auto-faucet.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/scripts/lib/auto-faucet.js b/app/scripts/lib/auto-faucet.js new file mode 100644 index 000000000..b347add44 --- /dev/null +++ b/app/scripts/lib/auto-faucet.js @@ -0,0 +1,11 @@ +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) + +} |