Skip to content

Unsubscribe

Compare
Choose a tag to compare
@lnbc1QWFyb24 lnbc1QWFyb24 released this 03 Mar 22:34
· 246 commits to master since this release
dddc6da

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:

  • Feature: Add unsubscribe method to API (#39)
  • Fix validation for transactionHandlers (#37)