Skip to content

Instantly share code, notes, and snippets.

@yukairex
yukairex / claim.js
Last active February 2, 2023 12:54
GLO Claim script
const ethers = require("ethers");
const {formatEther, parseEther} = ethers.utils
const provider = new ethers.providers.JsonRpcProvider('FILL IN YOUR RPC NODE URL');
const userAddress = " FILL IN YOUR ADDRESS with Lobs "
const maxPriorityFee = 100; // change to whatever you like. i was using 100 gwei
const maxTotalFee = 150; // change to whatever you like. i was using 100
const wrapDroABI = [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Collect","type":"event"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account"

Keybase proof

I hereby claim:

  • I am yukairex on github.
  • I am yukairex (https://keybase.io/yukairex) on keybase.
  • I have a public key ASAvi18dRhXU3_8JOu1jG7LLATTnA42VHfeRMbGeL2dUaAo

To claim this, I am signing this object:

04ff3888113fb9681bb2ba0ecc23236b92687bf08bc0564cc8a857914b93fff91e736f66578a2fb41d2fad1df6fe301d5fda0399e95f42bcc9f85a0a6c593cf34d;sun1534