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

Add the ability to set a custom timeout for send method with shouldPollResponse parameter #368

Closed
Natashkinsasha opened this issue May 5, 2023 · 1 comment

Comments

@Natashkinsasha
Copy link

Currently, when calling the send method with the shouldPollResponse parameter set to true, the default timeout for waiting for the transaction to be executed is 60 seconds. However, this timeout may be insufficient for busy networks where transaction confirmation may take longer.

It would be great to have the ability to set a custom timeout for the send method with the shouldPollResponse parameter, allowing developers to adjust the timeout according to their needs.

Adding this feature would improve the user experience for developers using your library and make it more adaptable to different network conditions.

Thank you for considering this feature request.

@unicornonea
Copy link
Collaborator

Thank you for your suggestion, we will support it in next version. And now if the default timeout is insufficient , you could check the transaction result by tronWeb.trx.getTransactionInfo(txID).

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