The problem seems to be that when constructing the query string tronWeb is using snake-case parameter names, where the event query service expects camel-case names.
It looks like a typo error. Please use tronWeb.eventServer.request to send a raw request as a temporary solution. In V6, we are going to change this api.
The problem seems to be that when constructing the query string tronWeb is using snake-case parameter names, where the event query service expects camel-case names.
Query string construction here: https://github.com/tronprotocol/tronweb/blob/v5.2.0/src/lib/event.js#L112
The
/event/contract/{contractAddress}
API endpoint in event query service: https://github.com/tronprotocol/tron-eventquery/blob/master/src/main/java/org/tron/trongeventquery/contractevents/ContractEventController.java#L343If I issue a raw HTTP request using camel-case names, it does work.
PS: This was tested with a local lite fullnode and local event query service, not public API providers.
Related issue https://github.com/tronprotocol/tronweb/issues/156