<div class="pull-right"> <img src="https://cdn.steemitimages.com/DQmTLtJf11RPjY2wcrqafLs5Yh33K2QeEYBdnXQ9gRtbBke/image.png" /> </div> # Background Right now, if you want to run a full node, you have to make a tough decision about how to enable `account_history_api`. You can back the `account_history_api` plugin with either `account_history` plugin or `account_history_rocksdb` plugin. If you go with `account_history_rocksdb` plugin, you get better performance, but you lose `condenser_api.get_transaction` and `account_history_api.get_transaction ` (see: [#2309](https://github.com/steemit/steem/issues/2309)). For that situation, we see: ``` This API is not supported for account history backed by RocksDB ``` **TL;DR:** In theory, you can use `account_history_rocksdb` and still have the ability to locate a `trx_id` if ... # Theory There is a new API called `transaction_status_api` that hasn't been released yet. But I suspect that once `transaction_status_api` has been merged into `steemd` (see: [#2458](https://github.com/steemit/steem/issues/2458)), API client tools should be able to simulate the original behavior of `*.get_transaction` by calling `transaction_status_api.find_transaction`, getting either `status` of `within_reversible_block` or `within_irreversible_block` along with the `block_num`. Once we have `block_num`, we can request the block and grab the original transaction with `trx_id`. **Update [2019-09-16]:** You *can* do this, but only for a 64,000 block window. I didn't know this at the time. # Example Start up a node that has `transaction_status_api` enabled ... ```curl docker run -d -p 8090:8090 inertia/tintoy:transaction-status-api ``` I have a `trx_id` but no other information (in reality, I got this by asking for block 95 from `tintoy`): ``` 070a2a89005ef3c4ef3d881d069d143f78861828 ``` So I can call `transaction_status_api.find_transaction`: ```bash curl -s --data '{"jsonrpc":"2.0", "method":"transaction_status_api.find_transaction", "params": {"transaction_id": "070a2a89005ef3c4ef3d881d069d143f78861828"}, "id":1}' http://localhost:8090 | jq ``` Returns: ```json { "jsonrpc": "2.0", "result": { "status": "within_irreversible_block", "block_num": 95 }, "id": 1 } ``` Oh look! It's from block 95. Imagine that. Now I ask for the block: ```bash curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block", "params":{"block_num":95}, "id":1}' http://localhost:8090 | jq ``` In the result (not show, not enough resource credits today) I can look at `transaction_ids` and find my `trx_id`. The index at my `trx_id` in `transaction_ids` is the same index at the transaction I want of `transactions`. **It works, all without `account_history` plugin enabled!**
author | inertia |
---|---|
permlink | full-nodes-will-have-gettransaction-without-accounthistory-plugin |
category | steem |
json_metadata | {"app":"steemit/0.1","tags":["steem","api","steemd","rocksdb"],"image":["https://cdn.steemitimages.com/DQmTLtJf11RPjY2wcrqafLs5Yh33K2QeEYBdnXQ9gRtbBke/image.png"],"links":["https://github.com/steemit/steem/issues/2309","https://github.com/steemit/steem/issues/2458"],"format":"markdown"} |
created | 2018-12-03 09:35:51 |
last_update | 2019-09-16 13:55:51 |
depth | 0 |
children | 3 |
last_payout | 2018-12-10 09:35:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 12.699 HBD |
curator_payout_value | 4.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,758 |
author_reputation | 346,568,901,399,561 |
root_title | "Full Nodes Will Have get_transaction Without account_history Plugin" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 76,284,670 |
net_rshares | 27,143,304,133,822 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pfunk | 0 | 1,336,686,895,031 | 25% | ||
team | 0 | 84,733,814,652 | 10% | ||
makishart | 0 | 31,965,852,719 | 36% | ||
acidyo | 0 | 8,818,909,921,099 | 70% | ||
gtg | 0 | 1,713,758,106,038 | 25% | ||
matt-a | 0 | 3,517,348,750,877 | 100% | ||
ausbitbank | 0 | 1,841,846,712,421 | 100% | ||
transisto | 0 | 331,449,453,496 | 100% | ||
inertia | 0 | 882,200,232,225 | 100% | ||
arrowj | 0 | 25,060,625,485 | 100% | ||
brianphobos | 0 | 30,328,956,097 | 10% | ||
fabien | 0 | 1,238,609,330,239 | 100% | ||
timcliff | 0 | 1,361,119,800,994 | 84% | ||
gonzo | 0 | 365,519,770 | 25% | ||
johnvibes | 0 | 952,921,787 | 3% | ||
eforucom | 0 | 19,162,859,392 | 1% | ||
vannour | 0 | 4,051,462,482 | 6.25% | ||
techslut | 0 | 322,816,436,644 | 100% | ||
steemcultures | 0 | 127,826,900 | 6.25% | ||
steemworld | 0 | 436,381,768 | 6.25% | ||
seablue | 0 | 26,745,961,897 | 100% | ||
wilbur | 0 | 50,269,970,040 | 100% | ||
kotturinn | 0 | 123,109,920,070 | 50% | ||
elgeko | 0 | 146,805,769,108 | 50% | ||
prime-cleric | 0 | 0 | 22% | ||
justinashby | 0 | 4,583,464,356 | 100% | ||
altafalazzam | 0 | 1,869,038,278 | 100% | ||
borislavzlatanov | 0 | 2,817,012,132 | 100% | ||
followbtcnews | 0 | 1,059,121,802,102 | 100% | ||
tytran | 0 | 224,395,316,083 | 100% | ||
helo | 0 | 48,807,271,817 | 100% | ||
drakos | 0 | 2,758,843,898,110 | 100% | ||
howo | 0 | 290,337,174,806 | 100% | ||
themarkymark | 0 | 325,947,669,899 | 40% | ||
hotties | 0 | 12,210,447 | 10% | ||
amc | 0 | 0 | 10% | ||
javelin | 0 | 0 | 10% | ||
mach | 0 | 0 | 10% | ||
hog | 0 | 13,381,846 | 10% | ||
zelus | 0 | 0 | 10% | ||
hypnos | 0 | 0 | 10% | ||
pontus | 0 | 0 | 10% | ||
apophis | 0 | 0 | 10% | ||
racecar | 0 | 13,643,519 | 10% | ||
hogzilla | 0 | 13,643,396 | 10% | ||
skunkape | 0 | 13,643,893 | 10% | ||
pools | 0 | 0 | 10% | ||
dodgeball | 0 | 0 | 10% | ||
jamesbarraclough | 0 | 621,475,050 | 100% | ||
steem-plus | 0 | 24,169,912,253 | 2.61% | ||
max1994 | 0 | 1,261,952,721 | 100% | ||
bobinson | 0 | 18,870,193,362 | 61% | ||
wallacecarranza | 0 | 317,237,644 | 100% | ||
mvanyi | 0 | 2,674,082,690 | 100% | ||
holozaps | 0 | 83,626,653 | 35% | ||
aamirqazi | 0 | 374,628,334 | 100% | ||
holger80 | 0 | 321,733,636,710 | 68.75% | ||
didic | 0 | 17,876,970,164 | 20% | ||
pranks | 0 | 0 | 10% | ||
edgarbevens | 0 | 165,657,048 | 50% | ||
nikopu | 0 | 513,554,042 | 100% | ||
vika09 | 0 | 513,570,943 | 100% | ||
inn25 | 0 | 512,471,588 | 100% | ||
boyarovkostya | 0 | 513,324,718 | 100% | ||
bestgirl | 0 | 512,577,226 | 100% | ||
maruse4ka | 0 | 513,336,892 | 100% | ||
klaudiuszkrl | 0 | 512,328,560 | 100% | ||
ushkurwike | 0 | 512,347,664 | 100% | ||
kafupraise | 0 | 55,117,515 | 36% | ||
hommike | 0 | 512,432,471 | 100% | ||
halfpox | 0 | 512,256,865 | 100% | ||
fedykosoy00 | 0 | 512,226,725 | 100% | ||
hallbill94 | 0 | 513,009,891 | 100% | ||
pferdynand | 0 | 513,055,621 | 100% | ||
yomismosoy | 0 | 90,363,668 | 24% | ||
woodtongue | 0 | 512,647,881 | 100% | ||
hoovesreport | 0 | 512,222,702 | 100% | ||
rioplotunook | 0 | 541,642,199 | 100% | ||
frugiferde | 0 | 74,478,820 | 100% | ||
stitpizgolddi | 0 | 536,993,209 | 100% | ||
antonpalesov | 0 | 512,425,299 | 100% | ||
trubadurkir | 0 | 513,136,805 | 100% | ||
whipinterrupt | 0 | 512,394,310 | 100% | ||
icingexpenses | 0 | 513,241,413 | 100% | ||
ploverpick | 0 | 512,281,572 | 100% | ||
liaguelati | 0 | 532,580,069 | 100% | ||
bumpyforster | 0 | 511,558,556 | 100% | ||
nieloagranca | 0 | 4,538,079,660 | 4% | ||
jessicaolmuf | 0 | 541,829,618 | 100% | ||
steemchoose | 0 | 21,469,063,775 | 1.05% | ||
steeming-hot | 0 | 22,488,570 | 0.25% | ||
abalonegrateful | 0 | 512,528,792 | 100% | ||
goldbeastly | 0 | 513,366,659 | 100% | ||
sordinistoat | 0 | 513,143,929 | 100% | ||
blueberryeither | 0 | 513,098,464 | 100% | ||
emmad6 | 0 | 512,812,805 | 100% | ||
no-matter | 0 | 512,719,235 | 100% | ||
alexandra612l | 0 | 534,565,653 | 100% | ||
rachelsj1bw | 0 | 534,552,010 | 100% | ||
faithmso0b | 0 | 532,443,636 | 100% | ||
massfishing | 0 | 513,593,969 | 100% | ||
bikinivinyl | 0 | 513,444,419 | 100% | ||
pullsympathize | 0 | 513,824,484 | 100% | ||
ciedustsouthti | 0 | 540,859,206 | 100% | ||
forpucabmai | 0 | 540,808,769 | 100% | ||
essivinmaps | 0 | 538,979,273 | 100% | ||
steem-ua | 0 | 72,311,021,240 | 0.61% | ||
devidhodz | 0 | 516,215,462 | 100% | ||
neshferdin | 0 | 516,542,695 | 100% | ||
grigoriyshmatkov | 0 | 516,220,323 | 100% | ||
perlov11 | 0 | 516,190,326 | 100% | ||
zelc | 0 | 516,597,885 | 100% | ||
kaczynski | 0 | 56,234,333 | 100% | ||
criptomir | 0 | 311,004,220 | 100% | ||
observedkey | 0 | 516,531,485 | 100% | ||
clustergummy | 0 | 516,587,160 | 100% | ||
wipeelidir | 0 | 516,157,099 | 100% | ||
glotstoke | 0 | 516,551,163 | 100% | ||
vlbelon1987 | 0 | 516,575,007 | 100% | ||
mcvas9 | 0 | 516,123,499 | 100% | ||
lico.ryka | 0 | 516,582,957 | 100% | ||
dorrotiz | 0 | 517,259,673 | 100% | ||
alsenrivonlo | 0 | 516,804,276 | 100% | ||
acceptremove | 0 | 516,197,065 | 100% | ||
godwitresources | 0 | 516,564,553 | 100% | ||
goatfermented | 0 | 517,078,062 | 100% | ||
banffvulcan | 0 | 517,110,275 | 100% | ||
windworlmetmigu | 0 | 516,180,370 | 100% |
I guess, as long as it was built with `-DSKIP_BY_TX_ID=OFF`.
author | gtg |
---|---|
permlink | re-inertia-full-nodes-will-have-gettransaction-without-accounthistory-plugin-20181203t135229881z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-12-03 13:52:30 |
last_update | 2018-12-03 13:52:30 |
depth | 1 |
children | 0 |
last_payout | 2018-12-10 13:52: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 | 60 |
author_reputation | 461,829,867,647,270 |
root_title | "Full Nodes Will Have get_transaction Without account_history Plugin" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 76,294,280 |
net_rshares | 0 |
Hi, @inertia! You just got a **2.61%** upvote from SteemPlus! To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn. If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
author | steem-plus |
---|---|
permlink | full-nodes-will-have-gettransaction-without-accounthistory-plugin---vote-steemplus |
category | steem |
json_metadata | {} |
created | 2018-12-03 21:59:45 |
last_update | 2018-12-03 21:59:45 |
depth | 1 |
children | 0 |
last_payout | 2018-12-10 21:59:45 |
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 | 434 |
author_reputation | 247,952,188,232,400 |
root_title | "Full Nodes Will Have get_transaction Without account_history Plugin" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 76,314,692 |
net_rshares | 0 |
#### Hi @inertia! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your **UA** account score is currently 6.469 which ranks you at **#165** across all Steem accounts. Your rank has not changed in the last three days. In our last Algorithmic Curation Round, consisting of 219 contributions, your post is ranked at **#142**. ##### 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-full-nodes-will-have-gettransaction-without-accounthistory-plugin-20181204t022550z |
category | steem |
json_metadata | "{"app": "beem/0.20.9"}" |
created | 2018-12-04 02:25:51 |
last_update | 2018-12-04 02:25:51 |
depth | 1 |
children | 0 |
last_payout | 2018-12-11 02:25:51 |
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 | 678 |
author_reputation | 23,214,230,978,060 |
root_title | "Full Nodes Will Have get_transaction Without account_history Plugin" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 76,323,460 |
net_rshares | 0 |