I've been worrying about this edge case, and it turns out that it's actually random. For instance, in block 1896844, https://steem-engine.rocks/b/1896844 there are two txs of @steemfinex (this is a very rare case and thank you for using it :) when history is called, it returns the order randomly. Same block, so timestamp is the same, so no way to distinguish. no tx order is returned, so no way to sort. Any other way to resolve this than fetching the block? => my solution is adding txid as the second sorting key Hopefully, the order will be fixed. --- 스팀엔진 api history가져올때 같은 블록에 한 계정 여러 트랜잭션이 있으면 history api로는 소팅할 방법이 없는 문제가 있습니다. 블록에는 순서가 할당되어있긴한데 history에서는 현재 해결이 안 됩니다.
author | blockchainstudio | ||||||
---|---|---|---|---|---|---|---|
permlink | steem-engine-api-history-order-problem-for-multiple-txs-in-one-block | ||||||
category | steemfinex | ||||||
json_metadata | "{"community": "busy", "app": "busy/2.5.6", "tags": ["steemfinex", "steemengine", "zzan", "palnet", "steemleo", "neoxian", "marlians", "actnearn", "sct", "liv", "busy"]}" | ||||||
created | 2019-09-15 15:27:12 | ||||||
last_update | 2019-09-16 08:22:09 | ||||||
depth | 0 | ||||||
children | 6 | ||||||
last_payout | 2019-09-22 15:27:12 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 1.243 HBD | ||||||
curator_payout_value | 1.596 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 690 | ||||||
author_reputation | 178,988,499,015,921 | ||||||
root_title | "steem-engine api history order problem for multiple txs in one block" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 90,601,938 | ||||||
net_rshares | 9,847,738,166,309 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
morning | 0 | 704,320,999,743 | 100% | ||
webdeals | 0 | 42,796,060,793 | 1% | ||
anomaly | 0 | 176,856,955 | 1% | ||
arama | 0 | 159,411,552 | 100% | ||
eforucom | 0 | 5,149,309,074 | 5% | ||
dylanhobalart | 0 | 36,701,281,002 | 40% | ||
busy.pay | 0 | 3,169,410,069,820 | 15.24% | ||
steemitboard | 0 | 31,951,423,836 | 2% | ||
elviento | 0 | 10,631,291,262 | 6.73% | ||
hwan100 | 0 | 249,064,394,068 | 20% | ||
rycharde | 0 | 1,567,681,539 | 2.95% | ||
jamjamfood | 0 | 58,021,519,151 | 25% | ||
stylegold | 0 | 680,115,633 | 100% | ||
ew-and-patterns | 0 | 140,391,956,037 | 3% | ||
bramd | 0 | 738,537,752,269 | 20% | ||
funaccountant | 0 | 367,810,006 | 100% | ||
crokkon | 0 | 51,740,112,107 | 100% | ||
accelerator | 0 | 6,865,257,370 | 0.39% | ||
ganmo92 | 0 | 427,546,289 | 100% | ||
captainklaus | 0 | 202,951,804,687 | 100% | ||
katamori | 0 | 266,898,107 | 3.2% | ||
alixs | 0 | 406,215,211 | 100% | ||
imisstheoldkanye | 0 | 2,849,951,300 | 1% | ||
jessiebb | 0 | 193,339,299 | 100% | ||
pediatrics | 0 | 93,979,973,354 | 100% | ||
asimmy | 0 | 423,259,074 | 100% | ||
newsrx | 0 | 74,650,447 | 6.4% | ||
eversloth | 0 | 332,332,461,077 | 100% | ||
gosainkund | 0 | 15,503,750,554 | 100% | ||
rokyupjung | 0 | 5,090,357,421 | 25% | ||
portugalcoin | 0 | 18,767,474,625 | 20% | ||
sargoon | 0 | 149,744,409 | 3.2% | ||
literaturk | 0 | 2,514,031,837 | 100% | ||
crypto4euro | 0 | 215,084,290 | 50% | ||
akifane | 0 | 2,045,379,278 | 100% | ||
rasit | 0 | 385,050,165 | 100% | ||
joeypark | 0 | 722,407,659,757 | 25% | ||
maveraunnehr | 0 | 403,263,577 | 100% | ||
aaronhong | 0 | 92,217,826,120 | 100% | ||
stmdev | 0 | 143,049,523 | 1% | ||
alitavirgen | 0 | 25,131,588,595 | 12.4% | ||
sunny1124 | 0 | 50,505,152,796 | 100% | ||
rextylerblunt | 0 | 148,267,953 | 50% | ||
angelinafx | 0 | 1,066,338,180 | 0.35% | ||
jaydih | 0 | 554,140,498,025 | 15% | ||
andrewma | 0 | 0 | 0.2% | ||
getpromoted | 0 | 274,874,714 | 100% | ||
kimseun | 0 | 273,633,639 | 15% | ||
blockchainstudio | 0 | 189,949,183,378 | 100% | ||
steemfire | 0 | 197,497,482 | 50% | ||
simplewole | 0 | 150,468,089 | 50% | ||
nancmedle | 0 | 412,498,545 | 100% | ||
ronbong | 0 | 170,214,465 | 10% | ||
studygroup | 0 | 54,614,138,002 | 100% | ||
queendom | 0 | 228,744,738 | 50% | ||
kanadaramagi123 | 0 | 81,553,749,550 | 15% | ||
abbeyp448 | 0 | 436,697,500 | 100% | ||
suonghuynh | 0 | 15,863,167,012 | 0.35% | ||
emmywell | 0 | 125,165,973 | 50% | ||
loveecho | 0 | 1,245,548,144 | 15% | ||
mariajoseperez31 | 0 | 456,245,781 | 100% | ||
jenirianarodrigu | 0 | 449,161,652 | 100% | ||
quinteroyolanda | 0 | 108,981,020 | 100% | ||
merlinbarrera249 | 0 | 454,835,375 | 100% | ||
danielarozo35 | 0 | 438,263,783 | 100% | ||
naibely047silva | 0 | 449,545,007 | 100% | ||
brendoliacardena | 0 | 449,690,825 | 100% | ||
americacastaneda | 0 | 449,981,536 | 100% | ||
inesprieto1jh | 0 | 445,816,944 | 100% | ||
katherinerojas12 | 0 | 449,543,028 | 100% | ||
rosanieves010 | 0 | 449,529,634 | 100% | ||
ba6456196 | 0 | 445,816,459 | 100% | ||
frogspawn | 0 | 362,040,754 | 100% | ||
attention-seeker | 0 | 1,081,782,359 | 100% | ||
tech-coin | 0 | 2,785,688,413 | 100% | ||
angelslake | 0 | 155,502,940 | 15% | ||
deralios | 0 | 206,513,771 | 100% | ||
karlacaricote | 0 | 453,389,723 | 100% | ||
randyacostahp | 0 | 445,831,010 | 100% | ||
agustinpachecobc | 0 | 520,402,611 | 100% | ||
alejandrapernias | 0 | 449,270,963 | 100% | ||
armandoorozcopr | 0 | 449,658,781 | 100% | ||
bernardomedinajk | 0 | 449,279,730 | 100% | ||
donaldoviloriatd | 0 | 449,614,167 | 100% | ||
jenifergutierrez | 0 | 449,561,754 | 100% | ||
jessicavaleroqu | 0 | 449,458,628 | 100% | ||
jesushadrianrome | 0 | 449,669,236 | 100% | ||
mercedescordero | 0 | 449,508,422 | 100% | ||
mariluzventuracl | 0 | 449,610,177 | 100% | ||
amandarioslake | 0 | 449,706,810 | 100% | ||
frankespinolk | 0 | 449,695,526 | 100% | ||
palenciahenderso | 0 | 449,543,776 | 100% | ||
smartvote | 0 | 15,272,064,157 | 0.35% | ||
charityblob | 0 | 412,031,314 | 100% | ||
glory7 | 0 | 37,233,701,938 | 100% | ||
volare511 | 0 | 1,841,680,313 | 100% | ||
walisongo | 0 | 70,956,341 | 50% | ||
flyhigh0103 | 0 | 93,670,197,723 | 100% | ||
peterpa | 0 | 44,755,074,907 | 100% | ||
coinmarketcal | 0 | 19,565,068,349 | 100% | ||
alien-mastermind | 0 | 154,146,120 | 50% | ||
wordit | 0 | 130,801,863 | 15% | ||
sj-jeong | 0 | 654,934,346,320 | 15% | ||
tinker-bell | 0 | 9,856,504,123 | 100% | ||
wondumyungga | 0 | 155,593,886 | 15% | ||
englishstudy | 0 | 24,147,400,717 | 75% | ||
laissez-faire | 0 | 51,511,017 | 100% | ||
kissfirer | 0 | 308,858,566 | 25% | ||
ayisigi | 0 | 317,692,137 | 100% | ||
aquawink | 0 | 79,273,655,674 | 15% | ||
teamcn-shop | 0 | 2,191,568,302 | 5.81% | ||
steem-ua | 0 | 308,260,994,463 | 6.4% | ||
ringit | 0 | 328,942,589 | 15% | ||
gomdory | 0 | 98,566,972,461 | 100% | ||
tinakoya | 0 | 436,440,264 | 50% | ||
coreabeforekorea | 0 | 290,114,630,848 | 15% | ||
ratedhigh | 0 | 446,852,129 | 100% | ||
yongsam | 0 | 1,357,436,470 | 100% | ||
rick99riordan | 0 | 446,479,030 | 100% | ||
imkinggirl | 0 | 129,286,801 | 50% | ||
blackknight1423 | 0 | 450,876,167 | 100% | ||
valdelia81 | 0 | 445,225,512 | 100% | ||
twizeh | 0 | 18,631,667,522 | 50% | ||
iskenderk | 0 | 15,703,692,693 | 100% | ||
bluesniper | 0 | 34,016,600,781 | 7.56% | ||
phatima | 0 | 237,800,883 | 7% | ||
coinmarketcal2 | 0 | 5,859,276,540 | 100% | ||
hamsa.quality | 0 | 390,857,753 | 5% | ||
daijiworld | 0 | 6,719,739,970 | 100% | ||
igame | 0 | 867,579,131 | 50% | ||
hedgeserv | 0 | 503,093,024 | 100% | ||
mustard-seed | 0 | 70,165,246,538 | 15% | ||
haxxdump | 0 | 7,250,141 | 5% | ||
ahmrahmdam | 0 | 1,201,354,709 | 50% | ||
king.zal | 0 | 100,324,831 | 100% | ||
oneplus7 | 0 | 90,435,907 | 100% | ||
sct.dean | 0 | 2,011,295,027 | 100% | ||
map10k | 0 | 3,949,915,755 | 1.27% | ||
leeyh3 | 0 | 1,360,353,927 | 100% | ||
cn-zzang | 0 | 285,147,481 | 2% | ||
cn-leo | 0 | 47,040,380 | 2% | ||
cn-sct | 0 | 1,208,893,633 | 2% | ||
scotauto | 0 | 4,154,586,919 | 100% | ||
perrymine | 0 | 36,963,922,358 | 12.4% | ||
finex | 0 | 212,565,397,394 | 99.25% | ||
steemfinex | 0 | 5,753,774,393 | 99.25% | ||
freemanjaro | 0 | 1,896,904,157 | 100% | ||
ericetchen | 0 | 2,208,473,511 | 2.29% | ||
mk-leo-token | 0 | 287,910,457 | 9% |
author | crokkon |
---|---|
permlink | pxvteg |
category | steemfinex |
json_metadata | "{"app": ""}" |
created | 2019-09-15 16:49:09 |
last_update | 2022-09-18 07:41:57 |
depth | 1 |
children | 2 |
last_payout | 2019-09-22 16:49:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.010 HBD |
curator_payout_value | 0.010 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1 |
author_reputation | 81,214,366,861,104 |
root_title | "steem-engine api history order problem for multiple txs in one block" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,604,254 |
net_rshares | 97,595,648,115 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ismailkah | 0 | 4,928,980,681 | 25% | ||
blockchainstudio | 0 | 92,666,667,434 | 50% |
yes, of course i can detect the situation. and one way to resolve this by using history only is adding more sort key (txid should be enough) which is the way i'm thinking of atm. But it'd be much better if the api itself returns them consistently. e.g., steem has `transaction_num` and based on https://steem-engine.rocks/b/1896844 steem-engine seems to have such a thing. then why not returning them consistently.
author | blockchainstudio |
---|---|
permlink | re-crokkon-pxvteg-20190915t170219825z |
category | steemfinex |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["steemfinex"],"users":[],"links":["https://steem-engine.rocks/b/1896844"],"image":[]} |
created | 2019-09-15 17:02:24 |
last_update | 2019-09-15 17:02:24 |
depth | 2 |
children | 1 |
last_payout | 2019-09-22 17:02:24 |
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 | 417 |
author_reputation | 178,988,499,015,921 |
root_title | "steem-engine api history order problem for multiple txs in one block" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,604,619 |
net_rshares | 0 |
.
author | crokkon |
---|---|
permlink | pxvvfu |
category | steemfinex |
json_metadata | "{"app": ""}" |
created | 2019-09-15 17:33:09 |
last_update | 2022-09-18 07:41:54 |
depth | 3 |
children | 0 |
last_payout | 2019-09-22 17:33:09 |
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 | 1 |
author_reputation | 81,214,366,861,104 |
root_title | "steem-engine api history order problem for multiple txs in one block" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,605,653 |
net_rshares | 4,743,346,702 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ismailkah | 0 | 4,743,346,702 | 25% |
* 태그 작성 가이드라인 준수는 콘텐츠 관리와 글에 대한 접근성을 높이기 위해 반드시 필요한 절차입니다. ( It is an essential step to adhere tags guideline, manage content and make access better to your postings.) * 스팀코인판에서 활용 가능한 태그는 크게 [보상태그 / 언어태그/ 주제태그]로 구분할 수 있습니다. 보상태그와 언어태그는 필수입니다.(Tags that can be largely grouped into [Main Community / Language / Topic] in community. The language and topic tags are required.) (예) 한국어로 작성한 자유 주제 포스팅((E.g) Posting for free topic in English) * 보상태그: #sct 필수 (Main Community: #sct (required)) * 언어태그: #sct-kr 필수(Language: #sct-en (required)) * 주제태그: #sct-freeboard 필수(Topic: #sct-freeboard(required)) * 아래 보기에 있는 태그들 중에서 선택 > 보상태그(Main) : #sct > 언어태그(Language) : #sct-kr #sct-cn #sct-en #sct-fr #sct-deutsch #sct-polish #sct-jp > 주제태그(Topic) : #sct-freeboard #sct-dev #sct-invest #sct-market #sct-game #sct-movie #sct-book #sct-mining #sct-sports #sct-cartoon #sct-meetup #sct-diary #sct-bitcoin #sct-altcoin #sct-alliance #sct-userguide #sct-otc #sct-prediction #sct-qna (원하시는 추가 태그가 있으면 [여기](/@sct.hboy/notice-sct)에 댓글을 작성하여 주십시오.) (If you want to add a tag, please comment [here](/@sct.hboy/notice-sct).) * 태그 작성 가이드라인을 준수하는 것이 태그 사용을 규제하는 정책보다 스팀코인판의 가치를 높이는 길이라고 생각합니다.(We believe that adhering tags guideline is a way to increase the value of SteemCoinpan community than that of forcing tags limitations.) --- <center> </center> ---
author | sct.notice |
---|---|
permlink | re-blockchainstu6392 |
category | steemfinex |
json_metadata | "{"community": "busy", "app": "busy/2.5.6", "tags": ["steemfinex", "steemengine", "zzan", "palnet", "steemleo", "neoxian", "marlians", "actnearn", "sct", "liv", "busy"]}" |
created | 2019-09-15 15:27:18 |
last_update | 2019-09-15 15:27:18 |
depth | 1 |
children | 0 |
last_payout | 2019-09-22 15:27: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 | 1,523 |
author_reputation | 60,586,092,807 |
root_title | "steem-engine api history order problem for multiple txs in one block" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,601,942 |
net_rshares | 0 |
#### Hi @blockchainstudio! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your **UA** account score is currently 6.405 which ranks you at **#193** across all Steem accounts. Your rank has not changed in the last three days. In our last Algorithmic Curation Round, consisting of 103 contributions, your post is ranked at **#16**. ##### Evaluation of your UA score: * You've built up a nice network. * The readers like your work! * Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
author | steem-ua |
---|---|
permlink | re-steem-engine-api-history-order-problem-for-multiple-txs-in-one-block-20190916t084621z |
category | steemfinex |
json_metadata | "{"app": "beem/0.21.0"}" |
created | 2019-09-16 08:46:24 |
last_update | 2019-09-16 08:46:24 |
depth | 1 |
children | 0 |
last_payout | 2019-09-23 08:46:24 |
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 | 686 |
author_reputation | 23,214,230,978,060 |
root_title | "steem-engine api history order problem for multiple txs in one block" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,624,248 |
net_rshares | 0 |
Congratulations @blockchainstudio! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@blockchainstudio/comments.png?201909151642"></td><td>You made more than 5500 comments. Your next target is to reach 6000 comments.</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@blockchainstudio) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=blockchainstudio)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> To support your work, I also upvoted your post! > You can upvote this notification to help all Steem users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
author | steemitboard |
---|---|
permlink | steemitboard-notify-blockchainstudio-20190915t171829000z |
category | steemfinex |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-09-15 17:18:30 |
last_update | 2019-09-15 17:18:30 |
depth | 1 |
children | 0 |
last_payout | 2019-09-22 17:18:30 |
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 | 910 |
author_reputation | 38,975,615,169,260 |
root_title | "steem-engine api history order problem for multiple txs in one block" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,605,196 |
net_rshares | 0 |