Created
July 10, 2021 13:31
-
-
Save kennym/9c5a6f7f0f69a020aea14d081729403f to your computer and use it in GitHub Desktop.
Test Matic Faucet autofarm script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch'); | |
setInterval(() => { | |
fetch('https://api.faucet.matic.network/transferTokens', { | |
method: 'post', | |
body: '{"network":"mumbai","address":"YOUR_ADDRESS_HERE","token":"maticToken"}', | |
headers: { 'Content-Type': 'application/json' }, | |
}) | |
.then(res => res.json()) | |
.then(console.log) | |
}, 70000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment