Witness Node Plugins API Update: Add Testing for Hivemind

in witness-category •  last year  (edited)

Steem Hivemind is a distributed database layer which builds on top of the Steem blockchain. It provides an API for developers to store and query arbitrary application data on the blockchain, as well as a declarative rules engine which allows users to define custom rules for data processing. This allows developers to create more complex decentralized applications with fewer lines of code.

In my Node Testing Tool, I have provided a Plugins Testing Feature which is based on the API e.g.

$ curl -s --data "https://api.justyy.com" https://steem-apps.justyy.workers.dev/plugins

image.png

As you probably notice, I have added another two tests (also fix one other bug of testing the plugin network_broadcast_api)

Plugin hive - this is basically calling the following API (to ensure the basic hivemind is configured):

curl -s --data '{"jsonrpc":"2.0","id":0,"method":"hive.db_head_state","params":{}}' https://api.justyy.com

And a success response should look like this:

{"jsonrpc":"2.0","result":{"db_head_block":75584011,"db_head_time":"2023-06-17 10:11:33","db_head_age":12},"id":0}

For hive-test, the API calls the following (one example of using hivemind):

curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_discussions_by_trending", "params":[{"tag":"travel","limit":5,"truncate_body":1}], "id":1}' https://api.justyy.com

Please note that Most Steem RPC Nodes are configured with Jussi (Reverse Proxy) which can forward any traffic. So above plugins testing is for your reference only since a Node can forward the traffic to other nodes whose corresponding plugins are turned on.

@hungry-griffin
@steemcurator01
@steemcurator02
@steemcurator03
@steemcurator04
@steemcurator05
@steemcurator06
@steemcurator07
@steemcurator08
@steemcurator09
@steemcurator10
@booming01
@booming02
@booming03
@booming04

Steem to the Moon🚀!

  • You can swap the STEEM/SBD to USDT (TRC-20) via Steem2USDT!
  • Register a free STEEM account at SteemYY!
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!