Skip to content

Instantly share code, notes, and snippets.

@kennym
Created July 10, 2021 13:31
Show Gist options
  • Save kennym/9c5a6f7f0f69a020aea14d081729403f to your computer and use it in GitHub Desktop.
Save kennym/9c5a6f7f0f69a020aea14d081729403f to your computer and use it in GitHub Desktop.
Test Matic Faucet autofarm script
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