Unsubscribe
This release adds a new method to the API that allows for unsubscribing from addresses and transaction hashes. To unsubscribe, just call the unsubscribe
method and pass the clientIndex
and an address
or hash
that you would like to unsubscribe from:
// unsubscribe from address
blocknative.unsubscribe(blocknative.clientIndex, address)
// unsubscribe from transaction hash
blocknative.unsubscribe(blocknative.clientIndex, hash)
There is also a small fix to the validation of initialization parameters as well.
Changelog: