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#L343
If 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 #156
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#L343
If 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 #156