Skip to content
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

getEventResult filter onlyConfirmed/onlyUnconfirmed not working #422

Closed
ud-klee opened this issue Sep 15, 2023 · 2 comments
Closed

getEventResult filter onlyConfirmed/onlyUnconfirmed not working #422

ud-klee opened this issue Sep 15, 2023 · 2 comments

Comments

@ud-klee
Copy link

ud-klee commented Sep 15, 2023

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

@start940315
Copy link
Contributor

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.

@start940315
Copy link
Contributor

Fixed in TronWeb v6.0.0-beta.0. Welcome to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants