← All procedures
sdk.openrpc
Describe the exposed procedures as an OpenRPC 1.3 document
CLI- Package
- @procedures/compiler · README
- Path
["sdk","openrpc"]- CLI
mark sdk openrpc- As data
{"$proc":["sdk","openrpc"],"input":{}}- Tags
- compiler, sdk
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/compiler/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["sdk","openrpc"], {});
console.log(JSON.stringify(result));From the command line
$ mark sdk openrpc
As data, in a program
{ "$proc": ["sdk", "openrpc"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"namespace": {
"description": "Only the procedures under this first path segment",
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"openrpc": {
"type": "string",
"description": "The version of the OpenRPC specification"
},
"info": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the document"
},
"version": {
"type": "string",
"description": "The version of the document: the hash of the manifest"
},
"description": {
"description": "The description of the document",
"type": "string"
}
},
"required": [
"title",
"version"
],
"additionalProperties": false,
"description": "The information about the document"
},
"methods": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "One method for each procedure, in the order of the names: params, result, x-path and x-effects"
}
},
"required": [
"openrpc",
"info",
"methods"
],
"additionalProperties": false
}
}