Skip to content

Stop listening provider.waitForTransaction #410

@safead

Description

@safead

After start to waiting a transaction to be mined:

wallet.provider.waitForTransaction( tx.hash )

how to cancel (break) this process?

wallet.provider.listenerCount( tx.hash ) shows "0",
wallet.provider.removeAllListeners( tx.hash ) do not working. The requests to provider continue flow until tx is mined. I want to have a chance to cancel the waiting process. Thank you.

Metadata

Metadata

Assignees

Labels

bugVerified to be an issue.fixed/completeThis Bug is fixed or Enhancement is complete and published.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions