hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Logs subscription errors out when "FromBlock" is present

Open simsonraj opened this issue 1 year ago • 0 comments

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

simsonraj avatar May 07 '24 18:05 simsonraj