Skip to content

Instantly share code, notes, and snippets.

View teo-nyx's full-sized avatar

Teo Nyx teo-nyx

View GitHub Profile
@teo-nyx
teo-nyx / index.html
Created September 29, 2017 08:48
Estimate Steemit curation reward before voting
<script src="//cdn.steemjs.com/lib/latest/steem.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script>
//steem.config.set('websocket', 'wss://steemd.steemit.com/');
// Usage example prints to console
var expected_value_sp = 100; // blessed is he who believes
getPredictedVotePayout('teo-nyx', 'teo-nyx/estimate-curation-reward-before-voting', expected_value_sp)
.then(console.log, console.error);