Skip to main content

Cancel Streams

Canceling streams involves stopping the flow of assets before the stream's end time and refunding the remaining funds to the sender. However, the portion that has already been streamed is NOT automatically transferred - the recipient will need to withdraw it.

There are two functions that can be used to cancel streams:

  1. cancel: cancels a single stream
  2. cancelMultiple: cancels multiple streams at once

To call any of these functions, you need to have created a cancelable stream. If you don't have one yet, go back to the previous guide and create a stream. Then, you can use the cancel function like this:

Stream Management: Cancel
loading...

In addition to the cancel function, there is the cancelMultiple function, which allows you to cancel several streams at once:

Stream Management: Cancel Multiple
loading...