Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.07 KB

Echo.md

File metadata and controls

68 lines (44 loc) · 2.07 KB

singnetlogo

Echo

This service "echoes" its arguments.

It's part of our Opencog Services.

Welcome

The service expects 0 to n arguments (n is limited as described here) and simply outputs then separated by single spaces.

What’s the point?

The service is meant to illustrate the implementation of a C++ Opencog service. It's also useful to test availability of the server.

How does it work?

You can use this service from SingularityNET DApp, clicking on SNET/Opencog.

You can also call the service from SingularityNET CLI (snet). See [here][snet-doc] for detailed information on how SingularityNET CLI works or use the helper scripts from opencog-services repository as described below.

Clone the repository to use the scripts.

git clone [email protected]:singnet/opencog-services.git

First, make sure your session have an identity with your private key.

$ snet identity create YOUR_ID key

YOUR_ID is a local id used only in the current session so it's not really important. Any string should work. You will be requested to enter your private key.

Now you need to add funds to a MPE channel.

$ ./scripts/deposit_mpe.sh

This script will print the balances and a list of all chanels of your identity. Look for the #channelId of the last listed channel. This is the channel which will be used to make the client calls below.

$ ./scripts/client_request.sh Echo foo bar

Contributing and Reporting Issues

Please read our guidelines before submitting issues or pull requests.

Authors