4

I launched private EOS network with bios boot tutorial. Then I pushed some transactions to the network. Now I want to retrieve all actions for an account useraaaaaaah. But every time I make a request to /v1/history/get_actions I get different actions count. Of course when I make requests there's no running processes pushing transactions to the network so actions' count must be same every time.

Example:

aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
146
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
148
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
142
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
141
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
143
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
136
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
142
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
147
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
145
aleksey:~ aleksey$ curl -s -X POST http://127.0.0.1:8000/v1/history/get_actions -d '{"account_name": "useraaaaaaag", "pos": -1, "offset": -200}' | jq '.actions | length'
140

I tried to change pos and offset params but id didn't help. I found out that it works as expected only when offset <= 100. But this way I can't get all actions.

What am I doing wrong and how can I solve my problem?

Thanks in advance.

0

It depends on your computer, the get_actions method will be finished when max time arrived, in default, it is 100ms, so if your computer is not in performance, it will only return few actions than you want.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.