diff --git a/jsonrpc/src/content/results.json b/jsonrpc/src/content/results.json index 21035be8..8f2f35fd 100644 --- a/jsonrpc/src/content/results.json +++ b/jsonrpc/src/content/results.json @@ -14,6 +14,14 @@ "$ref": "#/components/schemas/bytes32" } }, + "BeaconFinalizedStateRootResult": { + "name": "finalizedStateRootResult", + "description": "Returns the hex encoded finalized beacon state root.", + "schema": { + "title": "Hex encoded finalized beacon state root", + "$ref": "#/components/schemas/bytes32" + } + }, "StoreResult": { "name": "storeResult", "description": "Returns \"true\" upon success", diff --git a/jsonrpc/src/methods/beacon.json b/jsonrpc/src/methods/beacon.json index 1dae6869..f82262d5 100644 --- a/jsonrpc/src/methods/beacon.json +++ b/jsonrpc/src/methods/beacon.json @@ -67,6 +67,14 @@ "$ref": "#/components/contentDescriptors/PingResult" } }, + { + "name": "portal_beaconFinalizedStateRoot", + "summary": "Get latest known finalized beacon state root.", + "params": [], + "result": { + "$ref": "#/components/contentDescriptors/BeaconFinalizedStateRootResult" + } + }, { "name": "portal_beaconFindNodes", "summary": "Send a FINDNODES request for nodes that fall within the given set of distances, to the designated peer and wait for a response.",