mycelium-api 8.3.1-rc.1

Provide API ports to the mycelium project.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::rpc::method_names;

pub fn method() -> serde_json::Value {
    serde_json::json!({
        "name": method_names::RPC_DISCOVER,
        "summary": "Discover the API",
        "description": "Returns this OpenRPC spec document. No params.",
        "tags": [{ "name": "discovery" }],
        "params": [],
        "result": {
            "name": "openrpc",
            "description": "The OpenRPC specification document",
            "schema": { "type": "object" }
        }
    })
}