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
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#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 text was updated successfully, but these errors were encountered: