diff --git a/openrpc.json b/openrpc.json index 770f11a581..0c567a4174 100644 --- a/openrpc.json +++ b/openrpc.json @@ -10,6 +10,23 @@ } }, "methods": [ + { + "name": "admin_addPeer", + "description": "adds a peer", + "summary": "Adds a peer", + "params": [ + { + "$ref": "#/components/contentDescriptors/Enode" + } + ], + "result": { + "name": "addPeerResult", + "description": "whether added", + "schema": { + "$ref": "#/components/schemas/Bool" + } + } + }, { "name": "web3_clientVersion", "description": "Returns the version of the current client", @@ -1579,6 +1596,11 @@ "type": "null", "description": "Null" }, + "Bool": { + "title": "bool", + "type": "boolean", + "description": "Bool" + }, "Integer": { "title": "integer", "type": "string", @@ -1615,9 +1637,24 @@ "type": "string", "description": "Hex representation of a variable length byte array", "pattern": "^0x([a-fA-F0-9]?)+$" + }, + "Enode": { + "title": "enode", + "type": "string", + "description": "ethereum node address", + "pattern": "^enode://" } }, "contentDescriptors": { + "Enode": { + "name": "enode", + "summary": "an ethereum node address", + "description": "An enode", + "required": true, + "schema": { + "$ref": "#/components/schemas/Enode" + } + }, "Block": { "name": "block", "summary": "A block", diff --git a/openrpc_describe.log b/openrpc_describe.log index 3a29d7b909..f1af966fce 100644 --- a/openrpc_describe.log +++ b/openrpc_describe.log @@ -1,21 +1,9 @@ { "jsonrpc": "2.0", - "id": 1584030881, + "id": 1584032672, "result": { "Over": [], "Under": [ - { - "Name": "admin_addPeer", - "Fn": "\u003cfunc(*node.PrivateAdminAPI, string) (bool, error) Value\u003e", - "IsSubscribe": false, - "ErrPos": 1, - "Args": [ - { - "Name": "string", - "Kind": "string" - } - ] - }, { "Name": "admin_addTrustedPeer", "Fn": "\u003cfunc(*node.PrivateAdminAPI, string) (bool, error) Value\u003e", diff --git a/openrpc_set.log b/openrpc_set.log index e0abc2dc63..0bb4f1e58f 100644 --- a/openrpc_set.log +++ b/openrpc_set.log @@ -1 +1 @@ -{"jsonrpc":"2.0","id":1584030881,"result":null} +{"jsonrpc":"2.0","id":1584032672,"result":null}