 We have added three new endpoints to help us get data from SteemSQL, for a better flexibility in our extension. It might look like there is not much code behind this update, but I can guarantee that the complex SQL request kept us sweating for a good while. ### New Features Here are the new routes pushed in this update: - `/api/get-received-witness-votes/[username]` : Get all the votes received by a witness along with a timestamp, voters Vests and Proxied Vests, for further filtering and sorting. ##### Result for @stoodkev ~~~~ [{"timestamp":"2018-03-12T19:35:39.000Z","account":"ahugehug","totalVests":1741.36062,"accountVests":1741.36062,"proxiedVests":0}, ...] ~~~~ - `/api/get-incoming-delegations/[username]` : Gets incoming delegations for @username. It returns a timestamp, the names of delegators, and the number of Vests being delegated. ##### Result for @stoodkev ~~~~ [{"delegator":"steem-plus","vesting_shares":1026195.2327,"delegation_date":"2017-11-30T18:29:48.000Z"}, ... ] ~~~~ - `/api/get-wallet-content/[username]` : Gets the 500 last items from @username's wallet, including incoming and outgoing transfers and claimed rewards. ##### Result for @stoodkev ~~~~ [{"timestamp":"2018-04-23T09:58:27.000Z","reward_steem":0,"reward_sbd":0,"reward_vests":0,"amount":110.276,"amount_symbol":"SBD","type":"transfer_to","memo":"","to_from":"steem-plus"}, ... ] ~~~~ Additionally, in order to protect the API from abuses, we implemented `express-rate-limit`. It allows us to control the maximum number of calls to the API possible from the same IP address during a certain timeframe. #### Commits - [/api/get-received-witness-votes/[username]](https://github.com/stoodkev/steemplus-api/commit/1cfa1075dbf0e534fae306f31998478a0fd515ca): This commit contains the definition of this route as well as the IP rate feature. - [/api/get-incoming-delegations](https://github.com/stoodkev/steemplus-api/commit/71b0ca015535f6308b29ca019664c6f328f4903c) - [/api/get-wallet-content](https://github.com/stoodkev/steemplus-api/commit/4f4c6b5f84fa71431e9a685b1a834db67c3d598b) For more information consult the updated [README](https://github.com/stoodkev/steemplus-api/commit/19bf42caf9cad17dca3c01f53d3b8afa07901758) and the full list of [commits](https://github.com/stoodkev/steemplus-api/commits/master). ### Coming soon - More wallet transactions - Rewards information - User statistics ### Wanna contribute? Join us on [Discord](https://discord.gg/96JkJSy "This link will take you away from steemit.com") ### Installation procedures - Subscribe to SteemSQL (10 SBD/month) - Clone this repository - `npm install` - Set the environment variables (information received by transfer when you subscribe to SteemSQL). These environment variables are `LOGIN`, `PASSWORD`, `SQL_API` and `DB`. - `npm run start` - You should be able to test it on `localhost:3000`. <br/><br/> <div class="pull-right"> <a href="https://discord.gg/7mqmx2M" rel="noopener" title="This link will take you away from steemit.com"> <img src="https://steemitimages.com/DQmd5CQG5zLjjm2z8289qcLU6eBHJpC5FmgtR3aC1eXnhsi/Adsactly-Logo-200px.png" alt="Go Adsactly"> </a> </div> Big shoutout to [@jerrybanfield](/@jerrybanfield) and his budgets project that allow us the speed up the development of SteemPlus! [@stoodkev](/@stoodkev) and [@cedricguillas](/@cedricguillas) for [@steem-plus](/@steem-plus) #### Powered by [@adsactly](/@adsactly) #### Powered by [@utopian-io](/@utopian-io) Like what I do? [Vote @stoodkev for witness!](https://v2.steemconnect.com/sign/account-witness-vote?witness=stoodkev&approve=1 "This link will take you away from steemit.com") <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@stoodkev/additional-endpoints-for-steemplus-backend">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
