From d36bda520ed655081f92052fe16d12f76a43383b Mon Sep 17 00:00:00 2001 From: roadscape <roadscape@users.noreply.github.com> Date: Thu, 17 Jan 2019 10:59:26 -0600 Subject: [PATCH] Fix method name for db_head_state (#166) The actual method name is 'hive.db_head_state' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc5ccaa29..e26d8fc89 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ $ hive server ``` ```bash -$ curl --data '{"jsonrpc":"2.0","id":0,"method":"db_head_state"}' http://localhost:8080 +$ curl --data '{"jsonrpc":"2.0","id":0,"method":"hive.db_head_state"}' http://localhost:8080 {"jsonrpc": "2.0", "result": {"db_head_block": 19930795, "db_head_time": "2018-02-16 21:35:42", "db_head_age": 10}, "id": 0} ``` -- GitLab