mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-04 15:22:55 +00:00
Merge pull request #24504 from samlaf/patch-2
newHeads subscription doesn't take a second param
This commit is contained in:
commit
d3eb320477
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ together with the subscription id.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
// create subscription
|
// create subscription
|
||||||
>> {"id": 1, "method": "eth_subscribe", "params": ["newHeads", {}]}
|
>> {"id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
|
||||||
<< {"jsonrpc":"2.0","id":1,"result":"0xcd0c3e8af590364c09d0fa6a1210faf5"}
|
<< {"jsonrpc":"2.0","id":1,"result":"0xcd0c3e8af590364c09d0fa6a1210faf5"}
|
||||||
|
|
||||||
// incoming notifications
|
// incoming notifications
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue