Skip to main content

Cancel Streams

note

This section assumes that you have already gone through the setup part.

tip

See the Access Control guide for an overview of who is allowed to cancel streams.

Canceling streams involves stopping the flow of assets before the stream's end time and returning the remaining funds to the sender. The amount that has already been streamed is transferred to the recipient.

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 the functions above, you must first have an active, cancelable stream. If you don't have one yet, go ahead and create a stream. Once that is done, 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...