This service "echoes" its arguments.
It's part of our Opencog Services.
The service expects 0 to n arguments (n is limited as described here) and simply outputs then separated by single spaces.
The service is meant to illustrate the implementation of a C++ Opencog service. It's also useful to test availability of the server.
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
Please read our guidelines before submitting issues or pull requests.
- Andre Senna - Maintainer - SingularityNET