Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and use the NEO client plug-in

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the "NEO client plug-in how to install and use" related knowledge, Xiaobian through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "NEO client plug-in how to install and use" article can help you solve the problem.

Since NEO 2.9.0, some additional functions have been independently encapsulated in plug-ins for calling in order to improve the security, stability and flexibility of nodes. Users can choose the extension functions they need without having to call them through additional parameters every time they start NEO-CLI, which avoids a lot of human errors and simplifies a series of tedious instructions such as opening wallets and calling API. Click here to download Plugins.

The plug-in function ApplicationLogs automatically synchronizes the Intelligent contract Log (ApplicationLogs) in RPC mode, which has been stored in LevelDB format. ImportBlocks synchronization offline package is required for the exchange. RpcSecurity is required to improve RPC security. Optional simple strategy for SimplePolicy to enable consensus. StatesDumper is required to export NEO-CLI status data to build a private chain. Optional installation plug-in

To install the plug-in, create a new Plugins folder under the client root directory (note the initial capitalization), and then copy the extracted plug-in to it

API interface getapplicationlog method in plug-in

Get the contract log based on the specified NEP-5 transaction ID. The complete contract log is recorded in the ApplicationLogs directory.

This method is provided by the plug-in and can be called only if the ApplicationLogs plug-in is installed.

Parameter description

Txid: transaction ID

Invocation example

Request body:

{"jsonrpc": "2.0"," method ":" getapplicationlog "," params ": [" 0xff488264c1abf9f5c3c17ed8071f6dd3cd809b25797a43af49316490ded8fb07 "]," id ": 1}

Response body:

{"jsonrpc": "id": 1, "result": {"txid": "0xff488264c1abf9f5c3c17ed8071f6dd3cd809b25797a43af49316490ded8fb07", "executions": [{"trigger": "Application", "contract": "0x0110a8f666bcc650dc0b544e71c31491b061c79e", "vmstate": "HALT, BREAK" "gas_consumed": "2.855", "stack": [{"type": "Integer", "value": "1"}] "notifications": [{"contract": "0xb9d7ea3062e6aeeb3e8ad9548220c4ba1361d263", "state": {"type": "Array" "value": [{"type": "ByteArray", "value": "7472616e73666572"} {"type": "ByteArray", "value": "e3069da508f128069a0cd2544b0728ccbacdfb43"}, {"type": "ByteArray" "value": "d142f89e93b2717426a8130c37dad93aad70cff5"}, {"type": "ByteArray" "value": "00e1f50500000000"}]}}

Note: where gas_consumed indicates the number of gas consumed by the transaction, that is, the transaction fee. There will be a free quota of 10 gas for each transaction. If the quantity is less than 10, no handling fee will be charged. If it is greater than 10, then the portion over 10 will be charged as the handling fee and rounded up. For example, if gas_consumed = 12.3, the actual handling fee is 3 gas.

This is the end of the content about "how to install and use the NEO client plug-in". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report