ambula-labs / ambula

A fork from the substrate node template, implementing the Proof of Interaction consensus algorithm.
The Unlicense
1 stars 0 forks source link

Setup a custom RPC service that answers signature requests on network nodes #22

Closed LcsTen closed 1 year ago

LcsTen commented 1 year ago

These changes add a custom RPC service. It is a very simple sample taken from a tutorial for now, but we should enhance it so that it can actually sign things.

To test it, use curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "template_getValue"}' http://localhost:9933/ while the node is running.