# Claim Earnings Script

**URL:** <https://forum.livepeer.org/t/claim-earnings-script/313>\
**Category:** Transcoders\
**Created:** [July 11, 2018, 4:21pm UTC](https://forum.livepeer.org/t/claim-earnings-script/313 "2018-07-11T16:21:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j0sh](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@j0sh](https://forum.livepeer.org/u/j0sh)\
**Post date:** [July 11, 2018, 4:21pm UTC](https://forum.livepeer.org/t/claim-earnings-script/313/1 "2018-07-11T16:21:21Z")

</div>

Hello Transcoders,

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

```auto
#!/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.