author | stoodkev | ||||||
---|---|---|---|---|---|---|---|
permlink | additional-endpoints-for-steemplus-backend | ||||||
category | utopian-io | ||||||
json_metadata | "{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":129349287,"name":"steemplus-api","full_name":"stoodkev/steemplus-api","html_url":"https://github.com/stoodkev/steemplus-api","fork":false,"owner":{"login":"stoodkev"}},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","steemdev","dev","news","steemit"],"users":["stoodkev","username"],"links":["https://github.com/stoodkev/steemplus-api/commit/1cfa1075dbf0e534fae306f31998478a0fd515ca","https://github.com/stoodkev/steemplus-api/commit/71b0ca015535f6308b29ca019664c6f328f4903c","https://github.com/stoodkev/steemplus-api/commit/4f4c6b5f84fa71431e9a685b1a834db67c3d598b","https://github.com/stoodkev/steemplus-api/commit/19bf42caf9cad17dca3c01f53d3b8afa07901758","https://github.com/stoodkev/steemplus-api/commits/master","https://discord.gg/96JkJSy","https://discord.gg/7mqmx2M","/@jerrybanfield","/@stoodkev","/@cedricguillas","/@steem-plus","/@adsactly","/@utopian-io","https://v2.steemconnect.com/sign/account-witness-vote?witness=stoodkev&approve=1","https://utopian.io/utopian-io/@stoodkev/additional-endpoints-for-steemplus-backend"],"image":["https://cdn.utopian.io/posts/7fdd842cdc4d2b91f76278e958342e67f926image.png","https://steemitimages.com/DQmd5CQG5zLjjm2z8289qcLU6eBHJpC5FmgtR3aC1eXnhsi/Adsactly-Logo-200px.png"],"moderator":{"account":"justyy","time":"2018-04-23T14:29:08.388Z","pending":false,"reviewed":true,"flagged":false},"questions":{"voters":["justyy"],"answers":[{"question_id":"dev-1","answer_id":3,"user":"justyy","influence":75},{"question_id":"dev-2","answer_id":2,"user":"justyy","influence":75},{"question_id":"dev-3","answer_id":3,"user":"justyy","influence":75},{"question_id":"c-1","answer_id":2,"user":"justyy","influence":75},{"question_id":"c-2","answer_id":3,"user":"justyy","influence":75},{"question_id":"c-3","answer_id":3,"user":"justyy","influence":75},{"question_id":"c-4","answer_id":2,"user":"justyy","influence":75},{"question_id":"c-5","answer_id":3,"user":"justyy","influence":75},{"question_id":"c-6","answer_id":3,"user":"justyy","influence":75}],"total_influence":0,"most_rated":[{"question_id":"dev-1","answer_id":3,"influence":75,"voters":["justyy"]},{"question_id":"dev-2","answer_id":2,"influence":75,"voters":["justyy"]},{"question_id":"dev-3","answer_id":3,"influence":75,"voters":["justyy"]},{"question_id":"c-1","answer_id":2,"influence":75,"voters":["justyy"]},{"question_id":"c-2","answer_id":3,"influence":75,"voters":["justyy"]},{"question_id":"c-3","answer_id":3,"influence":75,"voters":["justyy"]},{"question_id":"c-4","answer_id":2,"influence":75,"voters":["justyy"]},{"question_id":"c-5","answer_id":3,"influence":75,"voters":["justyy"]},{"question_id":"c-6","answer_id":3,"influence":75,"voters":["justyy"]}]},"score":57,"total_influence":75,"staff_pick":null,"config":{"questions":[{"question":"How would you rate the impact of the fixed bugs / new features on the project?","question_id":"dev-1","answers":[{"answer":"Very high - the amount of work is very high.","answer_id":1,"value":20},{"answer":"High - the amount of work is high","answer_id":2,"value":15},{"answer":"Average - the amount of work is average","answer_id":3,"value":10},{"answer":"Low - the amount of work is low.","answer_id":4,"value":5},{"answer":"Very Low - the amount of work is very little.","answer_id":5,"value":0}]},{"question":"How would you rate the quality of the provided code?","question_id":"dev-2","answers":[{"answer":"Very high - the code follows all the best practices and/or is the opposite of trivial.","answer_id":1,"value":20},{"answer":"High - the code follows nearly all the best practices and/or is not trivial at all. ","answer_id":2,"value":15},{"answer":"Average - the code follows most the best practices and/or some parts of it are trivial.","answer_id":3,"value":10},{"answer":"Low - the code doesn't really follow the best practices and/or a lot of it is trivial.","answer_id":4,"value":5},{"answer":"Very low - the code doesn't follow the best practices and is completely trivial.","answer_id":5,"value":0}]},{"question":"How do you rate the target project overall?","question_id":"dev-3","answers":[{"answer":"Very high - the project has a unique value, will (potentially) also be useful to a lot of people and has the potential to keep growing.","answer_id":1,"value":10},{"answer":"High - the project isn't really unique but it is well maintained.","answer_id":2,"value":8},{"answer":"Average - the project is limited or not very well maintained.","answer_id":3,"value":4},{"answer":"Low - quality of the project overall is low.","answer_id":4,"value":2},{"answer":"Very low - quality of the project overall is very low and not well maintained.","answer_id":5,"value":0}]},{"question":"Does the writing style meet the Utopian standard considering formalness, informativeness and clarity of the content?","question_id":"c-1","answers":[{"answer":"It is formal, informative and well written with clear content.","answer_id":1,"value":10},{"answer":"It is informative with clear content but not formal enough.","answer_id":2,"value":5},{"answer":"The contribution could be more informative or contains unrelated information, formality and clarity of the content are good enough.","answer_id":3,"value":4},{"answer":"Not all sections were clear enough but overall holds value for the project.","answer_id":4,"value":2},{"answer":"Not at all.","answer_id":5,"value":0}]},{"question":"Was the provided category template for the editor followed?","question_id":"c-2","answers":[{"answer":"All points of the template were included with additional points as well.","answer_id":1,"value":5},{"answer":"The template was followed without additions.","answer_id":2,"value":4},{"answer":"The template was edited but the points were covered in different way.","answer_id":3,"value":3},{"answer":"Not all points of the template were covered in the contribution but the structure is clear enough.","answer_id":4,"value":3},{"answer":"The template was not followed but the structure is clear enough.","answer_id":5,"value":2},{"answer":"The contents are not clearly structured at all.","answer_id":6,"value":0}]},{"question":"Did the contributor tag other users?","question_id":"c-3","answers":[{"answer":"No other users were tagged by the contributor.","answer_id":1,"value":5},{"answer":"Used tags are reasonable and all tagged people are connected to the project and/or the contribution.","answer_id":2,"value":5},{"answer":"The contribution contains mentions of other users that are not directly related to the contribution but related in other ways.","answer_id":3,"value":2},{"answer":"The contributor misuses tagging of other users.","answer_id":4,"value":0}]},{"question":"Did the contributor ask for upvotes, resteems, follows or witness vote?","question_id":"c-4","answers":[{"answer":"No","answer_id":1,"value":5},{"answer":"Yes, but not in a way that disturbs readability. ","answer_id":2,"value":5},{"answer":"Yes.","answer_id":3,"value":0}]},{"question":"Was a graphical content like images, charts, videos or screenshots included?","question_id":"c-5","answers":[{"answer":"Yes, the graphical content is included and adds more value to the contribution.","answer_id":1,"value":5},{"answer":"No but the contribution works well without graphical content well.","answer_id":2,"value":4},{"answer":"Yes, but most of the graphical content’s purpose is just for presentational matters.","answer_id":3,"value":3},{"answer":"No relevant or useful graphical content is included in the contribution.","answer_id":4,"value":0}]},{"question":"How would you rate the overall added value?","question_id":"c-6","answers":[{"answer":"Extraordinary value to both the project and the open source community overall.","answer_id":1,"value":20},{"answer":"Significant value to the project or open source community.","answer_id":2,"value":15},{"answer":"Some value to the project or open source community.","answer_id":3,"value":10},{"answer":"Little value to the project or open source community.","answer_id":4,"value":5},{"answer":"No obvious value to project or open source community.","answer_id":5,"value":0}]}]}}" | ||||||
created | 2018-04-23 11:54:21 | ||||||
last_update | 2018-04-23 14:29:12 | ||||||
depth | 0 | ||||||
children | 5 | ||||||
last_payout | 2018-04-30 11:54:21 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 133.812 HBD | ||||||
curator_payout_value | 44.810 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 3,930 | ||||||
author_reputation | 190,232,841,750,255 | ||||||
root_title | "Additional endpoints for SteemPlus backend" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 51,664,802 | ||||||
net_rshares | 29,036,168,322,928 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
arcange | 0 | 99,438,996,675 | 15% | ||
deanliu | 0 | 564,015,007,341 | 50% | ||
raphaelle | 0 | 7,177,565,329 | 15% | ||
shieha | 0 | 860,128,697 | 25% | ||
techslut | 0 | 292,561,476,353 | 100% | ||
thatmemeguy | 0 | 4,791,647,736 | 50% | ||
lydiachan | 0 | 8,653,071,403 | 40% | ||
ripperone | 0 | 990,615,826,298 | 21% | ||
dyancuex | 0 | 932,551,226 | 50% | ||
cryptophunk | 0 | 270,280,278 | 50% | ||
toninux | 0 | 558,736,558 | 50% | ||
jdc | 0 | 1,014,928,765 | 20% | ||
bargolis | 0 | 715,682,121 | 5% | ||
helo | 0 | 24,025,269,195 | 100% | ||
ilyastarar | 0 | 24,284,707,304 | 50% | ||
mahdiyari | 0 | 9,364,605,023 | 10% | ||
ronimm | 0 | 9,565,447,850 | 100% | ||
mufasatoldyou | 0 | 7,715,119,220 | 100% | ||
reko | 0 | 4,724,884,010 | 1% | ||
saksham | 0 | 508,074,097 | 37% | ||
simonluisi | 0 | 2,625,192,920 | 100% | ||
thinkkniht | 0 | 99,841,501 | 75% | ||
healthykitty | 0 | 74,617,308 | 20% | ||
ewuoso | 0 | 4,033,326,618 | 20% | ||
wargof | 0 | 483,458,988 | 10% | ||
inquiringtimes | 0 | 98,071,042,624 | 50% | ||
jfuenmayor96 | 0 | 2,444,470,316 | 50% | ||
onos | 0 | 7,425,671,531 | 100% | ||
instantania.cat | 0 | 1,286,141,239 | 50% | ||
harshallele | 0 | 4,909,919,749 | 50% | ||
clumsysilverdad | 0 | 4,312,945,114 | 8% | ||
jesdn16 | 0 | 2,426,973,725 | 100% | ||
xtramedium | 0 | 323,220,416 | 50% | ||
odibezeking | 0 | 248,262,829 | 100% | ||
naberlin | 0 | 61,768,067 | 100% | ||
deyts | 0 | 64,335,529 | 100% | ||
make-a-whale | 0 | 64,953,230,362 | 14% | ||
yandot | 0 | 4,338,246,529 | 30% | ||
bhim | 0 | 79,915,354 | 50% | ||
stoodkev | 0 | 182,540,150,238 | 100% | ||
luisrod | 0 | 116,014,491 | 15% | ||
ansonoxy | 0 | 1,689,535,419 | 100% | ||
jamesbarraclough | 0 | 529,692,083 | 100% | ||
smafey | 0 | 1,029,292,044 | 50% | ||
lauraesfeliz | 0 | 518,980,066 | 100% | ||
espoem | 0 | 26,862,708,161 | 40% | ||
maneki-neko | 0 | 678,228,473 | 1% | ||
chudilo | 0 | 64,001,285 | 100% | ||
estoy | 0 | 61,399,174 | 10% | ||
silasvogt | 0 | 211,328,998 | 50% | ||
bartosz546 | 0 | 18,965,536,067 | 100% | ||
loshcat | 0 | 2,897,399,888 | 100% | ||
steem-plus | 0 | 29,901,768,886 | 100% | ||
steemline | 0 | 242,252,544 | 100% | ||
baloox | 0 | 532,968,486 | 10% | ||
idlebright | 0 | 3,155,989,615 | 50% | ||
utopian-io | 0 | 25,994,041,955,441 | 17.1% | ||
steaknsteem | 0 | 1,797,035,887 | 50% | ||
masud222 | 0 | 223,086,772 | 50% | ||
moorkedi | 0 | 1,660,512,782 | 100% | ||
kimaben | 0 | 511,651,238 | 25% | ||
kslo | 0 | 2,432,369,597 | 50% | ||
mrmaracucho | 0 | 574,024,222 | 100% | ||
nathalie13 | 0 | 925,105,027 | 100% | ||
not-a-bird | 0 | 4,741,999,491 | 50% | ||
adhew | 0 | 61,124,335 | 10% | ||
bitopia | 0 | 1,455,232,743 | 100% | ||
eleonardo | 0 | 181,874,778 | 10% | ||
zohaib715 | 0 | 322,817,470 | 50% | ||
klizo | 0 | 8,222,673,517 | 50% | ||
evilest-fiend | 0 | 2,481,232,864 | 100% | ||
shenoy | 0 | 10,180,552,026 | 10% | ||
studytext | 0 | 140,816,221 | 25% | ||
greenorange | 0 | 609,471,115 | 100% | ||
checkthisout | 0 | 822,373,978 | 50% | ||
lpv | 0 | 862,920,943 | 2.5% | ||
elex17 | 0 | 178,928,101 | 10% | ||
navx | 0 | 2,042,164,015 | 70% | ||
fabinhocrypto | 0 | 489,637,984 | 10% | ||
handfree42 | 0 | 113,207,387 | 50% | ||
ilovekrys | 0 | 229,482,067 | 50% | ||
zalandir | 0 | 9,252,119,966 | 50% | ||
mayrie28 | 0 | 398,592,383 | 10% | ||
family.app | 0 | 102,142,645 | 100% | ||
adasq | 0 | 2,995,235,850 | 100% | ||
not-a-cat | 0 | 1,051,042,976 | 100% | ||
sachincool | 0 | 3,734,798,335 | 100% | ||
varja | 0 | 103,629,068 | 50% | ||
maphics | 0 | 104,709,791 | 100% | ||
duke77 | 0 | 467,516,513 | 10% | ||
sebastiengllmt | 0 | 307,095,054 | 50% | ||
utopian-1up | 0 | 5,088,675,302 | 100% | ||
ewq | 0 | 745,289,769 | 3% | ||
tiloupsa | 0 | 62,047,295 | 1% | ||
carsonroscoe | 0 | 13,928,689,615 | 80% | ||
animefanrd | 0 | 51,295,696 | 10% | ||
rezawijaya | 0 | 94,929,922 | 50% | ||
wazmung | 0 | 61,132,540 | 10% | ||
irminsoul82 | 0 | 61,384,323 | 10% | ||
happydaddyfr | 0 | 112,431,605 | 1% | ||
camillius | 0 | 54,260,556 | 6% | ||
best-of-football | 0 | 70,397,990 | 10% | ||
zlatkamrs | 0 | 317,826,784 | 70% | ||
salahudeen | 0 | 125,755,645 | 35% | ||
amosbastian | 0 | 14,334,744,865 | 50% | ||
mountainjewel | 0 | 1,386,303,483 | 5% | ||
jegede | 0 | 365,633,395 | 100% | ||
yourmercury | 0 | 518,025,075 | 100% | ||
acrywhif | 0 | 3,466,097,000 | 80% | ||
atelierminceur | 0 | 61,502,340 | 10% | ||
xplore | 0 | 706,909,583 | 50% | ||
alucare | 0 | 414,952,704 | 10% | ||
layanmarissa | 0 | 220,556,844 | 50% | ||
proffgodswill | 0 | 55,176,656 | 10% | ||
thinkingmind | 0 | 2,639,774,863 | 100% | ||
grzesiekb | 0 | 189,606,997,280 | 100% | ||
audiodidacte | 0 | 61,486,000 | 10% | ||
sweeverdev | 0 | 1,058,578,875 | 50% | ||
kodeblacc | 0 | 3,333,251,653 | 50% | ||
isacastillor | 0 | 1,165,797,475 | 95% | ||
devilonwheels | 0 | 1,994,551,871 | 10% | ||
gwys | 0 | 470,233,616 | 50% | ||
rhotimee | 0 | 373,262,465 | 50% | ||
brusd | 0 | 78,270,426 | 13% | ||
jrmiller87 | 0 | 2,361,523,147 | 100% | ||
solomon507 | 0 | 301,048,382 | 50% | ||
patatesyiyen | 0 | 62,109,084 | 12.5% | ||
deejee | 0 | 119,892,669 | 20% | ||
rsteem | 0 | 338,612,647 | 50% | ||
naturallife | 0 | 1,921,738,836 | 88% | ||
onin91 | 0 | 438,247,259 | 50% | ||
isabella394 | 0 | 2,603,181,513 | 100% | ||
emailbox19149 | 0 | 177,855,914 | 50% | ||
voltagrou | 0 | 744,210,046 | 20% | ||
cheesom | 0 | 265,425,688 | 50% | ||
itharagaian | 0 | 577,037,429 | 20% | ||
vianney | 0 | 167,173,985 | 20% | ||
curiousshibby | 0 | 61,121,113 | 10% | ||
piotr42 | 0 | 7,272,445,875 | 100% | ||
holger80 | 0 | 50,926,236,367 | 25% | ||
lemony-cricket | 0 | 11,029,687,237 | 20% | ||
leguidecrypto | 0 | 1,093,787,659 | 10% | ||
michaelizer | 0 | 10,413,051,027 | 100% | ||
saifannur-mzy | 0 | 259,752,422 | 50% | ||
yeswanth | 0 | 611,307,262 | 100% | ||
orlandumike | 0 | 3,461,547,866 | 25% | ||
kaking | 0 | 232,389,731 | 50% | ||
mdnazmulhasan | 0 | 434,672,735 | 100% | ||
exploreand | 0 | 1,178,382,815 | 25% | ||
kelos | 0 | 996,069,722 | 50% | ||
petvalbra | 0 | 615,096,332 | 100% | ||
steemassistant | 0 | 469,961,750 | 100% | ||
hmctrasher | 0 | 429,649,167 | 10% | ||
photohunter3 | 0 | 3,185,097,717 | 100% | ||
photohunter4 | 0 | 3,173,253,965 | 100% | ||
photohunter5 | 0 | 3,165,982,557 | 100% | ||
howtosteem | 0 | 3,285,941,198 | 100% | ||
sylinda | 0 | 220,177,441 | 50% | ||
forexflo | 0 | 51,854,868 | 10% | ||
lebastion | 0 | 327,847,847 | 20% | ||
livsky | 0 | 101,920,633 | 50% | ||
polbot | 0 | 1,256,261,691 | 100% | ||
roj | 0 | 2,591,423,452 | 100% | ||
flugschwein | 0 | 21,253,027,531 | 100% | ||
hellofuture | 0 | 466,180,808 | 10% | ||
raoul.poenar | 0 | 3,580,445,890 | 50% | ||
andiepumpgun | 0 | 256,851,378 | 50% | ||
aderemi01 | 0 | 1,775,475,341 | 50% | ||
diamantnoir | 0 | 60,385,444 | 10% | ||
sampath94 | 0 | 233,502,562 | 50% | ||
killbill73 | 0 | 171,184,041 | 50% | ||
amirdesaingrafis | 0 | 538,435,114 | 50% | ||
fai.zul | 0 | 275,378,481 | 50% | ||
nightdragon | 0 | 236,175,914 | 50% | ||
ulisessabeque | 0 | 221,660,165 | 30% | ||
jacintoelbarouki | 0 | 211,593,314 | 50% | ||
tomlabe | 0 | 73,739,476 | 12% | ||
criptokingko | 0 | 213,950,821 | 50% | ||
aliyu-s | 0 | 478,806,719 | 50% | ||
estherekanem | 0 | 85,866,003 | 20% | ||
muratti | 0 | 61,119,370 | 10% | ||
flinter | 0 | 168,572,072 | 50% | ||
mwfiae | 0 | 3,817,516,848 | 10% | ||
opulence | 0 | 1,806,586,991 | 50% | ||
phasma | 0 | 122,612,788 | 20% | ||
pixelproperty | 0 | 3,097,143,286 | 100% | ||
swisschain | 0 | 61,333,171 | 10% | ||
donjyde | 0 | 226,482,656 | 50% | ||
nonsqtr | 0 | 478,309,538 | 50% | ||
analyzer | 0 | 133,750,686 | 100% | ||
crispycoinboys | 0 | 2,128,133,179 | 30% | ||
gwapoaller | 0 | 307,097,758 | 50% | ||
carloniere | 0 | 126,182,136 | 50% | ||
mrgranville | 0 | 470,608,386 | 100% | ||
khairulfahmi92 | 0 | 434,854,372 | 100% | ||
pl4ym0re | 0 | 61,195,218 | 10% | ||
hackerzizon | 0 | 1,576,565,366 | 6% | ||
bluestorm | 0 | 460,899,167 | 75% | ||
skarnoze | 0 | 9,295,816,407 | 100% | ||
didizion | 0 | 61,162,815 | 10% | ||
jayo | 0 | 174,717,738 | 50% | ||
sugandhaseth | 0 | 601,491,285 | 100% | ||
ayoade96 | 0 | 70,287,947 | 50% | ||
imcore | 0 | 146,461,777 | 10% | ||
naruitchi | 0 | 367,104,530 | 10% | ||
aikochan | 0 | 486,209,291 | 100% | ||
ahmad097 | 0 | 221,350,686 | 50% | ||
cedricguillas | 0 | 24,652,302,413 | 100% | ||
jane83 | 0 | 61,481,685 | 10% | ||
wealth4good | 0 | 295,489,027 | 5% | ||
tyjulie | 0 | 190,445,709 | 100% | ||
lsanek | 0 | 303,042,521 | 50% | ||
lykia | 0 | 297,226,978 | 50% | ||
derasmo | 0 | 3,559,244,192 | 100% | ||
cryptofrench | 0 | 621,796,922 | 10% | ||
realness | 0 | 306,394,150 | 50% | ||
flugbot | 0 | 122,683,991 | 100% | ||
lemcriq | 0 | 57,226,213 | 20% | ||
fanbasefr | 0 | 3,985,960,758 | 10% | ||
studio666 | 0 | 149,652,880 | 10% | ||
jpchabry | 0 | 65,476,248 | 10% | ||
ernoldlvb | 0 | 117,190,396 | 50% | ||
vampirgarfield | 0 | 104,590,943 | 50% | ||
molynar | 0 | 496,347,100 | 100% | ||
gydronium | 0 | 140,598,253 | 30% | ||
viljacques | 0 | 61,229,491 | 10% | ||
touhidalam69 | 0 | 156,161,108 | 25% | ||
eraizel | 0 | 824,323,250 | 50% | ||
albatar | 0 | 61,157,497 | 10% | ||
tioneb44 | 0 | 61,178,200 | 10% | ||
dave-verreault | 0 | 418,932,076 | 50% | ||
joanpablo | 0 | 265,892,162 | 50% | ||
steem-breizh | 0 | 101,965,361 | 30% | ||
alimirza0416 | 0 | 196,300,715 | 50% | ||
abbyrich | 0 | 52,203,771 | 10% | ||
depereenfils | 0 | 61,144,664 | 10% | ||
j4zz | 0 | 1,337,458,392 | 100% | ||
romanleopold | 0 | 1,008,116,439 | 50% | ||
lilirose | 0 | 61,167,447 | 10% | ||
ibellia | 0 | 61,189,712 | 10% | ||
olicountry | 0 | 61,191,729 | 10% | ||
editorspicks | 0 | 61,230,367 | 50% | ||
renac | 0 | 121,379,009 | 10% | ||
mapcompass | 0 | 61,440,687 | 10% | ||
cryptocopy | 0 | 305,591,085 | 50% | ||
algo.coder | 0 | 2,210,906,366 | 25% | ||
artsyunicorn | 0 | 227,343,086 | 50% | ||
wargofosef | 0 | 134,628,768 | 20% | ||
johnson13 | 0 | 236,540,959 | 100% | ||
steemfunder | 0 | 274,098,435 | 50% | ||
solpaman | 0 | 284,233,485 | 50% | ||
ptoews | 0 | 600,003,296 | 100% | ||
chrome.citizen | 0 | 50,132,681 | 50% | ||
swaze | 0 | 305,642,588 | 50% |
Thank you for your contribution. @steemsql is not free anymore and thus we should be very careful in this as this potentially will make the API server a proxy between users and steemsql. However, as I understand this, it is useful to separate logics from the presentation, as you are using the APIs in Chrome extension, thus intelligent users may view-source and get the API directly. On [here](https://github.com/stoodkev/steemplus-api/blob/master/routes/routes.js), line 86, you are missing a *(NOLOCK)* which might impose load to the steemsql server. And I am not sure this is the 'correct' way to get incoming delegation as you are making assumptions that the ID increases as the timestamp increases. You might want to look at alternative solution such as [here](https://stackoverflow.com/questions/43895890/sql-selecting-the-rows-with-max-timestamp-by-group?rq=1) ---------------------------------------------------------------------- Need help? Write a ticket on https://support.utopian.io. Chat with us on [Discord](https://discord.gg/uTyJkNm). **[[utopian-moderator]](https://utopian.io/moderators)**
author | justyy | ||||||
---|---|---|---|---|---|---|---|
permlink | re-stoodkev-additional-endpoints-for-steemplus-backend-20180423t143614370z | ||||||
category | utopian-io | ||||||
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} | ||||||
created | 2018-04-23 14:36:18 | ||||||
last_update | 2018-04-23 14:36:18 | ||||||
depth | 1 | ||||||
children | 2 | ||||||
last_payout | 2018-04-30 14:36:18 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.046 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 1,116 | ||||||
author_reputation | 280,616,224,641,976 | ||||||
root_title | "Additional endpoints for SteemPlus backend" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 51,691,110 | ||||||
net_rshares | 9,513,212,129 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 344,288,463 | 20% | ||
superbing | 0 | 2,064,838,909 | 20% | ||
dailyfortune | 0 | 1,372,955,561 | 20% | ||
dailystats | 0 | 3,403,242,264 | 20% | ||
dailychina | 0 | 2,327,886,932 | 20% |
Hey @justyy, thanks for your comment. I have regular contacts with @stoodkev about his great SteemPlus Chrome add-on and its usage of SteemSQL. We already talked together about "proxy risk" of publicly exposing API and this something @stoodkev perfectly understand. > you are missing a (NOLOCK) which might impose load to the steemsql server As explained in [this post](https://steemit.com/steemsql/@arcange/steemsql-update-12-about-locks-and-performances), the NOLOCK hint is no more required. > making assumptions that the ID increases as the timestamp increases. This is partially correct. ID indeed increase over time as it is an autonumber column. Anyway, should I implement non-linear blocks processing to improve performances, this assumption would become false.
author | arcange |
---|---|
permlink | re-justyy-re-stoodkev-additional-endpoints-for-steemplus-backend-20180423t162005880z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["justyy","stoodkev"],"links":["https://steemit.com/steemsql/@arcange/steemsql-update-12-about-locks-and-performances"],"app":"steemit/0.1"} |
created | 2018-04-23 16:20:06 |
last_update | 2018-04-23 16:20:06 |
depth | 2 |
children | 1 |
last_payout | 2018-04-30 16:20:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 774 |
author_reputation | 1,146,606,601,469,178 |
root_title | "Additional endpoints for SteemPlus backend" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,707,822 |
net_rshares | 0 |
Thanks for taking the time to help us improve these queries!
author | stoodkev |
---|---|
permlink | re-arcange-re-justyy-re-stoodkev-additional-endpoints-for-steemplus-backend-20180423t172139277z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-04-23 17:21:39 |
last_update | 2018-04-23 17:21:39 |
depth | 3 |
children | 0 |
last_payout | 2018-04-30 17:21:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 60 |
author_reputation | 190,232,841,750,255 |
root_title | "Additional endpoints for SteemPlus backend" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,716,787 |
net_rshares | 0 |
@stoodkev i found couple errors with semicolon and EOL check this repository https://github.com/michal13171/steemplus-api
author | michal13171 |
---|---|
permlink | re-stoodkev-additional-endpoints-for-steemplus-backend-20180517t154431110z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["stoodkev"],"links":["https://github.com/michal13171/steemplus-api"],"app":"steemit/0.1"} |
created | 2018-05-17 15:44:18 |
last_update | 2018-05-17 15:44:18 |
depth | 1 |
children | 0 |
last_payout | 2018-05-24 15:44:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 121 |
author_reputation | 0 |
root_title | "Additional endpoints for SteemPlus backend" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 56,207,136 |
net_rshares | 0 |
### Hey @stoodkev! Thank you for the great work you've done! We're already looking forward to your next contribution! #### Fully Decentralized Rewards We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together. #### Utopian Witness! <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for Utopian Witness!</a> We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief. **Want to chat? Join us on Discord https://discord.me/utopian-io**
author | utopian-io |
---|---|
permlink | re-stoodkev-additional-endpoints-for-steemplus-backend-20180425t120112798z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-04-25 12:01:12 |
last_update | 2018-04-25 12:01:12 |
depth | 1 |
children | 0 |
last_payout | 2018-05-02 12:01:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 688 |
author_reputation | 152,955,367,999,756 |
root_title | "Additional endpoints for SteemPlus backend" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,052,484 |
net_rshares | 0 |