-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logs subscription errors out when "FromBlock" is present #2464
Comments
Hello @simsonraj thanks for opening the ticket! Below is the logs subscriptions params by some well-known services: Essentially, While this is indeed a good feature request, but sort of goes against the grain of how other services follow the industry standard patern for logs subscription params. Feel free to give me more context and explain why you think this is necessary. We will review your suggestion and see how it might fit into our future roadmap. |
in any case, I believe we should close this ticket, and in case that we wish to consider the feature request, another ticket should be created with the appropriate template and labels, as a feature enhancement. |
Hey @quiet-node , thanks for the response. you probably are right. The reason why I missed that is because I don't think the other endpoints throw an error, I believe they simply ignore the param, is that doable? |
Ah I see you're right looks like other services ignore the invalid params. Yes it's doable, and I will create a new ticket to address that and replace this ticket with that. Thanks for pointing it out! |
Replaced by #2520 |
Description
Expected:
WS logs subscription should accept the same params as HTTP that works
Current:
Errors out with
"error": {
"code": -32602,
"name": "Invalid parameter",
"message": "Invalid parameter 'fromBlock' for EthSubscribeLogsParamsObject: Unknown parameter"
},
Steps to reproduce
WSS request:
{ "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": [ "logs", { "address": "0x0ed544cdac078ba3bc354b2458c04e358e758c9a", "fromBlock": "0x1E" } ] }
HTTP request:
{ "jsonrpc":"2.0", "method":"eth_getLogs", "params":[{ "address":"0x0ed544cdaC078ba3bC354b2458C04E358E758C9a", "fromBlock":"0x1E" }], "id":12 }
Additional context
No response
Hedera network
testnet
Version
0.47.0-rc3
Operating system
None
The text was updated successfully, but these errors were encountered: