To create a miner and provide value to the network, you can make a class that inherits from the ModuleServer class
and decorate the functions you want to provide as endpoints with endpoint.
Example:
This defines a module that can be served with the command:
On your own
You can just create and serve a HTTP api as you prefer. Just make sure that all your schemas look like:
Beyond this, requests made with our ModuleClient will send you the following headers: