- Title: stinkypete.rb - Reward Claim script for HIVE
- Tags: radiator ruby hive hivedev rewards
- Notes:
- Claim Rules
- Added the ability to pick and choose which assets to claim.
- E.g.: You can choose to claim only HBD.
- Allow command-line overrides for
asssets
andminimum_mvests
.- E.g.:
$ ruby stinkypete.rb assets:hbd,hive minimum_mvests:0
will only claimhbd
andhive
for any amount available.
- E.g.:
- Added the ability to pick and choose which assets to claim.
- Switched code and examples to the Hive Blockchain
Stinky Pete allows you to claim rewards based on rules. You can manually run this script periodically or create a cron job.
To use this Radiator script:
$ sudo apt-get install ruby-full git
$ gem install bundler
$ gem install bundler
I've tested it on various versions of ruby. The oldest one I got it to work was:
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [aarch64-linux]
First, clone this gist and install the dependencies:
$ git clone https://gist.github.com/db94986d168f7b35034b0d7ccba6f2b4.git stinkypete
$ cd stinkypete
$ bundle install
Edit the file stinkypete.yml
and provide the account you want to claim rewards for. You must use the posting-wif.
Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:
$ git pull
Usually, this works fine as long as you haven't modified anything. If you get an error, try this:
$ git stash --all
$ git pull --rebase
$ git stash pop
If you're still having problems, I suggest starting a new clone.
To do the actual claim:
$ ruby stinkypete.rb
Stinky Pete will now check if the rules have been met and conditionally claim them.
Check here to see an updated version of this script:
https://gist.github.com/inertia186/db94986d168f7b35034b0d7ccba6f2b4
stinkypete.yml:1: syntax error, unexpected ':', expecting end-of-input
`from_base58': Invalid version (RuntimeError)
Make sure the .yml
file account
item has the correct name
and posting_wif
key.
Is there a list of nodes?
https://developers.hive.io/quickstart/#quickstart-hive-full-nodes
![](http://i.imgur.com/ylQjmZO.png)
See my previous Ruby How To posts in: #radiator #ruby
If you're using Stinky Pete, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on Hive.
I don't believe in intellectual "property". If you do, consider Stinky Pete as licensed under a Creative Commons License.