From bc5617d57f9a5abf4923e7caf3e298e14b75b839 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Thu, 3 Mar 2022 14:10:14 -0500 Subject: [PATCH] newHeads subscription doesn't take a second param Running this command results in the response: ``` {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"too many arguments, want at most 1"}} ``` Also there are other newHeads subscription examples in this page, which don't have the {} param. --- docs/_rpc/pubsub.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_rpc/pubsub.md b/docs/_rpc/pubsub.md index 8316b5827f..647445534b 100644 --- a/docs/_rpc/pubsub.md +++ b/docs/_rpc/pubsub.md @@ -13,7 +13,7 @@ together with the subscription id. Example: // create subscription - >> {"id": 1, "method": "eth_subscribe", "params": ["newHeads", {}]} + >> {"id": 1, "method": "eth_subscribe", "params": ["newHeads"]} << {"jsonrpc":"2.0","id":1,"result":"0xcd0c3e8af590364c09d0fa6a1210faf5"} // incoming notifications