Claim Earnings Script

Hello Transcoders,

Here is a basic script to claim earnings up to the current round.

#!/usr/bin/env bash

set -eux

endRound=`curl http://localhost:8935/currentRound`
curl -X POST -d "endRound=$endRound" http://localhost:8935/claimEarnings

You can put this in a crontab to be run as often as needed. Especially useful for Rinkeby where rounds go by quickly.