In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to call getactions in eosjs. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
When using eosjs, how do I call the get_actions interface of the history module to get the user's historical transaction actions?
For an in-depth and systematic study of application development on Eos, this tutorial is recommended: introduction to Eos Intelligent contract and Dapp Development.
The encapsulation of eosjs does not correspond to the rpc api interface of eos. In eosjs, the method corresponding to the get_actions interface of history module is named history_get_actions. Therefore, the calling method is as follows:
Import {JsonRpc} from "eosjs" const rpc = new JsonRpc ('http://127.0.0.1:8888')(async () = > {let ret = await rpc.history_get_actions (' eosio') console.log (ret)}) ()
In the above code, you create a JsonRpc object and then call its history_get_actions method to get the historical transaction action for the eosio account. It is important to note that nodeos needs to enable the history module and set the filter-on option correctly in the configuration file, for example, tracking all transactions:
Filter-on=* after reading the above, do you have any further understanding of how to call getactions in eosjs? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.