You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capturing the websocket packages transmitted with the standard golang ethereum client reveals a payload of: {"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["logs",{"address":["0xb9a219631aed55ebc3d998f17c3840b7ec39c0cc"],"fromBlock":"0x0","toBlock":"latest","topics":null}]}\n to which the Besu node responds with {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"Invalid Request"}}
I implemented an own client that submits {"id":123,"method":"eth_subscribe","params":["logs",{"address":"0xb9a219631aed55ebc3d998f17c3840b7ec39c0cc"}]}\n and works as expected. I can then receive and decode events.
One important difference to notice, is that the standard ethereum client transmits an array of contract addresses.
The text was updated successfully, but these errors were encountered:
Description
As a golang application Developer, I want subscribe to smart-contract event logs via websocket api so that i receive push events
Acceptance Criteria
Steps to Reproduce (Bug)
Expected behavior:
Application should receive push events as emitted by deployed smart contracts
Actual behavior:
Application Besu node returns an error upon subscription
Frequency:
Always
Versions
Software version:
Modified sample network from commit b9bfa831194763f18cc99deca235ffe754b66aae , Date: Mon Jan 27 18:52:10 2020 +1000
Docker Version: 19.03.8
OS: Latest Ubuntu LTS (18.04).
golang ethereum client: github.com/ethereum/go-ethereum v1.9.12
Additional Information
Capturing the websocket packages transmitted with the standard golang ethereum client reveals a payload of:
{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["logs",{"address":["0xb9a219631aed55ebc3d998f17c3840b7ec39c0cc"],"fromBlock":"0x0","toBlock":"latest","topics":null}]}\n
to which the Besu node responds with{"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"Invalid Request"}}
I implemented an own client that submits
{"id":123,"method":"eth_subscribe","params":["logs",{"address":"0xb9a219631aed55ebc3d998f17c3840b7ec39c0cc"}]}\n
and works as expected. I can then receive and decode events.One important difference to notice, is that the standard ethereum client transmits an array of contract addresses.
The text was updated successfully, but these errors were encountered: